-
Notifications
You must be signed in to change notification settings - Fork 374
Expand file tree
/
Copy pathbuild.gradle
More file actions
62 lines (56 loc) · 1.96 KB
/
build.gradle
File metadata and controls
62 lines (56 loc) · 1.96 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
54
55
56
57
58
59
60
61
62
import org.apache.tools.ant.taskdefs.condition.Os
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext {
buildToolsVersion = "35.0.0"
minSdkVersion = 24
compileSdkVersion = 35
targetSdkVersion = 35
ndkVersion = "27.1.12297006"
kotlinVersion = "2.1.20"
androidXCore = "1.0.2"
}
repositories {
google()
mavenCentral()
}
dependencies {
classpath("com.android.tools.build:gradle")
classpath("com.facebook.react:react-native-gradle-plugin")
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin")
classpath 'com.google.gms:google-services:4.4.2'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
classpath 'com.google.firebase:firebase-crashlytics-gradle:2.8.1'
}
}
ext.REACT_NATIVE_NODE_MODULES_DIR = file("$rootDir/../node_modules/react-native").absolutePath
ext.REACT_NATIVE_WORKLETS_NODE_MODULES_DIR =
file("$rootDir/../node_modules/react-native-worklets").absolutePath
subprojects { subproject ->
if (subproject.path != ":app") {
evaluationDependsOn(":app")
project(":app").tasks.matching { task ->
task.name.startsWith("configureCMake")
}.configureEach {
dependsOn(subproject.tasks.matching { it.name == "preBuild" })
}
}
}
allprojects {
repositories {
maven {
url "$rootDir/../../../node_modules/detox/Detox-android"
}
// this is how Notifee finds it's Android library:
maven {
url "$rootDir/../node_modules/@notifee/react-native/android/libs"
}
}
}
project(':app') {
tasks.matching { it.name == "preBuild" || it.name.startsWith("configureCMake") }.configureEach {
dependsOn("generateCodegenArtifactsFromSchema")
}
}
apply plugin: "com.facebook.react.rootproject"