Remove extra provideOkHttpClient call (#107)

This commit is contained in:
Brian Yencho 2023-10-12 10:27:07 -05:00 committed by Álison Fernandes
parent 635cc120c9
commit c305de669e

View file

@ -34,16 +34,6 @@ object NetworkModule {
fun providesConfigService(@Named(UNAUTHORIZED) retrofit: Retrofit): ConfigService = fun providesConfigService(@Named(UNAUTHORIZED) retrofit: Retrofit): ConfigService =
ConfigServiceImpl(retrofit.create()) ConfigServiceImpl(retrofit.create())
fun provideOkHttpClient(): OkHttpClient {
return OkHttpClient.Builder()
.addInterceptor(
HttpLoggingInterceptor().apply {
setLevel(HttpLoggingInterceptor.Level.BODY)
},
)
.build()
}
@Provides @Provides
@Singleton @Singleton
fun providesAuthTokenInterceptor(): AuthTokenInterceptor = AuthTokenInterceptor() fun providesAuthTokenInterceptor(): AuthTokenInterceptor = AuthTokenInterceptor()