// Path: app/src/production/java/com/nilhcem/devfestnantes/data/network/ApiEndpoint.java
// public enum ApiEndpoint {
// 
//     PROD(BuildConfig.API_ENDPOINT);
// 
//     public String url;
// 
//     ApiEndpoint(String url) {
//         this.url = url;
//     }
// 
//     public static ApiEndpoint get(Context context) {
//         return PROD;
//     }
// }
// 
// Path: app/src/main/java/com/nilhcem/devfestnantes/data/network/DevFestService.java
// public interface DevFestService {
// 
//     @GET("sessions")
//     Observable<List<Session>> loadSessions();
// 
//     @GET("speakers")
//     Observable<List<Speaker>> loadSpeakers();
// }


import android.app.Application;
import com.nilhcem.devfestnantes.data.network.ApiEndpoint;
import com.nilhcem.devfestnantes.data.network.DevFestService;
import com.squareup.moshi.Moshi;
import javax.inject.Singleton;
import dagger.Module;
import dagger.Provides;
import okhttp3.OkHttpClient;
import retrofit2.Retrofit;
import retrofit2.adapter.rxjava.RxJavaCallAdapterFactory;
import retrofit2.converter.moshi.MoshiConverterFactory;
package com.nilhcem.devfestnantes.core.dagger.module;





@Module
public final class ApiModule {

// Path: app/src/production/java/com/nilhcem/devfestnantes/data/network/ApiEndpoint.java
// public enum ApiEndpoint {
// 
//     PROD(BuildConfig.API_ENDPOINT);
// 
//     public String url;
// 
//     ApiEndpoint(String url) {
//         this.url = url;
//     }
// 
//     public static ApiEndpoint get(Context context) {
//         return PROD;
//     }
// }
// 
// Path: app/src/main/java/com/nilhcem/devfestnantes/data/network/DevFestService.java
// public interface DevFestService {
// 
//     @GET("sessions")
//     Observable<List<Session>> loadSessions();
// 
//     @GET("speakers")
//     Observable<List<Speaker>> loadSpeakers();
// }


// Path: app/src/main/java/com/nilhcem/devfestnantes/core/dagger/module/ApiModule.java
import android.app.Application;
import com.nilhcem.devfestnantes.data.network.ApiEndpoint;
import com.nilhcem.devfestnantes.data.network.DevFestService;
import com.squareup.moshi.Moshi;
import javax.inject.Singleton;
import dagger.Module;
import dagger.Provides;
import okhttp3.OkHttpClient;
import retrofit2.Retrofit;
import retrofit2.adapter.rxjava.RxJavaCallAdapterFactory;
import retrofit2.converter.moshi.MoshiConverterFactory;

package com.nilhcem.devfestnantes.core.dagger.module;





@Module
public final class ApiModule {

    @Provides @Singleton ApiEndpoint provideApiEndpoint(Application context) {