Files
kryz-go-flutter/android/settings.gradle.kts
T
robot 350d554b45
CI / Lint (pull_request) Successful in 19m23s
CI / Test (pull_request) Successful in 19m19s
CI / Build Android (pull_request) Canceled after 25m23s
CI / Build iOS (pull_request) Canceled after 0s
fix(build): add explicit Kotlin imports for Properties/FileInputStream and fix signing config casts
- Add import statements for java.util.Properties and java.io.FileInputStream
  (newer Kotlin DSL requires explicit imports)
- Replace deprecated jvmTarget = JavaVersion.VERSION_17.toString() with "17"
- Replace unsafe 'as String' casts with Properties.getProperty() in signing config
- Fix same import issue in settings.gradle.kts
2026-08-01 20:39:01 +00:00

29 lines
791 B
Kotlin
Executable File

import java.util.Properties
pluginManagement {
val flutterSdkPath =
run {
val properties = Properties()
file("local.properties").inputStream().use { properties.load(it) }
val flutterSdkPath = properties.getProperty("flutter.sdk")
require(flutterSdkPath != null) { "flutter.sdk not set in local.properties" }
flutterSdkPath
}
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.11.1" apply false
id("org.jetbrains.kotlin.android") version "2.2.20" apply false
}
include(":app")