Skip to content

Instantly share code, notes, and snippets.

@hossain-khan
Created March 3, 2017 16:31
Show Gist options
  • Save hossain-khan/9ef158bba9cdfee9511d427c5d477f15 to your computer and use it in GitHub Desktop.
Save hossain-khan/9ef158bba9cdfee9511d427c5d477f15 to your computer and use it in GitHub Desktop.
Android Build Gradle faster build configs. Based on https://developer.android.com/studio/build/optimize-your-build.html
productFlavors {
dev {
// To avoid using legacy multidex, set minSdkVersion to 21 or higher.
minSdkVersion 21
// The following configuration limits the "dev" flavor to using
// English string resources and xxhdpi screen-density resources.
resConfigs "en", "xxxhdpi"
// Disable Crashlytics for your debug builds
// If you don't need to run a Crashlytics report, speed up your debug builds by disabling the plugin
//ext.enableCrashlytics = false
// To prevent Crashlytics from constantly updating its build ID
ext.alwaysUpdateBuildId = false
versionName defaultConfig.versionName + "-dev"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment