From b2efa374574124450078662e4ccfceec7233839e Mon Sep 17 00:00:00 2001 From: Danish Date: Tue, 14 Aug 2018 15:35:37 +0300 Subject: [PATCH] add project-wide properties as ext block ref: https://developer.android.com/studio/build/ also some extra properties such as `buildToolsVersion` `supportLibVersion ` `googlePlayServicesVersion` these might be unnecessary, If so, let me know so I can remove them. --- android/capacitor/build.gradle | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/android/capacitor/build.gradle b/android/capacitor/build.gradle index a71b48d9be..6f26b1c3ff 100644 --- a/android/capacitor/build.gradle +++ b/android/capacitor/build.gradle @@ -13,11 +13,20 @@ buildscript { apply plugin: 'com.android.library' apply plugin: 'com.novoda.bintray-release' +ext { + buildToolsVersion = "27.0.3" + minSdkVersion = 21 + compileSdkVersion = 27 + targetSdkVersion = 27 + supportLibVersion = "27.1.1" + googlePlayServicesVersion = "15.0.1" +} + android { - compileSdkVersion 27 + compileSdkVersion rootProject.ext.compileSdkVersion defaultConfig { - minSdkVersion 21 - targetSdkVersion 27 + minSdkVersion rootProject.ext.minSdkVersion + targetSdkVersion rootProject.ext.targetSdkVersion versionCode 1 versionName "1.0" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"