Skip to content
This repository was archived by the owner on Feb 19, 2021. It is now read-only.

Commit 44bf38e

Browse files
author
Andriy Slyusar
committed
React-native 0.56 compatibility
1 parent 0899020 commit 44bf38e

File tree

1 file changed

+9
-17
lines changed

1 file changed

+9
-17
lines changed

android/build.gradle

+9-17
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,27 @@
1-
2-
buildscript {
3-
repositories {
4-
jcenter()
5-
}
6-
7-
dependencies {
8-
classpath 'com.android.tools.build:gradle:1.3.1'
9-
}
1+
def safeExtGet(prop, fallback) {
2+
rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
103
}
114

125
apply plugin: 'com.android.library'
136

147
android {
15-
compileSdkVersion 23
16-
buildToolsVersion "23.0.1"
8+
compileSdkVersion safeExtGet('compileSdkVersion', 26)
9+
buildToolsVersion safeExtGet('buildToolsVersion', '26.0.3')
1710

1811
defaultConfig {
19-
minSdkVersion 16
20-
targetSdkVersion 22
12+
minSdkVersion safeExtGet('minSdkVersion', 16)
13+
targetSdkVersion safeExtGet('minSdkVersion', 26)
2114
versionCode 1
2215
versionName "1.0"
16+
ndk {
17+
abiFilters "armeabi-v7a", "x86"
18+
}
2319
}
2420
lintOptions {
2521
abortOnError false
2622
}
2723
}
2824

29-
repositories {
30-
mavenCentral()
31-
}
32-
3325
dependencies {
3426
compile 'com.facebook.react:react-native:+'
3527
}

0 commit comments

Comments
 (0)