From: Nathaniel Wesley Filardo Date: Sat, 20 Aug 2016 19:17:26 +0000 (-0400) Subject: Fix build slamming into 64K method limit by minifying debug build X-Git-Url: https://hydra-www.ietfng.org/gitweb/?a=commitdiff_plain;h=04c4079ea38de1fbb9ad91203b1cb22bc94bc65d;p=acmetensortoys-teled Fix build slamming into 64K method limit by minifying debug build --- diff --git a/build.gradle b/build.gradle index aff4f41..77ce66e 100644 --- a/build.gradle +++ b/build.gradle @@ -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 diff --git a/mobile/build.gradle b/mobile/build.gradle index 6a9f4ee..47254b7 100644 --- a/mobile/build.gradle +++ b/mobile/build.gradle @@ -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 index 0000000..237fe44 --- /dev/null +++ b/mobile/proguard-rules-debug.pro @@ -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