modified build.gradle and added proguard-rules

This commit is contained in:
Christian Schneppe 2016-09-08 22:47:55 +02:00
parent b2d52182dd
commit ab5079318f
2 changed files with 30 additions and 7 deletions

View file

@ -30,6 +30,9 @@ configurations {
dependencies {
compile project(':libs:MemorizingTrustManager')
compile project(':libs:audiowife')
compile files('libs/aspectjrt-1.7.3.jar')
compile files('libs/isoparser-1.0.6.jar')
playstoreCompile 'com.google.android.gms:play-services-gcm:9.4.0'
compile 'org.sufficientlysecure:openpgp-api:10.0'
compile 'com.soundcloud.android:android-crop:1.0.1@aar'
compile 'com.android.support:support-v13:24.2.0'
@ -56,10 +59,9 @@ dependencies {
compile 'com.google.android.gms:play-services-location:9.4.0'
compile 'com.google.android.gms:play-services-maps:9.4.0'
compile 'pub.devrel:easypermissions:0.1.9'
compile "com.wefika:flowlayout:0.4.1"
compile files('libs/aspectjrt-1.7.3.jar')
compile files('libs/isoparser-1.0.6.jar')
playstoreCompile 'com.google.android.gms:play-services-gcm:9.4.0'
compile 'com.wefika:flowlayout:0.4.1'
compile 'io.github.rockerhieu:emojicon:1.4.1'
compile 'com.google.android.gms:play-services-gcm:9.4.0'
}
ext {
@ -113,9 +115,22 @@ android {
keyPassword mKeyPassword
}
}
buildTypes.release.signingConfig = signingConfigs.release
} else {
buildTypes.release.signingConfig = null
buildTypes {
debug {
debuggable true
jniDebuggable true
buildTypes.release.signingConfig = null
//applicationIdSuffix ".debug"
}
release {
debuggable false
jniDebuggable false
signingConfig = signingConfigs.release
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
sourceSets.main {

8
proguard-rules.pro vendored Normal file
View file

@ -0,0 +1,8 @@
-keep public class com.google.android.gms.* { public *; }
-keepnames @com.google.android.gms.common.annotation.KeepName class *
-keepclassmembernames class * {
@com.google.android.gms.common.annotation.KeepName *;
}
-dontwarn com.google.android.gms.**
-dontwarn com.google.common.cache.**
-dontwarn com.google.common.primitives.**