mirror of
https://codeberg.org/Bazsalanszky/Infinity-For-Lemmy.git
synced 2025-02-05 14:14:47 +01:00
Version v5.4.0-beta1. Add authenticator to oauth retrofit.
This commit is contained in:
parent
58881337c8
commit
68ed718aa0
@ -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();
|
||||
}
|
||||
|
||||
@ -192,17 +193,6 @@ abstract class NetworkModule {
|
||||
.build();
|
||||
}
|
||||
|
||||
@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
|
||||
|
Loading…
x
Reference in New Issue
Block a user