mirror of
https://github.com/fankes/moshi.git
synced 2025-10-19 07:59:21 +08:00
Proguard config: keep field names of annotated enums (#691)
closes #689
This commit is contained in:
committed by
Eric Cochran
parent
705ddc24e3
commit
b7055944a9
@@ -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 *
|
||||
|
||||
|
Reference in New Issue
Block a user