From e3a6feae7fb8eb6b70383a663bc8df34cb584259 Mon Sep 17 00:00:00 2001 From: Moez Bhatti Date: Mon, 19 Mar 2018 12:14:36 -0700 Subject: [PATCH] Enable proguard for release builds --- qksms/build.gradle | 3 ++- qksms/proguard-rules.pro | 30 +++++++----------------------- 2 files changed, 9 insertions(+), 24 deletions(-) diff --git a/qksms/build.gradle b/qksms/build.gradle index 0ea9ec72..356f4b75 100644 --- a/qksms/build.gradle +++ b/qksms/build.gradle @@ -28,7 +28,8 @@ android { buildTypes { release { - minifyEnabled false + minifyEnabled true + shrinkResources true proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' signingConfig signingConfigs.release } diff --git a/qksms/proguard-rules.pro b/qksms/proguard-rules.pro index b84a2a5e..698eeab1 100644 --- a/qksms/proguard-rules.pro +++ b/qksms/proguard-rules.pro @@ -1,25 +1,9 @@ -# Add project specific ProGuard rules here. -# By default, the flags in this file are appended to flags specified -# in /Users/moez/Library/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 +-dontobfuscate -# Add any project specific keep options here: +# android-smsmms +# -keep class android.net.** { *; } +-dontwarn android.net.ConnectivityManager +-dontwarn android.net.LinkProperties -# 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 *; -#} - -# Uncomment this to preserve the line number information for -# debugging stack traces. -#-keepattributes SourceFile,LineNumberTable - -# If you keep the line number information, uncomment this to -# hide the original source file name. -#-renamesourcefileattribute SourceFile +# okio +-dontwarn okio.** \ No newline at end of file