From 22dbcd09fa07ed210ccb9bf8b417d6be4fd20dac Mon Sep 17 00:00:00 2001 From: Davidodari Date: Mon, 8 Jun 2020 00:35:10 +0300 Subject: [PATCH 1/2] enable minification --- app/build.gradle | 3 ++- app/proguard-rules.pro | 7 +++++++ whatsnew/whatsnew-en-GB | 3 +-- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 402eac1..2c777f2 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -26,7 +26,8 @@ android { buildTypes { release { - minifyEnabled false + minifyEnabled true + shrinkResources true proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' manifestPlaceholders = [ crashlyticsEnabled: true, diff --git a/app/proguard-rules.pro b/app/proguard-rules.pro index f1b4245..47cf05a 100644 --- a/app/proguard-rules.pro +++ b/app/proguard-rules.pro @@ -19,3 +19,10 @@ # If you keep the line number information, uncomment this to # hide the original source file name. #-renamesourcefileattribute SourceFile +-keep class **.R$* { + ; +} + +-printusage build/outputs/mapping/release/usage.txt + +-keep class com.github.odaridavid.designpatterns.** {*;} \ No newline at end of file diff --git a/whatsnew/whatsnew-en-GB b/whatsnew/whatsnew-en-GB index f444c2f..842ce3b 100644 --- a/whatsnew/whatsnew-en-GB +++ b/whatsnew/whatsnew-en-GB @@ -1,2 +1 @@ -- Added prompt for user rating -- Added share app action \ No newline at end of file +- Reduce app size \ No newline at end of file From 5485e252ef0013f00a39d9adbebe83afce9f011c Mon Sep 17 00:00:00 2001 From: Davidodari Date: Mon, 8 Jun 2020 00:35:49 +0300 Subject: [PATCH 2/2] version bump to 1.2.1 --- app/build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/build.gradle b/app/build.gradle index 2c777f2..93fbc2b 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -13,7 +13,7 @@ android { def versionMajor = 1 def versionMinor = 2 - def versionPatch = 0 + def versionPatch = 1 applicationId "com.github.odaridavid.designpatterns" minSdkVersion 21