|
@@ -18,6 +18,7 @@ allprojects {
|
18
|
18
|
repositories {
|
19
|
19
|
google()
|
20
|
20
|
jcenter()
|
|
21
|
+ maven { url "$rootDir/../node_modules/jsc-android/dist" }
|
21
|
22
|
// React Native (JS, Obj-C sources, Android binaries) is installed from
|
22
|
23
|
// npm.
|
23
|
24
|
maven { url "$rootDir/../node_modules/react-native/android" }
|
|
@@ -34,6 +35,12 @@ allprojects {
|
34
|
35
|
def version = new groovy.json.JsonSlurper().parseText(file.text).version
|
35
|
36
|
details.useVersion version
|
36
|
37
|
}
|
|
38
|
+ if (details.requested.group == 'org.webkit'
|
|
39
|
+ && details.requested.name == 'android-jsc') {
|
|
40
|
+ def file = new File("$rootDir/../node_modules/jsc-android/package.json")
|
|
41
|
+ def version = new groovy.json.JsonSlurper().parseText(file.text).version
|
|
42
|
+ details.useVersion "r${version.tokenize('.')[0]}"
|
|
43
|
+ }
|
37
|
44
|
}
|
38
|
45
|
}
|
39
|
46
|
}
|
|
@@ -146,7 +153,7 @@ allprojects {
|
146
|
153
|
ext {
|
147
|
154
|
buildToolsVersion = "26.0.2"
|
148
|
155
|
compileSdkVersion = 26
|
149
|
|
- minSdkVersion = 16
|
|
156
|
+ minSdkVersion = 21
|
150
|
157
|
targetSdkVersion = 26
|
151
|
158
|
|
152
|
159
|
// The Maven artifact groupdId of the third-party react-native modules which
|