mirror of
https://github.com/dz0ny/meshcore-sar.git
synced 2026-08-11 16:30:28 +00:00
- Bump version to 2026.0613.2+57 - Gradle wrapper 8.12 -> 8.14; Flutter migrator flags (builtInKotlin/newDsl) and relax kotlin.jvm.target.validation to warning for third-party plugins - Refresh iOS Xcode project, scheme, Info.plist, Podfile.lock and SwiftPM Package.resolved Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
43 lines
1.5 KiB
Kotlin
43 lines
1.5 KiB
Kotlin
allprojects {
|
|
repositories {
|
|
google()
|
|
mavenCentral()
|
|
}
|
|
}
|
|
|
|
val newBuildDir: Directory =
|
|
rootProject.layout.buildDirectory
|
|
.dir("../../build")
|
|
.get()
|
|
rootProject.layout.buildDirectory.value(newBuildDir)
|
|
|
|
subprojects {
|
|
val newSubprojectBuildDir: Directory = newBuildDir.dir(project.name)
|
|
project.layout.buildDirectory.value(newSubprojectBuildDir)
|
|
}
|
|
subprojects {
|
|
// flutter_avif_android 3.1.0 (latest) ships duplicate Java and Kotlin
|
|
// copies of FlutterAvifPlugin. Kotlin 2.2+ rejects the redeclaration. The
|
|
// plugin's Java source dir contains only this redundant copy, so empty it
|
|
// and let the identical Kotlin implementation compile. kotlinc reads the
|
|
// module's Java source roots for joint compilation, so clearing srcDirs
|
|
// (rather than an exclude filter, which AGP doesn't forward to kotlinc) is
|
|
// what actually removes the duplicate from its view. Registered before
|
|
// evaluationDependsOn so it also covers :app, which that call evaluates
|
|
// eagerly.
|
|
afterEvaluate {
|
|
if (project.name == "flutter_avif_android") {
|
|
extensions.findByName("android")?.let { ext ->
|
|
(ext as com.android.build.gradle.BaseExtension)
|
|
.sourceSets.getByName("main").java
|
|
.setSrcDirs(emptyList<String>())
|
|
}
|
|
}
|
|
}
|
|
project.evaluationDependsOn(":app")
|
|
}
|
|
|
|
tasks.register<Delete>("clean") {
|
|
delete(rootProject.layout.buildDirectory)
|
|
}
|