# Retain generated classes that end in the suffix
-keepnames class **_GsonTypeAdapter
# Prevent obfuscation of types which use @GenerateTypeAdapter since the simple name
# is used to reflectively look up the generated adapter.
-keepnames @com.ryanharter.auto.value.gson.GenerateTypeAdapter class *
We can put these in the runtime artifact. We can also improve them to use if-rules where possible like Moshi does
From the README
We can put these in the runtime artifact. We can also improve them to use if-rules where possible like Moshi does