Created
September 10, 2019 08:52
-
-
Save trinadhkoya/8769651261762c396c39af91e144d8a7 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
buildscript { | |
ext { | |
buildToolsVersion = "28.0.3" | |
minSdkVersion = 19 | |
compileSdkVersion = 28 | |
targetSdkVersion = 28 | |
supportLibVersion = "28.0.0" | |
googlePlayServicesVersion = "16.0.0" | |
getVersionCode = { -> | |
try { | |
def stdout = new ByteArrayOutputStream() | |
exec { | |
commandLine 'git', 'rev-list', '--count', 'master' | |
standardOutput = stdout | |
} | |
return Integer.parseInt(stdout.toString().trim()) | |
} | |
catch (ignored) { | |
return -1; | |
} | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment