-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathbuild.gradle
More file actions
113 lines (104 loc) · 3.9 KB
/
build.gradle
File metadata and controls
113 lines (104 loc) · 3.9 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext {
buildToolsVersion = "36.0.0"
minSdkVersion = 29
compileSdkVersion = 36
targetSdkVersion = 36
// needed by camera module
googlePlayServicesVersion = "17+"
androidXAnnotation = "1.2.0"
androidXBrowser = "1.3.0"
lifecycleVersion = "2.0.0"
kotlinVersion = "1.9.24"
nav_version = "2.8.3"
androidx_core_version = "1.6.0"
androidXBrowser = "1.2.0"
excludeAppGlideModule = true
androidx_lifecycle_version = "2.8.6"
constraint_layout_version = "2.0.4"
appcompat_version = "1.7.0"
excludeAppGlideModule = true
compose_version = "1.5.14"
compose_ui_version = '1.7.4'
camerax_version = "1.3.4"
ndkVersion = "27.3.13750724"
}
repositories {
google()
mavenCentral()
}
dependencies {
classpath "com.android.tools.build:gradle:8.8.2"
classpath "com.facebook.react:react-native-gradle-plugin"
classpath "com.google.gms:google-services:4.4.2"
classpath "de.undercouch:gradle-download-task:4.1.2"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
classpath 'org.jetbrains.kotlin:compose-compiler-gradle-plugin:2.0.21'
classpath "com.google.firebase:firebase-crashlytics-gradle:2.7.1"
classpath "androidx.navigation:navigation-safe-args-gradle-plugin:2.8.3"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
project.ext {
set('react-native', [
versions: [
// Override Firebase BOM version to avoid updating to react-native-firebase 20.2.0+,
// which adds many new node_modules increasing the size significantly.
// Affected dependencies include the entire react-native-firebase suite e.g.:
// @react-native-firebase/app, @react-native-firebase/analytics, @react-native-firebase/crashlytics, @react-native-firebase/messaging
// NOTE: If updating to react-native-firebase 20.2.0+ is done, this override should be removed.
firebase: [
bom: "33.1.1"
],
],
])
}
allprojects {
tasks.withType(JavaCompile) {
options.forkOptions.memoryMaximumSize = '512m'
}
tasks.withType(GroovyCompile) {
groovyOptions.forkOptions.memoryMaximumSize = '512m'
}
// Uncomment the following line if Windows fails due to long paths
// buildDir = c:/temp/${rootProject.name}/${project.name}
repositories {
all { ArtifactRepository repo ->
if (repo.url.toString().contains("jcenter.bintray.com")) {
remove repo
mavenCentral()
}
}
google()
maven { url 'https://jitpack.io' }
maven {
url "$rootDir/../node_modules/@notifee/react-native/android/libs"
}
// Build all modules with Android 16KB pages enabled
plugins.withId('com.android.application') {
android {
defaultConfig {
externalNativeBuild {
cmake {
arguments "-DANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES=ON"
}
}
}
}
}
plugins.withId('com.android.library') {
android {
defaultConfig {
externalNativeBuild {
cmake {
arguments "-DANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES=ON"
}
}
}
}
}
}
}
apply plugin: "com.facebook.react.rootproject"