Skip to content

Commit 0ddbb26

Browse files
authored
Merge pull request #20 from odaridavid/minify-app
Minify app
2 parents e1bc6cf + 5485e25 commit 0ddbb26

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

app/build.gradle

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ android {
1313

1414
def versionMajor = 1
1515
def versionMinor = 2
16-
def versionPatch = 0
16+
def versionPatch = 1
1717

1818
applicationId "com.github.odaridavid.designpatterns"
1919
minSdkVersion 21
@@ -26,7 +26,8 @@ android {
2626

2727
buildTypes {
2828
release {
29-
minifyEnabled false
29+
minifyEnabled true
30+
shrinkResources true
3031
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
3132
manifestPlaceholders = [
3233
crashlyticsEnabled: true,

app/proguard-rules.pro

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,10 @@
1919
# If you keep the line number information, uncomment this to
2020
# hide the original source file name.
2121
#-renamesourcefileattribute SourceFile
22+
-keep class **.R$* {
23+
<fields>;
24+
}
25+
26+
-printusage build/outputs/mapping/release/usage.txt
27+
28+
-keep class com.github.odaridavid.designpatterns.** {*;}

whatsnew/whatsnew-en-GB

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
- Added prompt for user rating
2-
- Added share app action
1+
- Reduce app size

0 commit comments

Comments
 (0)