2026-08-15 14:51:05 -07:00
|
|
|
import com.android.build.api.variant.LibraryAndroidComponentsExtension
|
|
|
|
|
|
2026-02-07 14:17:07 -08:00
|
|
|
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 {
|
|
|
|
|
project.evaluationDependsOn(":app")
|
|
|
|
|
}
|
|
|
|
|
|
2026-08-15 14:51:05 -07:00
|
|
|
// AGP 9 requires each library to compile against at least the compileSdk of
|
|
|
|
|
// its dependencies. Several Flutter plugins still pin compileSdk 33/34.
|
|
|
|
|
// finalizeDsl runs after the plugin's android {} block. Does not change minSdk.
|
|
|
|
|
subprojects {
|
|
|
|
|
pluginManager.withPlugin("com.android.library") {
|
|
|
|
|
extensions.configure<LibraryAndroidComponentsExtension>("androidComponents") {
|
|
|
|
|
finalizeDsl { it.compileSdk = 36 }
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2026-02-07 14:17:07 -08:00
|
|
|
tasks.register<Delete>("clean") {
|
|
|
|
|
delete(rootProject.layout.buildDirectory)
|
|
|
|
|
}
|