Last active
March 8, 2016 06:32
-
-
Save patrykpoborca/55e99929bb54e7e209bf to your computer and use it in GitHub Desktop.
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 { | |
compileSdkVersion 23 | |
buildToolsVersion '23.0.2' | |
defaultConfig { | |
applicationId "testing" | |
minSdkVersion getMinSdk() | |
targetSdkVersion 23 | |
versionCode 1 | |
versionName "1.0" | |
} | |
buildTypes { | |
release { | |
} | |
debug { | |
} | |
} | |
} | |
def getMinSdk() | |
{ | |
for (String taskName : project.getGradle().startParameter.taskNames) | |
{ | |
if (taskName.toLowerCase().contains("release")) | |
{ | |
return 19 | |
} | |
} | |
return 21 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment