CB-3445: Make minSdkVersion and base versionCode settable through env vars

This commit is contained in:
Ian Clelland 2014-09-17 15:54:28 -04:00
parent cb442364ca
commit 7ce46ed60c
2 changed files with 2 additions and 2 deletions

View File

@ -57,7 +57,7 @@ android {
}
defaultConfig {
versionCode Integer.parseInt("" + getVersionCodeFromManifest() + "0")
versionCode Integer.parseInt(System.env.ANDROID_VERSION_CODE ?: ("" + getVersionCodeFromManifest() + "0"))
}
compileSdkVersion cordova.cordovaSdkVersion

View File

@ -115,6 +115,6 @@ String getAndroidSdkDir() {
androidSdkDir
}
cordovaSdkVersion = getProjectTarget("android-19")
cordovaSdkVersion = System.env.MIN_SDK_VERSION ?: getProjectTarget("android-19")
cordovaBuildToolsVersion = latestBuildToolsAvailable("19.1.0")