Skip to content

Commit

Permalink
Fixed firebase not picking up app_id
Browse files Browse the repository at this point in the history
(cherry picked from commit 9d85e5a)
  • Loading branch information
Clon1998 committed May 26, 2024
1 parent a8e06fb commit 0efb6b5
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 5 deletions.
14 changes: 10 additions & 4 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
/*
* Copyright (c) 2024. Patrick Schmidt.
* All rights reserved.
*/

plugins {
id "com.android.application"
// START: FlutterFire Configuration
id 'com.google.gms.google-services'
// END: FlutterFire Configuration
id "kotlin-android"
id "dev.flutter.flutter-gradle-plugin"
id "com.google.gms.google-services"
id "com.google.firebase.crashlytics"
}

Expand Down Expand Up @@ -81,7 +88,6 @@ flutter {
}

dependencies {
implementation platform('com.google.firebase:firebase-bom:32.7.4')

implementation 'com.google.firebase:firebase-analytics'
implementation platform('com.google.firebase:firebase-bom:33.0.0')
implementation('com.google.firebase:firebase-analytics')
}
9 changes: 8 additions & 1 deletion android/settings.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (c) 2024. Patrick Schmidt.
* All rights reserved.
*/

pluginManagement {
def flutterSdkPath = {
def properties = new Properties()
Expand All @@ -20,8 +25,10 @@ pluginManagement {
plugins {
id "dev.flutter.flutter-plugin-loader" version "1.0.0"
id "com.android.application" version "7.3.0" apply false
// START: FlutterFire Configuration
id "com.google.gms.google-services" version "4.3.15" apply false
// END: FlutterFire Configuration
id "org.jetbrains.kotlin.android" version "1.9.23" apply false
id "com.google.gms.google-services" version "4.4.0" apply false
id "com.google.firebase.crashlytics" version "2.9.9" apply false
}

Expand Down
19 changes: 19 additions & 0 deletions ios/Runner.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,7 @@
58115B874116BA05AA1905C4 /* [CP] Embed Pods Frameworks */,
2D43081B6CAA39778291564C /* [firebase_crashlytics] Crashlytics Upload Symbols */,
209313F7BF26EBAD5C2B73FD /* [CP] Copy Pods Resources */,
28DA73449C5633CAAEC6D470 /* FlutterFire: "flutterfire upload-crashlytics-symbols" */,
);
buildRules = (
);
Expand Down Expand Up @@ -421,6 +422,24 @@
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources.sh\"\n";
showEnvVarsInLog = 0;
};
28DA73449C5633CAAEC6D470 /* FlutterFire: "flutterfire upload-crashlytics-symbols" */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputFileListPaths = (
);
inputPaths = (
);
name = "FlutterFire: \"flutterfire upload-crashlytics-symbols\"";
outputFileListPaths = (
);
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
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";
};
2D43081B6CAA39778291564C /* [firebase_crashlytics] Crashlytics Upload Symbols */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
Expand Down

0 comments on commit 0efb6b5

Please sign in to comment.