mirror of
https://github.com/MatomoCamp/matomocamp-companion-android.git
synced 2024-09-19 16:13:46 +02:00
54 lines
1.6 KiB
Text
54 lines
1.6 KiB
Text
|
# Less conservative default ProGuard rules
|
||
|
-allowaccessmodification
|
||
|
|
||
|
# Preserve some attributes that may be required for reflection.
|
||
|
-keepattributes RuntimeVisible*Annotations, AnnotationDefault
|
||
|
|
||
|
# For native methods, see http://proguard.sourceforge.net/manual/examples.html#native
|
||
|
-keepclasseswithmembernames class * {
|
||
|
native <methods>;
|
||
|
}
|
||
|
|
||
|
# For enumeration classes, see http://proguard.sourceforge.net/manual/examples.html#enumerations
|
||
|
-keepclassmembers enum * {
|
||
|
public static **[] values();
|
||
|
public static ** valueOf(java.lang.String);
|
||
|
}
|
||
|
|
||
|
-keepclassmembers class * implements android.os.Parcelable {
|
||
|
public static final ** CREATOR;
|
||
|
}
|
||
|
|
||
|
# Preserve annotated Javascript interface methods.
|
||
|
-keepclassmembers class * {
|
||
|
@android.webkit.JavascriptInterface <methods>;
|
||
|
}
|
||
|
|
||
|
# The support libraries contains references to newer platform versions.
|
||
|
# Don't warn about those in case this app is linking against an older
|
||
|
# platform version. We know about them, and they are safe.
|
||
|
-dontnote androidx.**
|
||
|
-dontwarn androidx.**
|
||
|
|
||
|
# This class is deprecated, but remains for backward compatibility.
|
||
|
-dontwarn android.util.FloatMath
|
||
|
|
||
|
# Understand the @Keep support annotation.
|
||
|
-keep class androidx.annotation.Keep
|
||
|
|
||
|
-keep @androidx.annotation.Keep class * {*;}
|
||
|
|
||
|
-keepclasseswithmembers class * {
|
||
|
@androidx.annotation.Keep <methods>;
|
||
|
}
|
||
|
|
||
|
-keepclasseswithmembers class * {
|
||
|
@androidx.annotation.Keep <fields>;
|
||
|
}
|
||
|
|
||
|
-keepclasseswithmembers class * {
|
||
|
@androidx.annotation.Keep <init>(...);
|
||
|
}
|
||
|
|
||
|
# These classes are duplicated between android.jar and core-lambda-stubs.jar.
|
||
|
-dontnote java.lang.invoke.**
|