Created
September 15, 2017 11:34
-
-
Save raaghulr/e1e8fc95309ff3bdb7dbbab9032ba9ea to your computer and use it in GitHub Desktop.
How you can decrease application size by 60% (In only 5 minutes)? Mobile devices always have limited resources. They have a limited amount of battery, limited storage, limited processing power, limited RAM, limited internet connectivity … and the list goes on. This doesn’t matter if you are targeting Android or iOS. This is the universal truth.
…
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
release { | |
//Enable the proguard | |
minifyEnabled true | |
shrinkResources true | |
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), "proguard-rules.pro" | |
//Other parameters | |
debuggable false | |
jniDebuggable false | |
renderscriptDebuggable false | |
signingConfig playStoreConfig //Add your own signing config | |
pseudoLocalesEnabled false | |
zipAlignEnabled true | |
} | |
defaultConfig { | |
//... | |
//... | |
//... | |
//strip other than english resources | |
resConfigs "en" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment