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.
2 parents 3817bfd + 0b1895f commit 2070fa3Copy full SHA for 2070fa3
android/build.gradle
@@ -1,17 +1,20 @@
1
apply plugin: 'com.android.library'
2
3
+def safeExtGet(prop, fallback) {
4
+ rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
5
+}
6
+
7
android {
- compileSdkVersion 23
- buildToolsVersion "23.0.1"
8
+ compileSdkVersion safeExtGet('compileSdkVersion', 28)
9
10
defaultConfig {
- minSdkVersion 16
- targetSdkVersion 22
11
+ minSdkVersion safeExtGet('minSdkVersion', 16)
12
+ targetSdkVersion safeExtGet('targetSdkVersion', 28)
13
versionCode 1
14
versionName "1.0"
15
}
16
17
18
dependencies {
- compile 'com.facebook.react:react-native:+'
19
+ implementation "com.facebook.react:react-native:${safeExtGet('reactNativeVersion', '+')}"
20
0 commit comments