2017-08-03 18:23:43 +00:00
|
|
|
// Top-level build file where you can add configuration options common to all sub-projects/modules.
|
|
|
|
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 {
|
2023-05-18 21:09:33 +00:00
|
|
|
// TODO: target 33
|
2023-07-12 18:28:25 +00:00
|
|
|
buildToolsVersion = "33.0.0"
|
2020-11-03 14:18:15 +00:00
|
|
|
minSdkVersion = 23
|
2023-07-12 18:28:25 +00:00
|
|
|
compileSdkVersion = 33
|
|
|
|
targetSdkVersion = 33
|
2022-08-08 21:02:08 +00:00
|
|
|
if (System.properties['os.arch'] == "aarch64") {
|
|
|
|
// For M1 Users we need to use the NDK 24 which added support for aarch64
|
|
|
|
ndkVersion = "24.0.8215888"
|
|
|
|
} else {
|
|
|
|
// Otherwise we default to the side-by-side NDK version from AGP.
|
|
|
|
ndkVersion = "21.4.7075529"
|
|
|
|
}
|
2020-11-30 17:00:06 +00:00
|
|
|
glideVersion = "4.11.0"
|
2022-06-01 19:46:37 +00:00
|
|
|
kotlin_version = "1.6.10"
|
2022-08-08 21:02:08 +00:00
|
|
|
kotlinVersion = '1.6.10'
|
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-07-10 13:40:32 +00:00
|
|
|
mavenLocal()
|
2018-10-23 21:39:48 +00:00
|
|
|
google()
|
2019-05-28 13:03:08 +00:00
|
|
|
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'
|
|
|
|
classpath 'com.bugsnag:bugsnag-android-gradle-plugin:7.+'
|
2020-08-24 12:24:10 +00:00
|
|
|
}
|
2023-05-18 21:09:33 +00:00
|
|
|
classpath("com.android.tools.build:gradle:7.3.1")
|
2022-08-08 21:02:08 +00:00
|
|
|
classpath("com.facebook.react:react-native-gradle-plugin")
|
2019-09-16 20:26:32 +00:00
|
|
|
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
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-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
|
|
|
}
|
|
|
|
}
|