blob: 222c182cd4c969e9b6e5ee6d300e5e11ac082532 [file] [log] [blame]
Fan Zhang32c9cf72017-08-16 10:46:06 -07001# This is a configuration file for ProGuard.
2# http://proguard.sourceforge.net/index.html#manual/usage.html
3
4# We want to keep methods in Activity that could be used in the XML attribute onClick.
5-keepclassmembers class * extends android.app.Activity {
6 public void *(android.view.View);
7 public void *(android.view.MenuItem);
8}
9
10# Keep setters in Views so that animations can still work.
11-keep public class * extends android.view.View {
12 public <init>(android.content.Context);
13 public <init>(android.content.Context, android.util.AttributeSet);
14 public <init>(android.content.Context, android.util.AttributeSet, int);
15
16 void set*(***);
17 *** get*();
18}
19
20# Keep classes that may be inflated from XML.
21-keepclasseswithmembers class * {
22 public <init>(android.content.Context, android.util.AttributeSet);
23}
24-keepclasseswithmembers class * {
25 public <init>(android.content.Context, android.util.AttributeSet, int);
26}