buildscript { def taskRequests = getGradle().getStartParameter().getTaskRequests().toString().toLowerCase() def isPlay = !taskRequests.contains("foss") ext { buildToolsVersion = "34.0.0" minSdkVersion = 23 compileSdkVersion = 34 targetSdkVersion = 34 ndkVersion = "25.1.8937393" kotlinVersion = "1.8.0" kotlin_version = kotlinVersion glideVersion = "4.11.0" supportLibVersion = "28.0.0" libre_build = !(isPlay.toBoolean()) } repositories { google() // mavenLocal() // maven { // url 'https://maven.fabric.io/public' // } mavenCentral() } dependencies { if (isPlay) { classpath 'com.google.gms:google-services:4.3.8' classpath 'com.google.firebase:firebase-crashlytics-gradle:2.9.0' classpath "com.bugsnag:bugsnag-android-gradle-plugin:8.+" } classpath("com.android.tools.build:gradle") classpath("com.facebook.react:react-native-gradle-plugin") classpath("org.jetbrains.kotlin:kotlin-gradle-plugin") } } allprojects { repositories { // mavenLocal() // maven { // // All of React Native (JS, Obj-C sources, 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 "$rootDir/../node_modules/detox/Detox-android" } maven { // expo-camera bundles a custom com.google.android:cameraview url "$rootDir/../node_modules/expo-camera/android/maven" } // mavenCentral { // content { // excludeGroup "com.facebook.react" // } // } // google() // maven { url 'https://maven.google.com' } // maven { url 'https://www.jitpack.io' } // // https://stackoverflow.com/a/74333788/5447468 // // TODO: remove once we update RN // exclusiveContent { // // We get React Native's Android binaries exclusively through npm, // // from a local Maven repo inside node_modules/react-native/. // // (The use of exclusiveContent prevents looking elsewhere like Maven Central // // and potentially getting a wrong version.) // filter { // includeGroup "com.facebook.react" // } // forRepository { // maven { // // NOTE: if you are in a monorepo, you may have "$rootDir/../../../node_modules/react-native/android" // url "$rootDir/../node_modules/react-native/android" // } // } // } } } subprojects { subproject -> afterEvaluate { if (!project.name.equalsIgnoreCase("app") && project.hasProperty("android")) { android { compileSdkVersion rootProject.ext.compileSdkVersion buildToolsVersion rootProject.ext.buildToolsVersion defaultConfig { minSdkVersion rootProject.ext.minSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion } } } } } apply plugin: "com.facebook.react.rootproject"