diff --git a/android/build.gradle b/android/build.gradle index 8a174dc..6eea259 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -1,12 +1,21 @@ apply plugin: 'com.android.library' +def safeExtGet(prop, fallback) { + rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback +} + +def DEFAULT_COMPILE_SDK_VERSION = 26 +def DEFAULT_BUILD_TOOLS_VERSION = "26.0.3" +def DEFAULT_MIN_SDK_VERSION = 16 +def DEFAULT_TARGET_SDK_VERSION = 22 + android { - compileSdkVersion 25 - buildToolsVersion "25.0.2" + compileSdkVersion safeExtGet('compileSdkVersion', DEFAULT_COMPILE_SDK_VERSION) + buildToolsVersion safeExtGet('buildToolsVersion', DEFAULT_BUILD_TOOLS_VERSION) defaultConfig { - minSdkVersion 16 - targetSdkVersion 25 + minSdkVersion safeExtGet('minSdkVersion', DEFAULT_MIN_SDK_VERSION) + targetSdkVersion safeExtGet('targetSdkVersion', DEFAULT_TARGET_SDK_VERSION) versionCode 1 versionName "1.0" ndk { diff --git a/package.json b/package.json index 22e016b..025b502 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-native-geocoder", - "version": "0.5.0", + "version": "0.6.0", "description": "react native geocoding and reverse geocoding", "main": "index.js", "scripts": {