Skip to content

Instantly share code, notes, and snippets.

@timusus
Created October 20, 2018 03:31
Show Gist options
  • Save timusus/71c950cd3a57cd184ed42fbdf77782f4 to your computer and use it in GitHub Desktop.
Save timusus/71c950cd3a57cd184ed42fbdf77782f4 to your computer and use it in GitHub Desktop.
Retrofit CallAdapter
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