enable proguard
This commit is contained in:
parent
38797177c7
commit
02011790b4
14
build.gradle
14
build.gradle
|
@ -87,6 +87,20 @@ android {
|
||||||
free
|
free
|
||||||
}
|
}
|
||||||
|
|
||||||
|
buildTypes {
|
||||||
|
release {
|
||||||
|
shrinkResources true
|
||||||
|
minifyEnabled true
|
||||||
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
||||||
|
}
|
||||||
|
debug {
|
||||||
|
shrinkResources true
|
||||||
|
minifyEnabled true
|
||||||
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if(new File("signing.properties").exists()) {
|
if(new File("signing.properties").exists()) {
|
||||||
Properties props = new Properties()
|
Properties props = new Properties()
|
||||||
|
|
18
proguard-rules.pro
vendored
Normal file
18
proguard-rules.pro
vendored
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
-dontobfuscate
|
||||||
|
|
||||||
|
-keep class eu.siacs.conversations.**
|
||||||
|
|
||||||
|
-keep class org.whispersystems.**
|
||||||
|
|
||||||
|
-keep class com.kyleduo.switchbutton.Configuration
|
||||||
|
|
||||||
|
-keep class com.soundcloud.android.crop.**
|
||||||
|
|
||||||
|
-keep class com.google.android.gms.**
|
||||||
|
|
||||||
|
-keep class org.openintents.openpgp.*
|
||||||
|
|
||||||
|
-dontwarn org.bouncycastle.mail.**
|
||||||
|
-dontwarn org.bouncycastle.x509.util.LDAPStoreHelper
|
||||||
|
-dontwarn org.bouncycastle.jce.provider.X509LDAPCertStoreSpi
|
||||||
|
-dontwarn org.bouncycastle.cert.dane.**
|
Loading…
Reference in a new issue