Files
cutdex/android/settings.gradle.kts
T
lingjhf d6d665312e
Gitea CI / Gitea CI passed (pull_request) Canceled after 0s
Gitea CI / Windows x64 and Android (pull_request) Canceled after 4m33s
ci(gitea): use pinned Windows release instead of inherited source overrides
2026-10-06 04:59:51 +08:00

36 lines
1.1 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.
providers.gradleProperty("cutdex.android.path").orNull?.let { nativePath ->
includeBuild(nativePath) {
dependencySubstitution {
substitute(module("dev.cutdex:cutdex-android")).using(project(":cutdex-android"))
}
}
}