allprojects {
    repositories {
        google()
        mavenCentral()
        maven {
           // [required] background_fetch
           // compare https://github.com/transistorsoft/flutter_background_fetch/blob/master/help/INSTALL-ANDROID.md
           url "${project(':background_fetch').projectDir}/libs"
       }
    }
}

rootProject.buildDir = "../build"
subprojects {
    project.buildDir = "${rootProject.buildDir}/${project.name}"
}
subprojects {
    project.evaluationDependsOn(":app")
}

tasks.register("clean", Delete) {
    delete rootProject.buildDir
}

ext {
    compileSdkVersion   = 35                // or higher / as desired
    targetSdkVersion    = 35                // or higher / as desired
    appCompatVersion    = "1.7.0"           // or higher / as desired
    kotlin_version      = "2.1.0"
}


//  buildscript {
//     ext.kotlin_version = '1.8.10'
//     ext {
//        minSdkVersion       = 21                // or higher
//        compileSdkVersion   = 34                // or higher
//        targetSdkVersion    = 34                // or higher
//        appCompatVersion    = "1.4.2"           // or higher
//    }
//     repositories {
//         google()
//         jcenter()
//     }

//     dependencies {
//         classpath 'com.android.tools.build:gradle:7.4.2'
//         classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
//     }
// }


// allprojects {
//     repositories {
//         google()
//         jcenter()
//         maven {
//            // [required] background_fetch
//            url "${project(':background_fetch').projectDir}/libs"
//        }
//     }
// }

// rootProject.buildDir = '../build'
// subprojects {
//     project.buildDir = "${rootProject.buildDir}/${project.name}"
//     project.evaluationDependsOn(':app')
// }

// tasks.register("clean", Delete) {
//     delete rootProject.buildDir
// }
