mirror of
https://github.com/nisrulz/flutter-examples.git
synced 2026-08-25 01:05:36 +00:00
- Add the missing flutterEmbedding v2 meta-data to 8 manifests that still used the removed v1 embedding - Drop stale package attributes from covid19_mobile_app debug/profile manifests that conflicted with its namespace - Override gallery_saver_plus's hardcoded compileSdk 31 in image_editor so its dependencies resolve (documented AAR metadata check now passes) - Document that the three Firebase apps need a developer-provided google-services.json before they can build
36 lines
1.1 KiB
Kotlin
36 lines
1.1 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 {
|
|
// gallery_saver_plus hardcodes compileSdk 31, which its dependencies no
|
|
// longer support. Register the override before forcing :app evaluation so
|
|
// it runs after each library script has set its own value.
|
|
project.afterEvaluate {
|
|
if (project.plugins.hasPlugin("com.android.library")) {
|
|
val appSdk = (project(":app").extensions.getByName("android")
|
|
as com.android.build.api.dsl.ApplicationExtension).compileSdk
|
|
(project.extensions.getByName("android")
|
|
as com.android.build.api.dsl.LibraryExtension).compileSdk = appSdk
|
|
}
|
|
}
|
|
project.evaluationDependsOn(":app")
|
|
}
|
|
|
|
tasks.register<Delete>("clean") {
|
|
delete(rootProject.layout.buildDirectory)
|
|
}
|