diff --git a/app/build.gradle b/app/build.gradle index 2d95b0acf..6b1970d15 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -60,7 +60,7 @@ android { release { minifyEnabled true shrinkResources true - proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' + proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' signingConfig signingConfigs.release } debug { diff --git a/app/proguard-rules.pro b/app/proguard-rules.pro index 7c7962575..c83795603 100644 --- a/app/proguard-rules.pro +++ b/app/proguard-rules.pro @@ -1,33 +1,21 @@ -# Optimizations --optimizationpasses 5 --optimizations !code/simplification/arithmetic,!field/*,!class/merging/* --dontusemixedcaseclassnames --dontskipnonpubliclibraryclasses --dontskipnonpubliclibraryclassmembers --dontpreverify +# General -dontobfuscate --allowaccessmodification --repackageclasses '' --verbose -#Keep all wulkanowy files +#Config for wulkanowy -keep class io.github.wulkanowy.** {*;} -#Config for anallitycs --keepattributes *Annotation* +#Config for firebase crashlitycs -keepattributes SourceFile,LineNumberTable --keep class com.crashlytics.** {*;} -keep public class * extends java.lang.Exception --dontwarn com.crashlytics.** -#Config for OkHttp +#Config for Okio and OkHttp +-dontwarn javax.annotation.** -keepnames class okhttp3.internal.publicsuffix.PublicSuffixDatabase -dontwarn org.codehaus.mojo.animal_sniffer.* -dontwarn okhttp3.internal.platform.ConscryptPlatform --dontwarn javax.annotation.** #Config for MPAndroidChart @@ -35,11 +23,4 @@ #Config for Material Components --keep class com.google.android.material.tabs.** { *; } - - -#Config for About Libraries --keep class .R --keep class **.R$* { - ; -} +-keep class com.google.android.material.tabs.** { *; } \ No newline at end of file