Skip to content

Instantly share code, notes, and snippets.

@nontravis
Created April 18, 2018 15:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nontravis/3cbbe7ed1f0f9452840243201fa2c3af to your computer and use it in GitHub Desktop.
Save nontravis/3cbbe7ed1f0f9452840243201fa2c3af to your computer and use it in GitHub Desktop.
improveSpeed.gradle
android {
flavorDimensions "minApi"
productFlavors {
production{
}
minApi21 {
dimension "minApi"
minSdkVersion 21
versionNameSuffix "-minApi21"
applicationIdSuffix ".min21"
}
}
// ./gradlew <your-app>:assembleDevelopmentDebug -PdevBuild
// or
// Preferences ==> Compiler ==> Command-line Option -PdevBuild
if (project.hasProperty('devBuild')) {
splits.abi.enable = false
splits.density.enable = false
aaptOptions.cruncherEnabled = false
}
buildTypes {
debug{
ext.alwaysUpdateBuildId = false // for io.fabric
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment