Pin Flutter with FVM and share local environment loading across IDE, Python, and Dart entrypoints. Keep CI on the verified preinstalled SDK and skip local overrides. Extract common build presets, process execution, and file hashing. Propagate project roots through SDK selection and release commands, and migrate macOS release, signing, and DMG orchestration to Python. Reuse local check suites in CI, support Android source overrides, and update documentation and regression tests.
39 lines
1.2 KiB
Kotlin
39 lines
1.2 KiB
Kotlin
pluginManagement {
|
|
val flutterSdkPath =
|
|
run {
|
|
val properties = java.util.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 "9.2.1" apply false
|
|
id("org.jetbrains.kotlin.android") version "2.3.20" apply false
|
|
}
|
|
|
|
include(":app")
|
|
|
|
// Native source development is opt-in; default resolution uses Gitea Maven packages.
|
|
val nativeAndroidPath = providers.gradleProperty("cutdex.android.path")
|
|
.orElse(providers.environmentVariable("CUTDEX_ANDROID_PATH"))
|
|
.orNull
|
|
nativeAndroidPath?.takeIf { it.isNotBlank() }?.let { nativePath ->
|
|
includeBuild(nativePath) {
|
|
dependencySubstitution {
|
|
substitute(module("dev.cutdex:cutdex-android")).using(project(":cutdex-android"))
|
|
}
|
|
}
|
|
}
|