Created
April 18, 2018 15:20
-
-
Save nontravis/3cbbe7ed1f0f9452840243201fa2c3af to your computer and use it in GitHub Desktop.
improveSpeed.gradle
This file contains 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
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