]> hydra-www.ietfng.org Git - acmetensortoys-teled/commitdiff
Fix build slamming into 64K method limit by minifying debug build
authorNathaniel Wesley Filardo <nwf@cs.jhu.edu>
Sat, 20 Aug 2016 19:17:26 +0000 (15:17 -0400)
committerNathaniel Wesley Filardo <nwf@cs.jhu.edu>
Sat, 20 Aug 2016 19:17:26 +0000 (15:17 -0400)
build.gradle
mobile/build.gradle
mobile/proguard-rules-debug.pro [new file with mode: 0644]

index aff4f415e95080b78852dc945e3e1ac5e5687cb0..77ce66ea36eed3ec5c10abb7b2618ed4748e0081 100644 (file)
@@ -5,7 +5,7 @@ buildscript {
         jcenter()
     }
     dependencies {
-        classpath 'com.android.tools.build:gradle:2.1.2'
+        classpath 'com.android.tools.build:gradle:2.1.3'
 
         // NOTE: Do not place your application dependencies here; they belong
         // in the individual module build.gradle files
index 6a9f4ee21b7dda374198879b9ba9e0296d2fe489..47254b76cf50a99684d0b1d0f350e6fa42fa5a68 100644 (file)
@@ -13,9 +13,13 @@ android {
     }
     buildTypes {
         release {
-            minifyEnabled false
+            minifyEnabled true
             proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
         }
+        debug {
+            minifyEnabled true
+            // proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules-debug.pro'
+        }
     }
 
     compileOptions {
diff --git a/mobile/proguard-rules-debug.pro b/mobile/proguard-rules-debug.pro
new file mode 100644 (file)
index 0000000..237fe44
--- /dev/null
@@ -0,0 +1,19 @@
+# Add project specific ProGuard rules here.
+# By default, the flags in this file are appended to flags specified
+# in /home/nwf/Android/Sdk/tools/proguard/proguard-android.txt
+# You can edit the include path and order by changing the proguardFiles
+# directive in build.gradle.
+#
+# For more details, see
+#   http://developer.android.com/guide/developing/tools/proguard.html
+
+# Add any project specific keep options here:
+
+# If your project uses WebView with JS, uncomment the following
+# and specify the fully qualified class name to the JavaScript interface
+# class:
+#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
+#   public *;
+#}
+
+-dontobfuscate
\ No newline at end of file