Lazy use the OkHttpClient.
This commit is contained in:
parent
5d7be76feb
commit
fe87681473
1 changed files with 1 additions and 1 deletions
|
|
@ -32,6 +32,6 @@ class RetrofitFactory @Inject constructor(
|
|||
fun create(baseUrl: String): Retrofit = Retrofit.Builder()
|
||||
.baseUrl(baseUrl.ensureTrailingSlash())
|
||||
.addConverterFactory(json.get().asConverterFactory("application/json".toMediaType()))
|
||||
.callFactory(okHttpClient.get())
|
||||
.callFactory { request -> okHttpClient.get().newCall(request) }
|
||||
.build()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue