Skip to content

Instantly share code, notes, and snippets.

@timusus
Created October 20, 2018 03:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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