CB-7512: Determine SDK and build tools version dynamcally at build time

This commit is contained in:
Ian Clelland
2014-09-10 10:57:43 -04:00
parent 7ee8117186
commit c8bbdb23de
3 changed files with 153 additions and 4 deletions
+4 -2
View File
@@ -19,6 +19,8 @@
import java.util.regex.Pattern
ext.cordova = {}
apply from: 'cordova.gradle', to: ext.cordova
apply plugin: 'android'
buildscript {
@@ -57,8 +59,8 @@ android {
versionCode Integer.parseInt("" + getVersionCodeFromManifest() + "0")
}
compileSdkVersion 19
buildToolsVersion "19.0.0"
compileSdkVersion cordova.cordovaSdkVersion
buildToolsVersion cordova.cordovaBuildToolsVersion
if (multiarch || System.env.BUILD_MULTIPLE_APKS) {
productFlavors {