Skip to content

Commit c806263

Browse files
author
arun.sharma
committed
updated chuck
1 parent 58ca07a commit c806263

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

devik/src/main/java/com/dev/devik/di/DevikModule.kt

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import dagger.hilt.android.qualifiers.ApplicationContext
1010
import dagger.hilt.components.SingletonComponent
1111
import dagger.multibindings.IntoSet
1212
import 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
}

0 commit comments

Comments
 (0)