Proguard config: keep field names of annotated enums (#691)
closes #689
This commit is contained in:
parent
705ddc24e3
commit
b7055944a9
1 changed files with 6 additions and 0 deletions
|
@ -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 *
|
||||
|
||||
|
|
Loading…
Reference in a new issue