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 = "37.0.0"
minSdkVersion = 24
compileSdkVersion = 37
targetSdkVersion = 36
ndkVersion = "27.1.12297006"
kotlinVersion = "2.2.0"
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.4'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
classpath 'com.google.firebase:firebase-crashlytics-gradle:3.0.7'
}
}
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
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"
}
}
}
apply plugin: "com.facebook.react.rootproject"