aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--build.gradle29
-rw-r--r--proguard-rules.pro8
2 files changed, 30 insertions, 7 deletions
diff --git a/build.gradle b/build.gradle
index 2fa219f54..3244a0230 100644
--- a/build.gradle
+++ b/build.gradle
@@ -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 {
diff --git a/proguard-rules.pro b/proguard-rules.pro
new file mode 100644
index 000000000..cc87272f6
--- /dev/null
+++ b/proguard-rules.pro
@@ -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.** \ No newline at end of file