From 04c4079ea38de1fbb9ad91203b1cb22bc94bc65d Mon Sep 17 00:00:00 2001 From: Nathaniel Wesley Filardo Date: Sat, 20 Aug 2016 15:17:26 -0400 Subject: [PATCH] Fix build slamming into 64K method limit by minifying debug build --- build.gradle | 2 +- mobile/build.gradle | 6 +++++- mobile/proguard-rules-debug.pro | 19 +++++++++++++++++++ 3 files changed, 25 insertions(+), 2 deletions(-) create mode 100644 mobile/proguard-rules-debug.pro 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 -- 2.50.1