rharter / auto-value-gson

AutoValue Extension to add Gson De/Serializer support
Apache License 2.0
607 stars 103 forks source link

Embed proguard rules in the runtime artifact #200

Closed ZacSweers closed 5 years ago

ZacSweers commented 5 years ago

From the README

# 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