From 4ef69969a7532b053e6020318596a24fea84f889 Mon Sep 17 00:00:00 2001 From: Christian Schabesberger Date: Tue, 12 Sep 2017 13:32:53 +0200 Subject: [PATCH] enable minify --- app/build.gradle | 3 ++- app/proguard-rules.pro | 10 ++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/app/build.gradle b/app/build.gradle index d505f4272..941dc72d7 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -16,7 +16,8 @@ android { } buildTypes { release { - minifyEnabled false + minifyEnabled true + shrinkResources true proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } debug { diff --git a/app/proguard-rules.pro b/app/proguard-rules.pro index 9f45c4a69..d38a631a2 100644 --- a/app/proguard-rules.pro +++ b/app/proguard-rules.pro @@ -15,3 +15,13 @@ #-keepclassmembers class fqcn.of.javascript.interface.for.webview { # public *; #} + +-dontobfuscate +-keep class org.mozilla.javascript.** { *; } + +-keep class org.mozilla.classfile.ClassFileWriter +-keep class com.google.android.exoplayer2.** { *; } + +-dontwarn org.mozilla.javascript.tools.** +-dontwarn android.arch.util.paging.CountedDataSource +-dontwarn android.arch.persistence.room.paging.LimitOffsetDataSource \ No newline at end of file