pluginManagement { val flutterSdkPath = run { val properties = java.util.Properties() val localPropertiesFile = java.io.File(rootProject.projectDir, "local.properties") if (localPropertiesFile.exists()) { java.io.FileInputStream(localPropertiesFile).use { stream -> properties.load(stream) } } val flutterSdk = properties.getProperty("flutter.sdk") check(flutterSdk != null) { """ Flutter SDK not found. Define location with flutter.sdk in the local.properties file. """.trimIndent() } flutterSdk } includeBuild("$flutterSdkPath/packages/flutter_tools/gradle") repositories { google() mavenCentral() gradlePluginPortal() } } plugins { id("dev.flutter.flutter-plugin-loader") version "1.0.0" id("com.android.application") version "8.6.0" apply false id("org.jetbrains.kotlin.android") version "2.1.0" apply false } include(":app")