1
0
mirror of https://github.com/nisrulz/flutter-examples.git synced 2026-08-25 01:05:36 +00:00

fix: make every Android app build again

- 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
This commit is contained in:
Nishant Srivastava
2026-08-17 23:41:25 +02:00
parent 5c53498119
commit 47bc829f64
12 changed files with 73 additions and 44 deletions

View File

@@ -16,6 +16,17 @@ subprojects {
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")
}