Skip to content

Commit

Permalink
Merge pull request #159 from Prokure/master
Browse files Browse the repository at this point in the history
build.gradle updated
  • Loading branch information
jedt authored Apr 23, 2019
2 parents c57f45e + 41515e7 commit 2f8a53b
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
def safeExtGet(prop, fallback) {
rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
}

apply plugin: 'com.android.library'

android {
compileSdkVersion 23
buildToolsVersion "23.0.1"
compileSdkVersion safeExtGet('compileSdkVersion', 23)
buildToolsVersion safeExtGet('buildToolsVersion', "23.0.1")

defaultConfig {
minSdkVersion 16
targetSdkVersion 22
minSdkVersion safeExtGet('minSdkVersion', 16)
targetSdkVersion safeExtGet('targetSdkVersion', 22)
versionCode 1
versionName "1.0"
ndk {
Expand All @@ -16,6 +20,6 @@ android {
}

dependencies {
compile 'com.android.support:appcompat-v7:23.0.0'
compile 'com.facebook.react:react-native:0.19.+'
implementation "com.android.support:appcompat-v7:${safeExtGet('supportLibVersion', '23.0.0')}"
implementation "com.facebook.react:react-native:+"
}

0 comments on commit 2f8a53b

Please sign in to comment.