enable proguard

This commit is contained in:
Daniel Gultsch 2017-12-14 14:25:49 +01:00
parent 38797177c7
commit 02011790b4
2 changed files with 32 additions and 0 deletions

View file

@ -87,6 +87,20 @@ android {
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()) {
Properties props = new Properties()

18
proguard-rules.pro vendored Normal file
View 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.**