

pluginManagement {
    def flutterSdk = {
        def p = new Properties()
        file("local.properties").withInputStream { p.load(it) }
        return p.getProperty("flutter.sdk")
    }()
    includeBuild("$flutterSdk/packages/flutter_tools/gradle")

    repositories {
        google()
        mavenCentral()
        gradlePluginPortal()
        maven { url "https://jitpack.io" }
    }
}

plugins {
    id("dev.flutter.flutter-plugin-loader") version "1.0.0"
    id("com.android.application") version "8.10.0-alpha05" apply false // ✅ Match the version from Step 1
    id("org.jetbrains.kotlin.android") version "2.1.20" apply false // ✅ Matches your kotlin_version
}
dependencyResolutionManagement {

    repositories {
        google()
        mavenCentral()

        // ➜ add this line
        maven { url "https://storage.googleapis.com/download.flutter.io" }

        // keep only if your own code really needs it
        maven { url "https://jitpack.io" }
    }
}

include(":app")