From b2b093591a85c145c7122dcb47027d8240d5acd6 Mon Sep 17 00:00:00 2001 From: Arseniy Harlanow Date: Thu, 15 Nov 2018 16:06:13 +0300 Subject: [PATCH] Update build.gradle added compileSdkVersion, buildToolsVersion, targetSdkVersion variables --- android/build.gradle | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/android/build.gradle b/android/build.gradle index 0b9bdd3..4ea4739 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -1,13 +1,17 @@ apply plugin: 'com.android.library' +def DEFAULT_COMPILE_SDK_VERSION = 28 +def DEFAULT_BUILD_TOOLS_VERSION = "28.0.2" +def DEFAULT_TARGET_SDK_VERSION = 28 + android { - compileSdkVersion 23 - buildToolsVersion "23.0.1" + compileSdkVersion project.hasProperty('compileSdkVersion') ? project.compileSdkVersion : DEFAULT_COMPILE_SDK_VERSION + buildToolsVersion project.hasProperty('buildToolsVersion') ? project.buildToolsVersion : DEFAULT_BUILD_TOOLS_VERSION defaultConfig { minSdkVersion 16 - targetSdkVersion 22 + targetSdkVersion project.hasProperty('targetSdkVersion') ? project.targetSdkVersion : DEFAULT_TARGET_SDK_VERSION versionCode 1 versionName "1.0" ndk { @@ -22,4 +26,3 @@ android { dependencies { compile 'com.facebook.react:react-native:+' } -