You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
1.3 KiB
39 lines
1.3 KiB
4 months ago
|
# This is a configuration file for ProGuard.
|
||
|
# http://proguard.sourceforge.net/index.html#manual/usage.html
|
||
|
|
||
|
# Keep classes and methods that have the @VisibleForTesting annotation
|
||
|
-keep @com.android.internal.annotations.VisibleForTesting class *
|
||
|
-keepclassmembers class * {
|
||
|
@com.android.internal.annotations.VisibleForTesting *;
|
||
|
}
|
||
|
|
||
|
# We want to keep methods in Activity that could be used in the XML attribute onClick.
|
||
|
-keepclassmembers class * extends android.app.Activity {
|
||
|
public void *(android.view.View);
|
||
|
public void *(android.view.MenuItem);
|
||
|
}
|
||
|
|
||
|
# Keep setters in Views so that animations can still work.
|
||
|
-keep public class * extends android.view.View {
|
||
|
public <init>(android.content.Context);
|
||
|
public <init>(android.content.Context, android.util.AttributeSet);
|
||
|
public <init>(android.content.Context, android.util.AttributeSet, int);
|
||
|
|
||
|
void set*(***);
|
||
|
*** get*();
|
||
|
}
|
||
|
|
||
|
# Keep classes that may be inflated from XML.
|
||
|
-keepclasseswithmembers class * {
|
||
|
public <init>(android.content.Context, android.util.AttributeSet);
|
||
|
}
|
||
|
-keepclasseswithmembers class * {
|
||
|
public <init>(android.content.Context, android.util.AttributeSet, int);
|
||
|
}
|
||
|
|
||
|
# Keep annotated classes or class members.
|
||
|
-keep @androidx.annotation.Keep class *
|
||
|
-keepclassmembers class * {
|
||
|
@androidx.annotation.Keep *;
|
||
|
}
|