Make this work with RN 56 (#283)

* Make this work with RN 56

* Don't forget to checkin the method too...
This commit is contained in:
rmevans9 2019-03-26 13:50:39 -04:00 committed by Nicolas Charpentier
parent a308f3c510
commit fbb427502e
1 changed files with 8 additions and 4 deletions

View File

@ -1,3 +1,7 @@
def safeExtGet(prop, fallback) {
rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
}
buildscript { buildscript {
repositories { repositories {
jcenter() jcenter()
@ -11,12 +15,12 @@ buildscript {
apply plugin: 'com.android.library' apply plugin: 'com.android.library'
android { android {
compileSdkVersion 25 compileSdkVersion safeExtGet('compileSdkVersion', 25)
buildToolsVersion "25.0.3" buildToolsVersion safeExtGet('buildToolsVersion', '25.0.3')
defaultConfig { defaultConfig {
minSdkVersion 16 minSdkVersion safeExtGet('minSdkVersion', 16)
targetSdkVersion 22 targetSdkVersion safeExtGet('targetSdkVersion', 22)
versionCode 1 versionCode 1
versionName "1.0" versionName "1.0"