From cbcc0802dda118808a34114baf3e2beec45c9079 Mon Sep 17 00:00:00 2001 From: Felix Ableitner Date: Thu, 30 Oct 2014 17:54:53 +0200 Subject: [PATCH] Put proguard back in to avoid OutOfMemoryExceptions. I removed it earlier because of warnings, but these weren't important. --- app/build.gradle | 6 ++++++ app/proguard-rules.pro | 24 ++++++++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 app/proguard-rules.pro diff --git a/app/build.gradle b/app/build.gradle index c5e794e..1687d1c 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -43,8 +43,14 @@ android { buildTypes { debug { + runProguard true + proguardFile file("proguard-rules.pro") applicationIdSuffix ".debug" } + release { + runProguard true + proguardFile file("proguard-rules.pro") + } } // Avoid duplicate file errors during packaging. diff --git a/app/proguard-rules.pro b/app/proguard-rules.pro new file mode 100644 index 0000000..1c42e53 --- /dev/null +++ b/app/proguard-rules.pro @@ -0,0 +1,24 @@ +# Add project specific ProGuard rules here. +# By default, the flags in this file are appended to flags specified +# in /home/felix/software/android-studio/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 *; +#} +-dontoptimize +-dontobfuscate +-dontpreverify +-dontwarn scala.** +-keep class !scala*.** { *; } +-ignorewarnings + +# Suppress warnings caused by msgpack (code works fine anyway). +-dontwarn