From 29d2f0f0ed65b7f8d5e0bc95bda6b30ce506a08d Mon Sep 17 00:00:00 2001 From: iury souza Date: Sun, 12 Sep 2021 21:54:44 -0300 Subject: [PATCH] Update README to include enum section in ProGuard/R8 rules (#1354) --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index c442b5d..b532d9c 100644 --- a/README.md +++ b/README.md @@ -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. +#### Enums + +Annotate enums with `@JsonClass(generateAdapter = false)` to prevent them from being removed/obfuscated from your code by R8/ProGuard. + License --------