mirror of
https://github.com/fankes/moshi.git
synced 2025-10-18 23:49:21 +08:00
Update README to include enum section in ProGuard/R8 rules (#1354)
This commit is contained in:
@@ -706,6 +706,10 @@ R8 / ProGuard
|
|||||||
|
|
||||||
Moshi contains minimally required rules for its own internals to work without need for consumers to embed their own. However if you are using reflective serialization and R8 or ProGuard, you must add keep rules in your proguard configuration file for your reflectively serialized classes.
|
Moshi contains minimally required rules for its own internals to work without need for consumers to embed their own. However if you are using reflective serialization and R8 or ProGuard, you must add keep rules in your proguard configuration file for your reflectively serialized classes.
|
||||||
|
|
||||||
|
#### Enums
|
||||||
|
|
||||||
|
Annotate enums with `@JsonClass(generateAdapter = false)` to prevent them from being removed/obfuscated from your code by R8/ProGuard.
|
||||||
|
|
||||||
License
|
License
|
||||||
--------
|
--------
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user