Conversation
|
Visit the preview URL for this PR (updated for commit 78c763a): (expires Mon, 18 Dec 2023 14:39:47 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 Sign: 4cb3ae61e1e018abfd9841fd3239f5b49ccc034b |
|
Current status: The PR should be ready, but there is a bug in the |
| ); | ||
| MACOSX_DEPLOYMENT_TARGET = 10.15; | ||
| PRODUCT_BUNDLE_IDENTIFIER = de.codingbrain.sharezone.app.dev; | ||
| PRODUCT_NAME = dev_Sharezone; |
There was a problem hiding this comment.
On iOS, we use the product name "dev Sharezone" for the dev environment. However, the FlutterFire CLI has a bug and doesn't support spaces in the product name, see invertase/flutterfire_cli#243. Therefore, we use a workaround "dev_Sharezone" instead of "dev Sharezone" as product name.
Summary
With this PR, we support
prodanddevflavors for our macOS app. Make you sure, you have the FlutterFire CLI installed (version 0.3.0-dev.18 or higher), if you want to build for macOS. The FlutterFire CLI is used during the build process in the XCode build phases (configuring bundle service files and uploading Crashlytics symbols).Details
Because the process of adding Firebase flavors to our macOS isn't documented well (there is a open PR with more documentation: invertase/flutterfire_cli#224), I'm describing here, what I did to support flavors.
First, I needed to execute the following commands:
The commands configure Firebase for each build config (
Debug-dev,Profile-dev,Release-dev,Debug-prod,Profile-prod,Release-prod).Additionally, I needed to set
debug information formattoDWARF with dSYM File, see https://firebase.google.com/docs/crashlytics/get-started?platform=ios#set-up-dsym-uploading.Related Tickets
Closes #352
Related to invertase/flutterfire_cli#14