Last active
August 29, 2015 14:26
-
-
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.
This file contains hidden or 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 { | |
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