ml-archive / kotlin-template

Kotlin-template clean architecture
23 stars 8 forks source link

Use moshi for JSON deserialization for more Kotlin compatibility #31

Open lucassales2 opened 5 years ago

lucassales2 commented 5 years ago

Gson is stuck on a java, moshi offers better compatibility with Kotlin fx: Nullability, Java primitives

markusrubey commented 5 years ago

did we consider kotlinx.serialization?

lucassales2 commented 5 years ago

@markusrubey We can consider, never used it tho, do you have any sample?

markusrubey commented 5 years ago

just wondering, haven't used it as well. There are some samples in their repo and there is also a retrofit converter for it