Created
April 20, 2020 00:12
-
-
Save markchristopherng/5c645210c046b36b34470c23e31ab0b1 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 builder = Retrofit.Builder() | |
.client(getClient(serviceClass)) | |
.addCallAdapterFactory(RxJava2CallAdapterFactory.create()) | |
.addCallAdapterFactory(RxJavaCallAdapterFactory.create()) | |
.addConverterFactory(GuavaOptionalConverterFactory.create()) | |
.addConverterFactory(GsonConverterFactory.create(gson)) | |
.baseUrl(endpointAdapter.getURLString(context, serviceClass.simpleName)) | |
.addConverterFactory(Json.asConverterFactory(MediaType.get("application/json"))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment