From f59fa0e27f9cddbdd11fbfbccc7b1bfc68be8606 Mon Sep 17 00:00:00 2001 From: Ramadhan Sjamsani Date: Tue, 2 Jun 2026 21:57:42 +0800 Subject: [PATCH] fix(client/android): enable Firebase Analytics upload on AGP 8 google-services plugin 4.3.10 is incompatible with AGP 8.x: it generated google_app_id into a values.xml but never merged it into the APK, so native Firebase reported "Missing google_app_id. Firebase Analytics disabled" and uploaded nothing (FCM still worked via the Dart-side init, masking it). - bump com.google.gms.google-services 4.3.10 -> 4.4.2 - correct firebase_options.dart android appId from the stale com.halobestie.client.client_app registration to the com.mybestie app id (1:1068156046511:android:4f8fe9a3c7c14c57b8185a) so the Dart [DEFAULT] app matches google-services.json Verified: google_app_id now merges into R.txt and logcat FA shows "App measurement enabled ... Uploading data". Co-Authored-By: Claude Opus 4.8 (1M context) --- client_app/android/settings.gradle.kts | 2 +- client_app/lib/firebase_options.dart | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/client_app/android/settings.gradle.kts b/client_app/android/settings.gradle.kts index 511c251..9a76243 100644 --- a/client_app/android/settings.gradle.kts +++ b/client_app/android/settings.gradle.kts @@ -21,7 +21,7 @@ plugins { id("dev.flutter.flutter-plugin-loader") version "1.0.0" id("com.android.application") version "8.11.1" apply false // START: FlutterFire Configuration - id("com.google.gms.google-services") version("4.3.10") apply false + id("com.google.gms.google-services") version("4.4.2") apply false // END: FlutterFire Configuration id("org.jetbrains.kotlin.android") version "2.2.20" apply false } diff --git a/client_app/lib/firebase_options.dart b/client_app/lib/firebase_options.dart index 57ea270..79c3c92 100644 --- a/client_app/lib/firebase_options.dart +++ b/client_app/lib/firebase_options.dart @@ -51,7 +51,7 @@ class DefaultFirebaseOptions { static const FirebaseOptions android = FirebaseOptions( apiKey: 'AIzaSyDFWlLSWytqwI7LSdUbVrO7J5De9L2LV2U', - appId: '1:1068156046511:android:ba6e699216de1c50b8185a', + appId: '1:1068156046511:android:4f8fe9a3c7c14c57b8185a', messagingSenderId: '1068156046511', projectId: 'halobestie-clone-dev', storageBucket: 'halobestie-clone-dev.firebasestorage.app',