Skip to content

Instantly share code, notes, and snippets.

@patrickhammond
Last active August 29, 2015 14:26
Show Gist options
  • Save patrickhammond/d529f29bf6e3077ac920 to your computer and use it in GitHub Desktop.
Save patrickhammond/d529f29bf6e3077ac920 to your computer and use it in GitHub Desktop.
Gradle build script with API 21 min SDK to skip some dex overhead when developing against Lollipop and above.
android {
productFlavors {
app {
}
appFast {
// dev utilizes minSDKVersion = 21 to allow the Android gradle plugin
// to pre-dex each module and produce an APK that can be tested on
// Android Lollipop without time consuming dex merging processes.
minSdkVersion 21
}
}
sourceSets {
appFast.setRoot('src/app')
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment