We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 12c6355 commit f7209deCopy full SHA for f7209de
android/build.gradle
@@ -11,13 +11,17 @@ buildscript {
11
12
apply plugin: 'com.android.library'
13
14
+def safeExtGet(prop, fallback) {
15
+ rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
16
+}
17
+
18
android {
- compileSdkVersion 23
- buildToolsVersion "23.0.1"
19
+ compileSdkVersion safeExtGet('compileSdkVersion', 23)
20
+ buildToolsVersion safeExtGet("buildToolsVersion", "23.0.1")
21
22
defaultConfig {
- minSdkVersion 16
- targetSdkVersion 22
23
+ minSdkVersion safeExtGet('minSdkVersion', 16)
24
+ targetSdkVersion safeExtGet('targetSdkVersion', 22)
25
versionCode 1
26
versionName "1.0"
27
}
@@ -33,4 +37,4 @@ repositories {
33
37
dependencies {
34
38
compile 'com.facebook.react:react-native:+'
35
39
36
-
40
0 commit comments