Rocket.Chat.ReactNative/android/build.gradle

49 lines
1.5 KiB
Groovy

// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
def taskRequests = getGradle().getStartParameter().getTaskRequests().toString().toLowerCase()
def isPlay = !taskRequests.contains("foss")
ext {
buildToolsVersion = "33.0.0"
minSdkVersion = 23
compileSdkVersion = 33
targetSdkVersion = 33
// We use NDK 23 which has both M1 support and is the side-by-side NDK version from AGP.
ndkVersion = "23.1.7779620"
glideVersion = "4.11.0"
kotlin_version = "1.8.22"
kotlinVersion = '1.8.22'
supportLibVersion = "28.0.0"
libre_build = !(isPlay.toBoolean())
}
repositories {
mavenLocal()
google()
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:7.+'
}
classpath("com.android.tools.build:gradle:7.4.1")
classpath("com.facebook.react:react-native-gradle-plugin")
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
allprojects {
repositories {
maven {
url "$rootDir/../node_modules/detox/Detox-android"
}
}
}