Skip to content

Commit

Permalink
build: add firebase_app_id_file.json for macos
Browse files Browse the repository at this point in the history
  • Loading branch information
riscait committed Aug 24, 2023
1 parent c9b8ece commit 2729ca4
Show file tree
Hide file tree
Showing 6 changed files with 66 additions and 5 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ unlinked_spec.ds

# macOS
**/macos/Flutter/GeneratedPluginRegistrant.swift
**/macos/GoogleService-Info.plist
**/macos/firebase_app_id_file.json

# Web related
Expand Down
47 changes: 43 additions & 4 deletions packages/flutter_app/macos/Runner.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,6 @@
51FA83072E71518FB6ED9BF4 /* Pods-Runner.release.xcconfig */,
6EBA3C577F94F165FE099A5F /* Pods-Runner.profile.xcconfig */,
);
name = Pods;
path = Pods;
sourceTree = "<group>";
};
Expand All @@ -181,12 +180,14 @@
EC705417BB7BC3C831C41038 /* [CP] Check Pods Manifest.lock */,
33CC10E92044A3C60003C045 /* Sources */,
33CC10EA2044A3C60003C045 /* Frameworks */,
8D0A366C2A9722A1008847C9 /* Select GoogleService-Info.plist */,
8D0A366D2A9722D0008847C9 /* Select firebase_app_id_file.json */,
33CC10EB2044A3C60003C045 /* Resources */,
33CC110E2044A8840003C045 /* Bundle Framework */,
3399D490228B24CF009A79C7 /* ShellScript */,
AA5EE51A68D293BE0C9BA9B6 /* [CP] Embed Pods Frameworks */,
530B2125663C42013F4D531F /* [CP] Copy Pods Resources */,
86E77DD0456BE33DAD768033 /* [firebase_crashlytics] Crashlytics Upload Symbols */,
4DD25F8677A4827B375CDF74 /* [CP] Copy Pods Resources */,
);
buildRules = (
);
Expand All @@ -205,7 +206,7 @@
isa = PBXProject;
attributes = {
LastSwiftUpdateCheck = 0920;
LastUpgradeCheck = 1300;
LastUpgradeCheck = 1430;
ORGANIZATIONNAME = "";
TargetAttributes = {
33CC10EC2044A3C60003C045 = {
Expand Down Expand Up @@ -294,7 +295,7 @@
shellPath = /bin/sh;
shellScript = "\"$FLUTTER_ROOT\"/packages/flutter_tools/bin/macos_assemble.sh && touch Flutter/ephemeral/tripwire";
};
530B2125663C42013F4D531F /* [CP] Copy Pods Resources */ = {
4DD25F8677A4827B375CDF74 /* [CP] Copy Pods Resources */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
Expand Down Expand Up @@ -331,6 +332,44 @@
shellPath = /bin/sh;
shellScript = "\"$PODS_ROOT/FirebaseCrashlytics/upload-symbols\" --flutter-project \"$PROJECT_DIR/firebase_app_id_file.json\" ";
};
8D0A366C2A9722A1008847C9 /* Select GoogleService-Info.plist */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputFileListPaths = (
);
inputPaths = (
);
name = "Select GoogleService-Info.plist";
outputFileListPaths = (
);
outputPaths = (
"$(SRCROOT)/GoogleService-Info.plist",
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "\\cp -f ${SRCROOT}/${flavor}/GoogleService-Info.plist ${SRCROOT}/GoogleService-Info.plist\n";
};
8D0A366D2A9722D0008847C9 /* Select firebase_app_id_file.json */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputFileListPaths = (
);
inputPaths = (
);
name = "Select firebase_app_id_file.json";
outputFileListPaths = (
);
outputPaths = (
"$(SRCROOT)/firebase_app_id_file.json",
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "\\cp -f ${SRCROOT}/${flavor}/firebase_app_id_file.json ${SRCROOT}/firebase_app_id_file.json\n";
};
AA5EE51A68D293BE0C9BA9B6 /* [CP] Embed Pods Frameworks */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1300"
LastUpgradeVersion = "1430"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
7 changes: 7 additions & 0 deletions packages/flutter_app/macos/dev/firebase_app_id_file.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"file_generated_by": "FlutterFire CLI",
"purpose": "FirebaseAppID & ProjectID for this Firebase app in this directory",
"GOOGLE_APP_ID": "1:1068511233454:ios:0fbb2ad807bb95dda6f43f",
"FIREBASE_PROJECT_ID": "flutter-app-template-dev",
"GCM_SENDER_ID": "1068511233454"
}
7 changes: 7 additions & 0 deletions packages/flutter_app/macos/prod/firebase_app_id_file.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"file_generated_by": "FlutterFire CLI",
"purpose": "FirebaseAppID & ProjectID for this Firebase app in this directory",
"GOOGLE_APP_ID": "1:1007652573613:ios:bf46ce3fca7af889bb1124",
"FIREBASE_PROJECT_ID": "altive-fat",
"GCM_SENDER_ID": "1007652573613"
}
7 changes: 7 additions & 0 deletions packages/flutter_app/macos/stg/firebase_app_id_file.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"file_generated_by": "FlutterFire CLI",
"purpose": "FirebaseAppID & ProjectID for this Firebase app in this directory",
"GOOGLE_APP_ID": "1:502626918852:ios:99ee534eace74ff6dfc491",
"FIREBASE_PROJECT_ID": "flutter-app-template-stg",
"GCM_SENDER_ID": "502626918852"
}

0 comments on commit 2729ca4

Please sign in to comment.