Last active
February 20, 2021 05:10
-
-
Save SeongUgJung/75e79029dc7ccabba845ddb2d275cb69 to your computer and use it in GitHub Desktop.
RetrofitBuilder
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
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