Icepick ProGuard rules

Icepick - Android library that eliminates the boilerplate of saving and restoring instance state. It uses annotation processing to generate code that does bundle manipulation and key generation, so that you don't have to write it yourself.

ProGuard rules for Icepick

By default, shrinking is applied; all classes and class members are removed. By default, short names like 'a', 'b', etc. are used as obfuscated names. Use the following rules in your proguard-rules.pro configuration file.

-dontwarn icepick.**
-keep class icepick.** { *; }
-keep class **$$Icepick { *; }
-keepclasseswithmembernames class * {
    @icepick.* <fields>;
}
-keepnames class * { @icepick.State *;}

For more information about Icepick please see the website.

Related ProGuard rules

Static Gson ProGuard rules

Popular ProGuard rules