Skip to content

Commit

Permalink
Merge pull request #20 from odaridavid/minify-app
Browse files Browse the repository at this point in the history
Minify app
  • Loading branch information
odaridavid authored Jun 7, 2020
2 parents e1bc6cf + 5485e25 commit 0ddbb26
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
5 changes: 3 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ android {

def versionMajor = 1
def versionMinor = 2
def versionPatch = 0
def versionPatch = 1

applicationId "com.github.odaridavid.designpatterns"
minSdkVersion 21
Expand All @@ -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,
Expand Down
7 changes: 7 additions & 0 deletions app/proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -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$* {
<fields>;
}

-printusage build/outputs/mapping/release/usage.txt

-keep class com.github.odaridavid.designpatterns.** {*;}
3 changes: 1 addition & 2 deletions whatsnew/whatsnew-en-GB
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
- Added prompt for user rating
- Added share app action
- Reduce app size

0 comments on commit 0ddbb26

Please sign in to comment.