File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed
devik/src/main/java/com/dev/devik/di Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ import dagger.hilt.android.qualifiers.ApplicationContext
1010import dagger.hilt.components.SingletonComponent
1111import dagger.multibindings.IntoSet
1212import okhttp3.Interceptor
13+ import okhttp3.logging.HttpLoggingInterceptor
1314
1415@InstallIn(SingletonComponent ::class )
1516@Module
@@ -24,12 +25,12 @@ class DevikModule {
2425 @Provides
2526 @IntoSet
2627 fun provideChuckerInterceptor (@ApplicationContext context : Context ): Interceptor {
27- return ChuckerInterceptor (context)
28+ return ChuckerInterceptor . Builder (context).build( )
2829 }
2930
30- // @Provides
31- // @IntoSet
32- // fun provideHttpLoggingInterceptor(): Interceptor {
33- // return HttpLoggingInterceptor().setLevel(HttpLoggingInterceptor.Level.BODY)
34- // }
31+ @Provides
32+ @IntoSet
33+ fun provideHttpLoggingInterceptor (): Interceptor {
34+ return HttpLoggingInterceptor ().setLevel(HttpLoggingInterceptor .Level .BODY )
35+ }
3536}
You can’t perform that action at this time.
0 commit comments