From 47bc829f648c8225f14e603aad4db06716cfbe7c Mon Sep 17 00:00:00 2001 From: Nishant Srivastava Date: Mon, 17 Aug 2026 23:41:25 +0200 Subject: [PATCH] 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 --- .../android/app/src/debug/AndroidManifest.xml | 3 +-- .../android/app/src/profile/AndroidManifest.xml | 3 +-- documentation/MAINTENANCE.md | 12 ++++++++++++ .../android/app/src/main/AndroidManifest.xml | 11 ++++++----- .../android/app/src/main/AndroidManifest.xml | 11 ++++++----- .../android/app/src/main/AndroidManifest.xml | 11 ++++++----- .../android/app/src/main/AndroidManifest.xml | 11 ++++++----- .../android/app/src/main/AndroidManifest.xml | 11 ++++++----- image_editor/android/build.gradle.kts | 11 +++++++++++ .../android/app/src/main/AndroidManifest.xml | 11 ++++++----- .../android/app/src/main/AndroidManifest.xml | 11 ++++++----- .../android/app/src/main/AndroidManifest.xml | 11 ++++++----- 12 files changed, 73 insertions(+), 44 deletions(-) diff --git a/covid19_mobile_app/android/app/src/debug/AndroidManifest.xml b/covid19_mobile_app/android/app/src/debug/AndroidManifest.xml index 70df909..f880684 100644 --- a/covid19_mobile_app/android/app/src/debug/AndroidManifest.xml +++ b/covid19_mobile_app/android/app/src/debug/AndroidManifest.xml @@ -1,5 +1,4 @@ - + diff --git a/covid19_mobile_app/android/app/src/profile/AndroidManifest.xml b/covid19_mobile_app/android/app/src/profile/AndroidManifest.xml index 70df909..f880684 100644 --- a/covid19_mobile_app/android/app/src/profile/AndroidManifest.xml +++ b/covid19_mobile_app/android/app/src/profile/AndroidManifest.xml @@ -1,5 +1,4 @@ - + diff --git a/documentation/MAINTENANCE.md b/documentation/MAINTENANCE.md index f056cb1..825f7ab 100644 --- a/documentation/MAINTENANCE.md +++ b/documentation/MAINTENANCE.md @@ -30,6 +30,18 @@ make gradle-update FORCE=1 # latest version, force update make gradle-update VERSION=9.7.0 FORCE=1 # specific version, force update ``` +## Firebase apps + +These apps connect to Firebase and need a developer-provided `google-services.json` +in `/android/app/` before they can be built: + +- `firebase_google_authentication` +- `google_signin` +- `using_firebase_db` + +The file is never committed because it contains your Firebase project config. +Create a Firebase project for each app and download the file from the Firebase console. + ## Requirements - `make` (preinstalled on macOS and most Linux systems) diff --git a/dropdown_button/android/app/src/main/AndroidManifest.xml b/dropdown_button/android/app/src/main/AndroidManifest.xml index bccbf8c..7661cd5 100644 --- a/dropdown_button/android/app/src/main/AndroidManifest.xml +++ b/dropdown_button/android/app/src/main/AndroidManifest.xml @@ -7,11 +7,6 @@ --> - + + + diff --git a/enabling_splash_screen/android/app/src/main/AndroidManifest.xml b/enabling_splash_screen/android/app/src/main/AndroidManifest.xml index 8016c04..2ef7746 100644 --- a/enabling_splash_screen/android/app/src/main/AndroidManifest.xml +++ b/enabling_splash_screen/android/app/src/main/AndroidManifest.xml @@ -7,11 +7,6 @@ --> - + + + diff --git a/expense_planner/android/app/src/main/AndroidManifest.xml b/expense_planner/android/app/src/main/AndroidManifest.xml index 6683bd8..a99df03 100644 --- a/expense_planner/android/app/src/main/AndroidManifest.xml +++ b/expense_planner/android/app/src/main/AndroidManifest.xml @@ -1,11 +1,6 @@ - + + + diff --git a/google_signin/android/app/src/main/AndroidManifest.xml b/google_signin/android/app/src/main/AndroidManifest.xml index a9151d5..f5632dc 100644 --- a/google_signin/android/app/src/main/AndroidManifest.xml +++ b/google_signin/android/app/src/main/AndroidManifest.xml @@ -7,11 +7,6 @@ --> - + + + diff --git a/handling_routes/android/app/src/main/AndroidManifest.xml b/handling_routes/android/app/src/main/AndroidManifest.xml index 3bbcb5d..168e76a 100644 --- a/handling_routes/android/app/src/main/AndroidManifest.xml +++ b/handling_routes/android/app/src/main/AndroidManifest.xml @@ -7,11 +7,6 @@ --> - + + + diff --git a/image_editor/android/build.gradle.kts b/image_editor/android/build.gradle.kts index dbee657..93fdcd6 100644 --- a/image_editor/android/build.gradle.kts +++ b/image_editor/android/build.gradle.kts @@ -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") } diff --git a/image_from_network/android/app/src/main/AndroidManifest.xml b/image_from_network/android/app/src/main/AndroidManifest.xml index 78ed7e9..d59f48c 100644 --- a/image_from_network/android/app/src/main/AndroidManifest.xml +++ b/image_from_network/android/app/src/main/AndroidManifest.xml @@ -7,11 +7,6 @@ --> - + + + diff --git a/infinite_list/android/app/src/main/AndroidManifest.xml b/infinite_list/android/app/src/main/AndroidManifest.xml index 4b7e588..8769e35 100644 --- a/infinite_list/android/app/src/main/AndroidManifest.xml +++ b/infinite_list/android/app/src/main/AndroidManifest.xml @@ -7,11 +7,6 @@ --> - + + + diff --git a/using_firebase_db/android/app/src/main/AndroidManifest.xml b/using_firebase_db/android/app/src/main/AndroidManifest.xml index 73de986..f148971 100644 --- a/using_firebase_db/android/app/src/main/AndroidManifest.xml +++ b/using_firebase_db/android/app/src/main/AndroidManifest.xml @@ -1,11 +1,6 @@ - + + +