Skip to content

Instantly share code, notes, and snippets.

@alexforrester
alexforrester / Moshi Kotlin Codegen Example with Custom Adapter
Last active August 28, 2022 19:39
Moshi Kotlin Codegen Example with Custom Adapter
//app build.gradle
apply plugin: 'kotlin-kapt'
...
dependencies {
{
//Moshi Core
implementation "com.squareup.moshi:moshi:1.8.0"
//Moshi Codegen
@alexforrester
alexforrester / Moshi Kotlin Reflection Example with Custom Adapter
Created April 30, 2019 19:14
Moshi Kotlin Reflection Example with Custom Adapter
//app build.gradle
dependencies {
{
//Moshi Core
implementation "com.squareup.moshi:moshi:1.8.0"
//Moshi Reflection
implementation "com.squareup.moshi:moshi-kotlin:1.8.0"
}