blob: 4ff3790f806bb4c7a45585699b117bf1766e0ecd [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}
27
28# Keep annotated classes or class members.
Aravind Sreekumar62e15732018-04-10 12:15:45 -070029-keep @androidx.annotation.Keep class *
Fan Zhang32c9cf72017-08-16 10:46:06 -070030-keepclassmembers class * {
Aravind Sreekumar62e15732018-04-10 12:15:45 -070031 @androidx.annotation.Keep *;
Fan Zhang32c9cf72017-08-16 10:46:06 -070032}