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()
|
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) {
|
2024-04-15 15:15:04 +00:00
|
|
|
classpath 'com.google.gms:google-services:4.4.1'
|
2022-08-08 21:02:08 +00:00
|
|
|
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 {
|
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-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-26 20:37:33 +00:00
|
|
|
compileSdkVersion rootProject.ext.compileSdkVersion
|
|
|
|
buildToolsVersion rootProject.ext.buildToolsVersion
|
2023-08-18 17:48:33 +00:00
|
|
|
defaultConfig {
|
2024-03-26 20:37:33 +00:00
|
|
|
minSdkVersion rootProject.ext.minSdkVersion
|
|
|
|
targetSdkVersion rootProject.ext.targetSdkVersion
|
2023-08-18 17:48:33 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2024-03-19 20:58:31 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
apply plugin: "com.facebook.react.rootproject"
|