1# This is a configuration file for ProGuard. 2# http://proguard.sourceforge.net/index.html#manual/usage.html 3 4# Keep classes and methods that have the @VisibleForTesting annotation 5-keep @com.android.internal.annotations.VisibleForTesting class * 6-keepclassmembers class * { 7 @com.android.internal.annotations.VisibleForTesting *; 8} 9 10# We want to keep methods in Activity that could be used in the XML attribute onClick. 11-keepclassmembers class * extends android.app.Activity { 12 public void *(android.view.View); 13 public void *(android.view.MenuItem); 14} 15 16# Keep setters in Views so that animations can still work. 17-keep public class * extends android.view.View { 18 public <init>(android.content.Context); 19 public <init>(android.content.Context, android.util.AttributeSet); 20 public <init>(android.content.Context, android.util.AttributeSet, int); 21 22 void set*(***); 23 *** get*(); 24} 25 26# Keep classes that may be inflated from XML. 27-keepclasseswithmembers class * { 28 public <init>(android.content.Context, android.util.AttributeSet); 29} 30-keepclasseswithmembers class * { 31 public <init>(android.content.Context, android.util.AttributeSet, int); 32} 33 34# Keep annotated classes or class members. 35-keep @androidx.annotation.Keep class * 36-keepclassmembers class * { 37 @androidx.annotation.Keep *; 38} 39