Skip to content

Commit 0efb6b5

Browse files
committed
Fixed firebase not picking up app_id
(cherry picked from commit 9d85e5a)
1 parent a8e06fb commit 0efb6b5

File tree

3 files changed

+37
-5
lines changed

3 files changed

+37
-5
lines changed

android/app/build.gradle

+10-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,15 @@
1+
/*
2+
* Copyright (c) 2024. Patrick Schmidt.
3+
* All rights reserved.
4+
*/
5+
16
plugins {
27
id "com.android.application"
8+
// START: FlutterFire Configuration
9+
id 'com.google.gms.google-services'
10+
// END: FlutterFire Configuration
311
id "kotlin-android"
412
id "dev.flutter.flutter-gradle-plugin"
5-
id "com.google.gms.google-services"
613
id "com.google.firebase.crashlytics"
714
}
815

@@ -81,7 +88,6 @@ flutter {
8188
}
8289

8390
dependencies {
84-
implementation platform('com.google.firebase:firebase-bom:32.7.4')
85-
86-
implementation 'com.google.firebase:firebase-analytics'
91+
implementation platform('com.google.firebase:firebase-bom:33.0.0')
92+
implementation('com.google.firebase:firebase-analytics')
8793
}

android/settings.gradle

+8-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/*
2+
* Copyright (c) 2024. Patrick Schmidt.
3+
* All rights reserved.
4+
*/
5+
16
pluginManagement {
27
def flutterSdkPath = {
38
def properties = new Properties()
@@ -20,8 +25,10 @@ pluginManagement {
2025
plugins {
2126
id "dev.flutter.flutter-plugin-loader" version "1.0.0"
2227
id "com.android.application" version "7.3.0" apply false
28+
// START: FlutterFire Configuration
29+
id "com.google.gms.google-services" version "4.3.15" apply false
30+
// END: FlutterFire Configuration
2331
id "org.jetbrains.kotlin.android" version "1.9.23" apply false
24-
id "com.google.gms.google-services" version "4.4.0" apply false
2532
id "com.google.firebase.crashlytics" version "2.9.9" apply false
2633
}
2734

ios/Runner.xcodeproj/project.pbxproj

+19
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,7 @@
282282
58115B874116BA05AA1905C4 /* [CP] Embed Pods Frameworks */,
283283
2D43081B6CAA39778291564C /* [firebase_crashlytics] Crashlytics Upload Symbols */,
284284
209313F7BF26EBAD5C2B73FD /* [CP] Copy Pods Resources */,
285+
28DA73449C5633CAAEC6D470 /* FlutterFire: "flutterfire upload-crashlytics-symbols" */,
285286
);
286287
buildRules = (
287288
);
@@ -421,6 +422,24 @@
421422
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources.sh\"\n";
422423
showEnvVarsInLog = 0;
423424
};
425+
28DA73449C5633CAAEC6D470 /* FlutterFire: "flutterfire upload-crashlytics-symbols" */ = {
426+
isa = PBXShellScriptBuildPhase;
427+
buildActionMask = 2147483647;
428+
files = (
429+
);
430+
inputFileListPaths = (
431+
);
432+
inputPaths = (
433+
);
434+
name = "FlutterFire: \"flutterfire upload-crashlytics-symbols\"";
435+
outputFileListPaths = (
436+
);
437+
outputPaths = (
438+
);
439+
runOnlyForDeploymentPostprocessing = 0;
440+
shellPath = /bin/sh;
441+
shellScript = "\n#!/bin/bash\nPATH=${PATH}:$FLUTTER_ROOT/bin:$HOME/.pub-cache/bin\nflutterfire upload-crashlytics-symbols --upload-symbols-script-path=$PODS_ROOT/FirebaseCrashlytics/upload-symbols --platform=ios --apple-project-path=${SRCROOT} --env-platform-name=${PLATFORM_NAME} --env-configuration=${CONFIGURATION} --env-project-dir=${PROJECT_DIR} --env-built-products-dir=${BUILT_PRODUCTS_DIR} --env-dwarf-dsym-folder-path=${DWARF_DSYM_FOLDER_PATH} --env-dwarf-dsym-file-name=${DWARF_DSYM_FILE_NAME} --env-infoplist-path=${INFOPLIST_PATH} --default-config=default\n";
442+
};
424443
2D43081B6CAA39778291564C /* [firebase_crashlytics] Crashlytics Upload Symbols */ = {
425444
isa = PBXShellScriptBuildPhase;
426445
buildActionMask = 2147483647;

0 commit comments

Comments
 (0)