aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/java/ml
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--app/src/main/java/ml/docilealligator/infinityforreddit/NetworkModule.java14
1 files changed, 2 insertions, 12 deletions
diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/NetworkModule.java b/app/src/main/java/ml/docilealligator/infinityforreddit/NetworkModule.java
index 6abe4832..bed19e97 100644
--- a/app/src/main/java/ml/docilealligator/infinityforreddit/NetworkModule.java
+++ b/app/src/main/java/ml/docilealligator/infinityforreddit/NetworkModule.java
@@ -56,9 +56,10 @@ abstract class NetworkModule {
@Provides
@Named("oauth")
- static Retrofit providesOAuthRetrofit(Retrofit retrofit) {
+ static Retrofit providesOAuthRetrofit(Retrofit retrofit, @Named("default") OkHttpClient okHttpClient) {
return retrofit.newBuilder()
.baseUrl(APIUtils.OAUTH_API_BASE_URI)
+ .client(okHttpClient)
.build();
}
@@ -193,17 +194,6 @@ abstract class NetworkModule {
}
@Provides
- @Named("strapi")
- @Singleton
- static Retrofit providestrapiRetrofit(@Named("default") OkHttpClient okHttpClient,
- Retrofit retrofit) {
- return retrofit.newBuilder()
- .baseUrl(APIUtils.STRAPI_BASE_URI)
- .client(okHttpClient)
- .build();
- }
-
- @Provides
@Named("streamable")
@Singleton
static Retrofit provideStreamableRetrofit(Retrofit retrofit) {