This will likely need to be done only once per deployment environment.
Adding Firebase config files:
-
Go to the Firebase console > PROJECT_NAME > settings cog icon > project settings > scroll down > go to both the iOS and Android tabs and install the respective
GoogleService-Info.plistandgoogle-services.jsonfiles. -
The iOS file should be placed in both
~/ios/MyAppand~/ios/Runner. -
The Android file should be placed in
~/android/app. -
Install the FlutterFire CLI here.
-
Run
flutterfire configure. This will help with "filling in the gaps" with linking the projects.
To run in debug mode:
flutter runTo run in release mode (fast, no debug tools):
flutter run --releaseThe remote config representative JSON map is found in ~/lib/core/services/remote_config/remote_config.dart. Edit this when updating the Firebase project's Remote Config in the dashboard.
Always ensure every key exists. Do not just "remove" keys without ensuring they aren't being used by some version of the app.
You can verify the app-site-association here:
https://app-site-association.cdn-apple.com/a/v1/confesi.com. Or, simply by plugging in YOUR DOMAIN to confesi.com.
This will diagnose your Flutter installation:
flutter doctorTo rebuild from scratch:
flutter cleanflutter pub getflutter run- Ensure the home widget has correct url endpoint. This is in the Swift code.
Ensure the proper settings via checking them in the project's Runner in XCode (build number, version, signing, etc.):
xed iosTo compile the Apple IPA file, run:
flutter build ipa --obfuscate --split-debug-info=build/app/outputs/symbolsThe output IPA file will appear in /build/ios/ipa/<SOMETHING>.ipa. It can be transferred to App Store Connect via Apple's Transporter.