Enabled proguard for both debug and release versions and fixed the gradle warnings related to proguard unsatisfied rules in a correct way without ignoring all possible warnings.

This commit is contained in:
Severiano Jaramillo 2018-12-14 09:54:02 -06:00
parent 1a335b2ab5
commit 20e17108ec
2 changed files with 7 additions and 2 deletions

View file

@ -21,6 +21,9 @@ android {
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
debug {
minifyEnabled true
shrinkResources true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
resValue("string", "PORT_NUMBER", "8082")
}
}

View file

@ -20,5 +20,7 @@
# hide the original source file name.
#-renamesourcefileattribute SourceFile
## TODO actually fix this
-ignorewarnings
-dontwarn sun.misc.Unsafe
-dontwarn org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement
-dontwarn org.bitcoinj.store**
-dontwarn org.slf4j.**