Skip to content

Instantly share code, notes, and snippets.

@SeongUgJung
Last active February 20, 2021 05:10
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 SeongUgJung/75e79029dc7ccabba845ddb2d275cb69 to your computer and use it in GitHub Desktop.
Save SeongUgJung/75e79029dc7ccabba845ddb2d275cb69 to your computer and use it in GitHub Desktop.
RetrofitBuilder
fun retrofit(moshi: Moshi) = Retrofit.Builder()
.addConverterFactory(MoshiConverterFactory.create(moshi))
.build()
fun moshi() = Moshi.Builder()
.add(PersonAdapterFactory())
.add(PhoneAdapterFactory())
.build()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment