buildscript {
    ext {
        buildToolsVersion = "35.0.0"
        minSdkVersion = 24
        compileSdkVersion = 35
        targetSdkVersion = 34
        ndkVersion = "26.1.10909125"
        kotlinVersion = "1.9.24"
        versionName = project.hasProperty('VERSION_NAME') ? project.VERSION_NAME : new File("${projectDir.parent}/package.json").text.readLines().find { it.contains('"version"') }.split(":")[1].trim().replace('"', '').replace(',', '')
    }
    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")
    }
}

allprojects {
    repositories {
       maven {
           // react-native-background-fetch
           url("${project(':react-native-background-fetch').projectDir}/libs")
       }
    }
}

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