forked from software-mansion/react-native-screens
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
53 lines (50 loc) · 1.88 KB
/
build.gradle
File metadata and controls
53 lines (50 loc) · 1.88 KB
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
buildscript {
ext {
buildToolsVersion = "36.0.0"
minSdkVersion = 25
compileSdkVersion = 36
targetSdkVersion = 36
ndkVersion = "27.1.12297006"
kotlinVersion = "2.1.20"
}
repositories {
google()
mavenCentral()
}
// RNRepo plugin classpath for CI builds (plugin applied in app/build.gradle).
// To disable RNRepo support, set DISABLE_RNREPO environment variable to ANY value.
def rnrepoClasspath = {
def rnrepoDir = new File(
providers.exec {
workingDir(rootDir)
commandLine("node", "--print", "require.resolve('@rnrepo/build-tools/package.json')")
}.standardOutput.asText.get().trim()
).getParentFile().absolutePath
return fileTree(dir: "${rnrepoDir}/gradle-plugin/build/libs", include: ["prebuilds-plugin.jar"])
}
dependencies {
classpath("com.android.tools.build:gradle")
classpath("com.facebook.react:react-native-gradle-plugin")
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin")
classpath rnrepoClasspath()
}
}
// Detox repository for `com.wix:detox` dependency specified
// in app build.gradle. This most likely does not have to be
// specified for each project but AFAIK it does not create any conflicts.
// See: https://github.com/wix/Detox/issues/3973#issuecomment-1459895555
// TODO: Find out which project should have it added.
allprojects {
repositories {
maven {
url("$rootDir/../node_modules/detox/Detox-android")
}
}
}
apply plugin: "com.facebook.react.rootproject"
// Custom configuration. This is done in order to simplify process
// of upgrading the wrapper, eliminating necessity to manually specify CLI options
// to ensure that we use distribution of type `ALL`.
tasks.named("wrapper") {
it.distributionType = Wrapper.DistributionType.ALL
}