diff --git a/app/build.gradle b/app/build.gradle index ba7f71b0..adfd3968 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -88,8 +88,13 @@ android { ] } release { - minifyEnabled false - proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' + postprocessing { + removeUnusedCode true + removeUnusedResources true + obfuscate false + optimizeCode true + proguardFiles 'proguard-rules.pro' + } signingConfig signingConfigs.testRelease manifestPlaceholders = [ appIcon: "@mipmap/ic_launcher_2", diff --git a/app/proguard-rules.pro b/app/proguard-rules.pro index 481bb434..32d35197 100644 --- a/app/proguard-rules.pro +++ b/app/proguard-rules.pro @@ -18,4 +18,7 @@ # If you keep the line number information, uncomment this to # hide the original source file name. -#-renamesourcefileattribute SourceFile \ No newline at end of file +#-renamesourcefileattribute SourceFile + +-dontwarn org.slf4j.impl.StaticLoggerBinder +-dontwarn javax.xml.stream.XMLResolver