v7 appcompat ProGuard rules

v7 appcompat - library that adds support for the Action Bar user interface design pattern.

This library includes support for material design user interface implementations.

ProGuard rules for v7 appcompat

ProGuard removes unused classes, fields and attributes, and it optimizes and obfuscates the rest code. After ProGuard shrinks and obfuscates code, short names like 'a', 'b', etc. are used as obfuscated names. Specify the following rules in proguard-rules.pro configuration file.

-keepnames class !android.support.v7.internal.view.menu.**, ** { *; }

-keep public class android.support.v7.widget.** { *; }
-keep public class android.support.v7.internal.widget.** { *; }

-keep public class * extends android.support.v4.view.ActionProvider {
    public (android.content.Context);
}

-keepattributes *Annotation*
-keep public class * extends android.support.design.widget.CoordinatorLayout.Behavior { *; }
-keep public class * extends android.support.design.widget.ViewOffsetBehavior { *; }

For more information about v7 appcompat please see the website.

Static Gson ProGuard rules

Popular ProGuard rules