diff options
author | Docile-Alligator <25734209+Docile-Alligator@users.noreply.github.com> | 2022-12-04 08:17:05 +0000 |
---|---|---|
committer | Docile-Alligator <25734209+Docile-Alligator@users.noreply.github.com> | 2022-12-04 08:17:05 +0000 |
commit | 68ed718aa0bbafe1a1f1352ceb390aeb959fec91 (patch) | |
tree | b9142aba406872c61157c22c91aa8c4ddfc5166d /app/src/main/java | |
parent | 58881337c8f4abca86e8b94210253644bae56594 (diff) | |
download | infinity-for-reddit-68ed718aa0bbafe1a1f1352ceb390aeb959fec91.tar infinity-for-reddit-68ed718aa0bbafe1a1f1352ceb390aeb959fec91.tar.gz infinity-for-reddit-68ed718aa0bbafe1a1f1352ceb390aeb959fec91.tar.bz2 infinity-for-reddit-68ed718aa0bbafe1a1f1352ceb390aeb959fec91.tar.lz infinity-for-reddit-68ed718aa0bbafe1a1f1352ceb390aeb959fec91.tar.xz infinity-for-reddit-68ed718aa0bbafe1a1f1352ceb390aeb959fec91.tar.zst infinity-for-reddit-68ed718aa0bbafe1a1f1352ceb390aeb959fec91.zip |
Version v5.4.0-beta1. Add authenticator to oauth retrofit.
Diffstat (limited to '')
-rw-r--r-- | app/src/main/java/ml/docilealligator/infinityforreddit/NetworkModule.java | 14 |
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) { |