2017-08-03 18:23:43 +00:00
|
|
|
buildscript {
|
2020-11-09 20:14:35 +00:00
|
|
|
def taskRequests = getGradle().getStartParameter().getTaskRequests().toString().toLowerCase()
|
|
|
|
def isPlay = !taskRequests.contains("foss")
|
|
|
|
|
2019-05-22 20:15:35 +00:00
|
|
|
ext {
|
2024-03-19 20:58:31 +00:00
|
|
|
buildToolsVersion = "34.0.0"
|
2020-11-03 14:18:15 +00:00
|
|
|
minSdkVersion = 23
|
2024-03-19 20:58:31 +00:00
|
|
|
compileSdkVersion = 34
|
|
|
|
targetSdkVersion = 34
|
|
|
|
ndkVersion = "25.1.8937393"
|
|
|
|
kotlinVersion = "1.8.0"
|
|
|
|
kotlin_version = kotlinVersion
|
2020-11-30 17:00:06 +00:00
|
|
|
glideVersion = "4.11.0"
|
2019-09-17 19:24:47 +00:00
|
|
|
supportLibVersion = "28.0.0"
|
2020-11-09 20:14:35 +00:00
|
|
|
libre_build = !(isPlay.toBoolean())
|
2019-05-22 20:15:35 +00:00
|
|
|
}
|
2020-11-09 20:14:35 +00:00
|
|
|
|
2017-08-03 18:23:43 +00:00
|
|
|
repositories {
|
2018-10-23 21:39:48 +00:00
|
|
|
google()
|
2024-03-19 20:58:31 +00:00
|
|
|
// mavenLocal()
|
|
|
|
// maven {
|
|
|
|
// url 'https://maven.fabric.io/public'
|
|
|
|
// }
|
2022-08-08 21:02:08 +00:00
|
|
|
mavenCentral()
|
2017-08-03 18:23:43 +00:00
|
|
|
}
|
2020-08-24 12:24:10 +00:00
|
|
|
|
2017-08-03 18:23:43 +00:00
|
|
|
dependencies {
|
2020-08-24 12:24:10 +00:00
|
|
|
if (isPlay) {
|
2022-08-08 21:02:08 +00:00
|
|
|
classpath 'com.google.gms:google-services:4.3.8'
|
|
|
|
classpath 'com.google.firebase:firebase-crashlytics-gradle:2.9.0'
|
2024-03-19 20:58:31 +00:00
|
|
|
classpath "com.bugsnag:bugsnag-android-gradle-plugin:8.+"
|
2020-08-24 12:24:10 +00:00
|
|
|
}
|
2024-03-19 20:58:31 +00:00
|
|
|
classpath("com.android.tools.build:gradle")
|
2022-08-08 21:02:08 +00:00
|
|
|
classpath("com.facebook.react:react-native-gradle-plugin")
|
2024-03-19 20:58:31 +00:00
|
|
|
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin")
|
2017-08-03 18:23:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
allprojects {
|
|
|
|
repositories {
|
2024-03-19 20:58:31 +00:00
|
|
|
// 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")
|
|
|
|
// }
|
2023-08-18 17:48:33 +00:00
|
|
|
|
2021-12-02 13:19:15 +00:00
|
|
|
maven {
|
|
|
|
url "$rootDir/../node_modules/detox/Detox-android"
|
|
|
|
}
|
2023-08-18 17:48:33 +00:00
|
|
|
|
2023-07-04 00:03:39 +00:00
|
|
|
maven {
|
|
|
|
// expo-camera bundles a custom com.google.android:cameraview
|
|
|
|
url "$rootDir/../node_modules/expo-camera/android/maven"
|
|
|
|
}
|
2023-08-18 17:48:33 +00:00
|
|
|
|
2024-03-19 20:58:31 +00:00
|
|
|
// mavenCentral {
|
|
|
|
// content {
|
|
|
|
// excludeGroup "com.facebook.react"
|
|
|
|
// }
|
|
|
|
// }
|
2023-08-18 17:48:33 +00:00
|
|
|
|
2024-03-19 20:58:31 +00:00
|
|
|
// google()
|
|
|
|
// maven { url 'https://maven.google.com' }
|
|
|
|
// maven { url 'https://www.jitpack.io' }
|
2023-08-18 17:48:33 +00:00
|
|
|
|
2024-03-19 20:58:31 +00:00
|
|
|
// // 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"
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
// }
|
2023-03-07 12:28:51 +00:00
|
|
|
}
|
|
|
|
}
|
2023-08-18 17:48:33 +00:00
|
|
|
|
|
|
|
subprojects { subproject ->
|
|
|
|
afterEvaluate {
|
|
|
|
if (!project.name.equalsIgnoreCase("app") && project.hasProperty("android")) {
|
|
|
|
android {
|
2024-03-19 20:58:31 +00:00
|
|
|
compileSdkVersion 33
|
|
|
|
buildToolsVersion "33.0.0"
|
2023-08-18 17:48:33 +00:00
|
|
|
defaultConfig {
|
|
|
|
minSdkVersion 23
|
2024-03-19 20:58:31 +00:00
|
|
|
targetSdkVersion 34
|
2023-08-18 17:48:33 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2024-03-19 20:58:31 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
apply plugin: "com.facebook.react.rootproject"
|