// Path: app/src/internal/java/com/nilhcem/devfestnantes/core/dagger/OkHttpModule.java
// @Module
// public class OkHttpModule {
// 
//     @Provides @Singleton OkHttpClient provideOkHttpClient(OkHttpClient.Builder builder) {
//         return builder.addNetworkInterceptor(new StethoInterceptor()).build();
//     }
// }
// 
// Path: app/src/main/java/com/nilhcem/devfestnantes/core/moshi/LocalDateTimeAdapter.java
// @Singleton
// public class LocalDateTimeAdapter {
// 
//     private final DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm", Locale.US);
// 
//     @Inject
//     public LocalDateTimeAdapter() {
//     }
// 
//     @ToJson
//     public String toText(LocalDateTime dateTime) {
//         return dateTime.format(formatter);
//     }
// 
//     @FromJson
//     public LocalDateTime fromText(String text) {
//         return LocalDateTime.parse(text, formatter);
//     }
// }


import android.app.Application;
import android.content.SharedPreferences;
import android.support.v7.preference.PreferenceManager;
import com.jakewharton.picasso.OkHttp3Downloader;
import com.nilhcem.devfestnantes.core.dagger.OkHttpModule;
import com.nilhcem.devfestnantes.core.moshi.LocalDateTimeAdapter;
import com.squareup.moshi.Moshi;
import com.squareup.picasso.Picasso;
import java.io.File;
import javax.inject.Singleton;
import dagger.Module;
import dagger.Provides;
import okhttp3.Cache;
import okhttp3.OkHttpClient;
import timber.log.Timber;
package com.nilhcem.devfestnantes.core.dagger.module;






@Module(includes = OkHttpModule.class)
public final class DataModule {

    private static final long DISK_CACHE_SIZE = 31_457_280; // 30MB

    @Provides @Singleton SharedPreferences provideSharedPreferences(Application app) {
        return PreferenceManager.getDefaultSharedPreferences(app);
    }

// Path: app/src/internal/java/com/nilhcem/devfestnantes/core/dagger/OkHttpModule.java
// @Module
// public class OkHttpModule {
// 
//     @Provides @Singleton OkHttpClient provideOkHttpClient(OkHttpClient.Builder builder) {
//         return builder.addNetworkInterceptor(new StethoInterceptor()).build();
//     }
// }
// 
// Path: app/src/main/java/com/nilhcem/devfestnantes/core/moshi/LocalDateTimeAdapter.java
// @Singleton
// public class LocalDateTimeAdapter {
// 
//     private final DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm", Locale.US);
// 
//     @Inject
//     public LocalDateTimeAdapter() {
//     }
// 
//     @ToJson
//     public String toText(LocalDateTime dateTime) {
//         return dateTime.format(formatter);
//     }
// 
//     @FromJson
//     public LocalDateTime fromText(String text) {
//         return LocalDateTime.parse(text, formatter);
//     }
// }


// Path: app/src/main/java/com/nilhcem/devfestnantes/core/dagger/module/DataModule.java
import android.app.Application;
import android.content.SharedPreferences;
import android.support.v7.preference.PreferenceManager;
import com.jakewharton.picasso.OkHttp3Downloader;
import com.nilhcem.devfestnantes.core.dagger.OkHttpModule;
import com.nilhcem.devfestnantes.core.moshi.LocalDateTimeAdapter;
import com.squareup.moshi.Moshi;
import com.squareup.picasso.Picasso;
import java.io.File;
import javax.inject.Singleton;
import dagger.Module;
import dagger.Provides;
import okhttp3.Cache;
import okhttp3.OkHttpClient;
import timber.log.Timber;

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






@Module(includes = OkHttpModule.class)
public final class DataModule {

    private static final long DISK_CACHE_SIZE = 31_457_280; // 30MB

    @Provides @Singleton SharedPreferences provideSharedPreferences(Application app) {
        return PreferenceManager.getDefaultSharedPreferences(app);
    }

    @Provides @Singleton Moshi provideMoshi(LocalDateTimeAdapter localDateTimeAdapter) {