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) <noreply@anthropic.com>
This commit is contained in:
@@ -21,7 +21,7 @@ plugins {
|
|||||||
id("dev.flutter.flutter-plugin-loader") version "1.0.0"
|
id("dev.flutter.flutter-plugin-loader") version "1.0.0"
|
||||||
id("com.android.application") version "8.11.1" apply false
|
id("com.android.application") version "8.11.1" apply false
|
||||||
// START: FlutterFire Configuration
|
// 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
|
// END: FlutterFire Configuration
|
||||||
id("org.jetbrains.kotlin.android") version "2.2.20" apply false
|
id("org.jetbrains.kotlin.android") version "2.2.20" apply false
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ class DefaultFirebaseOptions {
|
|||||||
|
|
||||||
static const FirebaseOptions android = FirebaseOptions(
|
static const FirebaseOptions android = FirebaseOptions(
|
||||||
apiKey: 'AIzaSyDFWlLSWytqwI7LSdUbVrO7J5De9L2LV2U',
|
apiKey: 'AIzaSyDFWlLSWytqwI7LSdUbVrO7J5De9L2LV2U',
|
||||||
appId: '1:1068156046511:android:ba6e699216de1c50b8185a',
|
appId: '1:1068156046511:android:4f8fe9a3c7c14c57b8185a',
|
||||||
messagingSenderId: '1068156046511',
|
messagingSenderId: '1068156046511',
|
||||||
projectId: 'halobestie-clone-dev',
|
projectId: 'halobestie-clone-dev',
|
||||||
storageBucket: 'halobestie-clone-dev.firebasestorage.app',
|
storageBucket: 'halobestie-clone-dev.firebasestorage.app',
|
||||||
|
|||||||
Reference in New Issue
Block a user