diff options
Diffstat (limited to 'ui')
-rw-r--r-- | ui/build.gradle | 2 | ||||
-rw-r--r-- | ui/proguard-android-optimize.txt | 36 |
2 files changed, 37 insertions, 1 deletions
diff --git a/ui/build.gradle b/ui/build.gradle index e1d99604..2ebfc1af 100644 --- a/ui/build.gradle +++ b/ui/build.gradle @@ -57,7 +57,7 @@ android { } } minifyEnabled true - proguardFiles getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro" + proguardFiles "proguard-android-optimize.txt", "proguard-rules.pro" } debug { applicationIdSuffix ".debug" diff --git a/ui/proguard-android-optimize.txt b/ui/proguard-android-optimize.txt new file mode 100644 index 00000000..e2095ad6 --- /dev/null +++ b/ui/proguard-android-optimize.txt @@ -0,0 +1,36 @@ +-allowaccessmodification +-dontpreverify +-dontusemixedcaseclassnames +-dontskipnonpubliclibraryclasses +-verbose + +-keepattributes *Annotation* + +-keepclasseswithmembernames class * { + native <methods>; +} + +-keepclassmembers enum * { + public static **[] values(); + public static ** valueOf(java.lang.String); +} + +-keepclassmembers class * implements android.os.Parcelable { + public static final ** CREATOR; +} + +-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>(...); +} |