Proguard config: keep field names of annotated enums (#691)

closes #689
This commit is contained in:
Gabriel Ittner 2018-09-25 20:52:05 +02:00 committed by Eric Cochran
parent 705ddc24e3
commit b7055944a9

View file

@ -7,6 +7,12 @@
-keep @com.squareup.moshi.JsonQualifier interface *
# Enum field names are used by the integrated EnumJsonAdapter.
# Annotate enums with @JsonClass(generateAdapter = false) to use them with Moshi.
-keepclassmembernames @com.squareup.moshi.JsonClass class * extends java.lang.Enum {
<fields>;
}
# The name of @JsonClass types is used to look up the generated adapter.
-keepnames @com.squareup.moshi.JsonClass class *