import org.apache.tools.ant.taskdefs.condition.Os

// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
    ext {
        buildToolsVersion = "35.0.0"
        minSdkVersion = 24
        compileSdkVersion = 35
        targetSdkVersion = 35
        ndkVersion = "27.1.12297006"
        kotlinVersion = "2.1.20"
        // This specifies which LiteRT version to use for our vision-plugin.
        litertVersion = "1.4.0"
    }
    repositories {
        google()
        mavenCentral()
    }
    dependencies {
        classpath("com.android.tools.build:gradle")
        classpath("com.facebook.react:react-native-gradle-plugin")
        classpath("org.jetbrains.kotlin:kotlin-gradle-plugin")
        classpath("com.google.gms:google-services:4.4.3")
        classpath("com.google.firebase:perf-plugin:2.0.1")
    }
}

apply plugin: "com.facebook.react.rootproject"

allprojects {
    repositories {
        // Detox Android setup
        maven {
          url("$rootDir/../node_modules/detox/Detox-android")
        }
    }
}
