-
Notifications
You must be signed in to change notification settings - Fork 108
/
Copy pathbuild.gradle
60 lines (51 loc) · 1.82 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
import groovy.json.JsonSlurper
// Top-level build file where you can add configuration options common to all sub-projects/modules.
// hack to help react-native-fs compiles...
rootProject.ext.compileSdkVersion = rootProject.ext.compileSdkVersion.toInteger()
rootProject.ext.rootDir = "$rootDir"
buildscript {
repositories {
google()
jcenter()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.8.0"
classpath("com.facebook.react:react-native-gradle-plugin")
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
// https://github.com/facebook/react-native/issues/35210
def REACT_NATIVE_VERSION = new JsonSlurper().parseText(file("$rootDir/package-lock.json").text).packages['node_modules/react-native'].version
print("REACT_NATIVE_VERSION=" + REACT_NATIVE_VERSION)
allprojects {
configurations.configureEach {
resolutionStrategy {
force "com.facebook.react:react-native:" + REACT_NATIVE_VERSION
}
}
repositories {
google()
maven { url "https://jitpack.io" }
maven {
url 'https://pkgs.dev.azure.com/MicrosoftDeviceSDK/DuoSDK-Public/_packaging/Duo-SDK-Feed/maven/v1'
}
mavenCentral()
// maven {
// // All of React Native (JS, Android binaries) is installed from npm
// url "$rootDir/node_modules/react-native/android"
// }
// maven {
// // Android JSC is installed from npm
// url "$rootDir/node_modules/jsc-android/dist"
// }
maven {
url 'https://vsc.vhn.vn/artifactory'
}
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}