From d3b548075a840b802172e39a249a71107495f34c Mon Sep 17 00:00:00 2001 From: Tommy Chow Date: Tue, 13 Aug 2024 00:03:53 -0700 Subject: [PATCH] Re-run `flutterfire configure` and fix plugin versions --- android/app/build.gradle | 5 +++++ android/settings.gradle | 6 +++--- firebase.json | 22 ++++++++++++++++++++++ 3 files changed, 30 insertions(+), 3 deletions(-) create mode 100644 firebase.json diff --git a/android/app/build.gradle b/android/app/build.gradle index a2ccf6e1..d2a897d0 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -1,5 +1,10 @@ plugins { id "com.android.application" + // START: FlutterFire Configuration + id 'com.google.gms.google-services' + id 'com.google.firebase.firebase-perf' + id 'com.google.firebase.crashlytics' + // END: FlutterFire Configuration id "kotlin-android" // The Flutter Gradle Plugin must be applied after the Android and Kotlin Gradle plugins. id "dev.flutter.flutter-gradle-plugin" diff --git a/android/settings.gradle b/android/settings.gradle index cd37e3bc..15a03bb1 100644 --- a/android/settings.gradle +++ b/android/settings.gradle @@ -20,9 +20,9 @@ plugins { id "dev.flutter.flutter-plugin-loader" version "1.0.0" id "com.android.application" version "7.3.0" apply false id "org.jetbrains.kotlin.android" version "1.7.10" apply false - id "com.google.gms.google-services" version "4.4.2" apply false - id 'com.google.firebase.firebase-perf' version '1.4.2' apply false - id "com.google.firebase.crashlytics" version "3.0.2" apply false + id "com.google.gms.google-services" version "4.3.15" apply false + id "com.google.firebase.firebase-perf" version "1.4.2" apply false + id "com.google.firebase.crashlytics" version "2.9.9" apply false } include ":app" diff --git a/firebase.json b/firebase.json new file mode 100644 index 00000000..cc241c7f --- /dev/null +++ b/firebase.json @@ -0,0 +1,22 @@ +{ + "flutter": { + "platforms": { + "android": { + "default": { + "projectId": "frosty-128de", + "appId": "1:403282332389:android:a7ff237168bad4c30be20c", + "fileOutput": "android/app/google-services.json" + } + }, + "dart": { + "lib/firebase_options.dart": { + "projectId": "frosty-128de", + "configurations": { + "android": "1:403282332389:android:a7ff237168bad4c30be20c", + "ios": "1:403282332389:ios:0fc3f8c3d4e80c8b0be20c" + } + } + } + } + } +}