Unverified Commit 57d1eba2 authored by Carlos Q's avatar Carlos Q Committed by GitHub

Use project-wide properties and new dependency

* Support for gradle 3.+
* Support for RN 0.56.+
parent d9c581ff
apply plugin: 'com.android.library' apply plugin: 'com.android.library'
def DEFAULT_COMPILE_SDK_VERSION = 26
def DEFAULT_BUILD_TOOLS_VERSION = "26.0.3"
def DEFAULT_TARGET_SDK_VERSION = 26
def DEFAULT_MIN_SDK_VERSION = 16
android { android {
compileSdkVersion 23 compileSdkVersion rootProject.hasProperty('compileSdkVersion') ? rootProject.compileSdkVersion : DEFAULT_COMPILE_SDK_VERSION
buildToolsVersion "23.0.1" buildToolsVersion rootProject.hasProperty('buildToolsVersion') ? rootProject.buildToolsVersion : DEFAULT_BUILD_TOOLS_VERSION
defaultConfig { defaultConfig {
minSdkVersion 16 minSdkVersion rootProject.hasProperty('minSdkVersion') ? rootProject.minSdkVersion : DEFAULT_MIN_SDK_VERSION
targetSdkVersion 22 targetSdkVersion rootProject.hasProperty('targetSdkVersion') ? rootProject.targetSdkVersion : DEFAULT_TARGET_SDK_VERSION
versionCode 1 versionCode 1
versionName "1.0" versionName "1.0"
ndk { ndk {
...@@ -16,5 +21,5 @@ android { ...@@ -16,5 +21,5 @@ android {
} }
dependencies { dependencies {
compile 'com.facebook.react:react-native:+' implementation 'com.facebook.react:react-native:+'
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment