2022-08-10 12:43:18 +05:00
|
|
|
// Top-level build file where you can add configuration options common to all sub-projects/modules.
|
|
|
|
|
import org.apache.tools.ant.taskdefs.condition.Os
|
|
|
|
|
|
|
|
|
|
buildscript {
|
|
|
|
|
ext {
|
2025-11-27 11:32:50 +05:00
|
|
|
buildToolsVersion = "36.0.0"
|
2025-05-21 11:03:32 +05:00
|
|
|
minSdkVersion = 24
|
2025-11-27 11:32:50 +05:00
|
|
|
compileSdkVersion = 36
|
|
|
|
|
targetSdkVersion = 36
|
|
|
|
|
kotlinVersion = '2.1.20'
|
2022-08-10 12:43:18 +05:00
|
|
|
androidXAnnotation = "1.1.0"
|
|
|
|
|
androidXCoreVersion = "1.7.0"
|
|
|
|
|
androidXCore = "1.7.0"
|
|
|
|
|
androidXBrowser = "1.0.0"
|
2025-05-21 11:03:32 +05:00
|
|
|
ndkVersion = "27.1.12297006"
|
2026-08-10 14:09:22 +05:00
|
|
|
playBillingSdkVersion = "8.0.0"
|
2022-08-10 12:43:18 +05:00
|
|
|
}
|
2023-06-26 21:50:20 +05:00
|
|
|
|
2022-08-10 12:43:18 +05:00
|
|
|
repositories {
|
|
|
|
|
google()
|
|
|
|
|
mavenCentral()
|
|
|
|
|
}
|
|
|
|
|
|
2023-06-26 21:50:20 +05:00
|
|
|
dependencies {
|
|
|
|
|
classpath("com.android.tools.build:gradle")
|
|
|
|
|
classpath("com.facebook.react:react-native-gradle-plugin")
|
2024-08-01 15:52:27 +05:00
|
|
|
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin")
|
2022-08-10 12:43:18 +05:00
|
|
|
}
|
|
|
|
|
}
|
2023-06-05 20:40:20 +05:00
|
|
|
|
2024-08-01 15:52:27 +05:00
|
|
|
apply plugin: "com.facebook.react.rootproject"
|
2023-08-05 16:46:08 +05:00
|
|
|
|
|
|
|
|
allprojects {
|
|
|
|
|
repositories {
|
|
|
|
|
maven {
|
|
|
|
|
// All of Detox' artifacts are provided via the npm module
|
2025-11-27 11:32:50 +05:00
|
|
|
url "$rootDir/../node_modules/detox/Detox-android"
|
2023-08-05 16:46:08 +05:00
|
|
|
}
|
|
|
|
|
|
2026-03-31 09:42:24 +05:00
|
|
|
google()
|
|
|
|
|
mavenCentral()
|
2023-08-05 16:46:08 +05:00
|
|
|
maven { url 'https://www.jitpack.io' }
|
|
|
|
|
}
|
2024-05-17 09:56:38 +05:00
|
|
|
}
|
2026-08-24 13:39:23 +05:00
|
|
|
|
|
|
|
|
// Pin the ndkVersion for all subprojects
|
|
|
|
|
subprojects { subproject ->
|
|
|
|
|
["com.android.application", "com.android.library"].each { pluginId ->
|
|
|
|
|
subproject.plugins.withId(pluginId) {
|
|
|
|
|
subproject.android.ndkVersion = rootProject.ext.ndkVersion
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|