From 05a2d9b1e82c45ea678ce1057d72cab1d2b11f3c Mon Sep 17 00:00:00 2001 From: Cihan Cil Date: Mon, 3 Dec 2018 13:22:33 +0300 Subject: [PATCH] adding project-file properties for compileSdkVersion and targetSdkVersion --- android/build.gradle | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/android/build.gradle b/android/build.gradle index 53a1a73..3a2bbb0 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -1,12 +1,14 @@ apply plugin: "com.android.library" +def _ext = rootProject.ext + android { - compileSdkVersion 25 - buildToolsVersion "25.0.1" + compileSdkVersion _ext.has('compileSdkVersion') ? _ext.compileSdkVersion : 27 + buildToolsVersion _ext.has('buildToolsVersion') ? _ext.buildToolsVersion : '27.0.3' defaultConfig { - minSdkVersion 16 - targetSdkVersion 23 + minSdkVersion _ext.has('minSdkVersion') ? _ext.minSdkVersion : 16 + targetSdkVersion _ext.has('targetSdkVersion') ? _ext.targetSdkVersion : 23 versionCode 1 versionName "1.0" }