// Path: app/src/main/java/eu/se_bastiaan/tvnl/TVNLApplication.java
// public class TVNLApplication extends MultiDexApplication {
// 
//     @Nullable
//     private volatile AppInjectionComponent appInjectionComponent;
//     private static TVNLApplication sThis;
// 
//     @Override
//     public void onCreate() {
//         super.onCreate();
//         sThis = this;
// 
//         if(BuildConfig.DEBUG) {
//             Timber.plant(new Timber.DebugTree());
//         } else {
//             //Timber.plant(new CrashlyticsLogTree(Log.INFO));
//         }
// 
//         CalligraphyConfig.initDefault(new CalligraphyConfig.Builder()
//                 .setDefaultFontPath("fonts/Regular.ttf")
//                 .setFontAttrId(R.attr.fontPath)
//                 .build()
//         );
// 
//         Intent recommendationIntent = new Intent(this, RecommendationService.class);
//         startService(recommendationIntent);
//     }
// 
//     public static TVNLApplication get() {
//         return sThis;
//     }
// 
//     @NonNull
//     public AppInjectionComponent appComponent() {
//         if (appInjectionComponent == null) {
//             synchronized (Application.class) {
//                 if (appInjectionComponent == null) {
//                     appInjectionComponent = AppInjectionComponent.Initializer.init(this);
//                 }
//             }
//         }
// 
//         //noinspection ConstantConditions
//         return appInjectionComponent;
//     }
// 
// }


import android.content.ContentProvider;
import android.content.ContentValues;
import android.database.Cursor;
import android.net.Uri;
import android.os.ParcelFileDescriptor;
import android.support.annotation.NonNull;
import android.util.Log;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.net.URLDecoder;
import javax.inject.Inject;
import eu.se_bastiaan.tvnl.TVNLApplication;
import okhttp3.OkHttpClient;
package eu.se_bastiaan.tvnl.service.recommendation;





public class RecommendationContentProvider extends ContentProvider {

    public static String AUTHORITY = "eu.se_basitaan.tvnl.RecommendationContentProvider";
    public static String CONTENT_URI = "content://" + AUTHORITY + "/";

    @Inject
    OkHttpClient okHttpClient;

    @Override
    public boolean onCreate() {
// Path: app/src/main/java/eu/se_bastiaan/tvnl/TVNLApplication.java
// public class TVNLApplication extends MultiDexApplication {
// 
//     @Nullable
//     private volatile AppInjectionComponent appInjectionComponent;
//     private static TVNLApplication sThis;
// 
//     @Override
//     public void onCreate() {
//         super.onCreate();
//         sThis = this;
// 
//         if(BuildConfig.DEBUG) {
//             Timber.plant(new Timber.DebugTree());
//         } else {
//             //Timber.plant(new CrashlyticsLogTree(Log.INFO));
//         }
// 
//         CalligraphyConfig.initDefault(new CalligraphyConfig.Builder()
//                 .setDefaultFontPath("fonts/Regular.ttf")
//                 .setFontAttrId(R.attr.fontPath)
//                 .build()
//         );
// 
//         Intent recommendationIntent = new Intent(this, RecommendationService.class);
//         startService(recommendationIntent);
//     }
// 
//     public static TVNLApplication get() {
//         return sThis;
//     }
// 
//     @NonNull
//     public AppInjectionComponent appComponent() {
//         if (appInjectionComponent == null) {
//             synchronized (Application.class) {
//                 if (appInjectionComponent == null) {
//                     appInjectionComponent = AppInjectionComponent.Initializer.init(this);
//                 }
//             }
//         }
// 
//         //noinspection ConstantConditions
//         return appInjectionComponent;
//     }
// 
// }


// Path: app/src/main/java/eu/se_bastiaan/tvnl/service/recommendation/RecommendationContentProvider.java
import android.content.ContentProvider;
import android.content.ContentValues;
import android.database.Cursor;
import android.net.Uri;
import android.os.ParcelFileDescriptor;
import android.support.annotation.NonNull;
import android.util.Log;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.net.URLDecoder;
import javax.inject.Inject;
import eu.se_bastiaan.tvnl.TVNLApplication;
import okhttp3.OkHttpClient;

package eu.se_bastiaan.tvnl.service.recommendation;





public class RecommendationContentProvider extends ContentProvider {

    public static String AUTHORITY = "eu.se_basitaan.tvnl.RecommendationContentProvider";
    public static String CONTENT_URI = "content://" + AUTHORITY + "/";

    @Inject
    OkHttpClient okHttpClient;

    @Override
    public boolean onCreate() {
        TVNLApplication.get().appComponent().inject(this);