package com.moyinoluwa.makeupsearch.injection;

/**
 * Created by moyinoluwa on 2/8/17.
 */

public class Injection {
}

@@ -45,76 +45,1922 @@
 n;%0A%0A
-/**%0A * Created by moyinoluwa on 2/8/17.%0A */%0A%0Apublic class Injection %7B
+import com.moyinoluwa.makeupsearch.data.MakeUpRepository;%0Aimport com.moyinoluwa.makeupsearch.data.MakeUpRepositoryImpl;%0Aimport com.moyinoluwa.makeupsearch.data.remote.MakeUpProductRestService;%0A%0Aimport okhttp3.OkHttpClient;%0Aimport okhttp3.logging.HttpLoggingInterceptor;%0Aimport retrofit2.Retrofit;%0Aimport retrofit2.adapter.rxjava.RxJavaCallAdapterFactory;%0Aimport retrofit2.converter.gson.GsonConverterFactory;%0A%0A/**%0A * Created by moyinoluwa on 2/8/17.%0A */%0A%0Apublic class Injection %7B%0A%0A    private static final String BASE_URL = %22https://api.github.com%22;%0A    private static OkHttpClient okHttpClient;%0A    private static MakeUpProductRestService makeupRestService;%0A    private static Retrofit retrofitInstance;%0A%0A%0A    public static MakeUpRepository provideUserRepo() %7B%0A        return new MakeUpRepositoryImpl(provideMakeupUserRestService());%0A    %7D%0A%0A    static MakeUpProductRestService provideMakeupUserRestService() %7B%0A        if (makeupRestService == null) %7B%0A            makeupRestService = getRetrofitInstance().create(MakeUpProductRestService.class);%0A        %7D%0A        return makeupRestService;%0A    %7D%0A%0A    static OkHttpClient getOkHttpClient() %7B%0A        if (okHttpClient == null) %7B%0A            HttpLoggingInterceptor logging = new HttpLoggingInterceptor();%0A            logging.setLevel(HttpLoggingInterceptor.Level.BASIC);%0A            okHttpClient = new OkHttpClient.Builder().addInterceptor(logging).build();%0A        %7D%0A%0A        return okHttpClient;%0A    %7D%0A%0A    static Retrofit getRetrofitInstance() %7B%0A        if (retrofitInstance == null) %7B%0A            Retrofit.Builder retrofit = new Retrofit.Builder().client(Injection.getOkHttpClient()%0A            ).baseUrl(BASE_URL)%0A                    .addConverterFactory(GsonConverterFactory.create())%0A                    .addCallAdapterFactory(RxJavaCallAdapterFactory.create());%0A            retrofitInstance = retrofit.build();%0A%0A        %7D%0A        return retrofitInstance;%0A    %7D
 %0A%7D%0A

Update Injection.java class