Created
October 20, 2018 03:31
-
-
Save timusus/71c950cd3a57cd184ed42fbdf77782f4 to your computer and use it in GitHub Desktop.
Retrofit CallAdapter
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val retrofit = Retrofit.Builder() | |
.addCallAdapterFactory(CallResultAdapterFactory(responseErrorMapper)) | |
.baseUrl(baseUrl) | |
.client(okHttpClient) | |
.addConverterFactory(converterFactory) | |
.build() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment