mirror of
https://github.com/fankes/moshi.git
synced 2025-10-20 00:19:21 +08:00
Merge pull request #693 from technoir42/keep-enum-fields
Always keep fields of annotated enums
This commit is contained in:
@@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
# Enum field names are used by the integrated EnumJsonAdapter.
|
# Enum field names are used by the integrated EnumJsonAdapter.
|
||||||
# Annotate enums with @JsonClass(generateAdapter = false) to use them with Moshi.
|
# Annotate enums with @JsonClass(generateAdapter = false) to use them with Moshi.
|
||||||
-keepclassmembernames @com.squareup.moshi.JsonClass class * extends java.lang.Enum {
|
-keepclassmembers @com.squareup.moshi.JsonClass class * extends java.lang.Enum {
|
||||||
<fields>;
|
<fields>;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user