package org.xdty.phone.number.di.modules;

import android.content.Context;

import org.xdty.phone.number.util.OkHttp;

import javax.inject.Singleton;

import dagger.Module;
import dagger.Provides;

@Module
public class AppModule {

    private Context mContext;

    public AppModule(Context context) {
        mContext = context;
    }

    @Singleton
    @Provides
    Context provideContext() {
        return mContext;
    }

    @Singleton
    @Provides
    OkHttp provideOKHttp() {
        return OkHttp.get();
    }
}

@@ -189,16 +189,45 @@
 rovides;
+%0Aimport okhttp3.OkHttpClient;
 %0A%0A@Modul
@@ -444,32 +444,147 @@
 Context;%0A    %7D%0A%0A
+    @Singleton%0A    @Provides%0A    OkHttpClient provideOKHttpClient() %7B%0A        return OkHttp.get().client();%0A    %7D%0A%0A
     @Singleton%0A 

fix di