Skip to content

Instantly share code, notes, and snippets.

@raaghulr
Created September 15, 2017 11:34
Show Gist options
  • Save raaghulr/e1e8fc95309ff3bdb7dbbab9032ba9ea to your computer and use it in GitHub Desktop.
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. …
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