From 642591a61e7009733d7729f9bd63822ed0c34523 Mon Sep 17 00:00:00 2001 From: M66B Date: Fri, 30 Oct 2015 10:10:05 +0100 Subject: [PATCH] Enabled proguard --- app/build.gradle | 2 +- app/proguard-rules.pro | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/app/build.gradle b/app/build.gradle index db008082..66ad56f0 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -13,7 +13,7 @@ android { } buildTypes { release { - minifyEnabled false + minifyEnabled true proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' applicationVariants.all { variant -> setOutputFile(variant, defaultConfig) diff --git a/app/proguard-rules.pro b/app/proguard-rules.pro index c4fd90e4..5f0bf8c2 100644 --- a/app/proguard-rules.pro +++ b/app/proguard-rules.pro @@ -15,3 +15,11 @@ #-keepclassmembers class fqcn.of.javascript.interface.for.webview { # public *; #} + +#Line numbers +-renamesourcefileattribute SourceFile +-keepattributes SourceFile,LineNumberTable + +#NetGuard +-keepnames class eu.faircode.netguard.** { *; } +-dontwarn android.support.v4.**