Description
Is there an existing issue for this?
- I have searched the existing issues.
CLI Version
1.0.1
Firebase Tools version
13.29.1
Flutter Doctor Output
[✓] Flutter (Channel stable, 3.24.3, on macOS 15.2 24C101 darwin-arm64, locale en-EG)
• Flutter version 3.24.3 on channel stable at /Users/ahmedelsayed/.puro/envs/locals/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 2663184aa7 (4 months ago), 2024-09-11 16:27:48 -0500
• Engine revision 36335019a8
• Dart version 3.5.3
• DevTools version 2.37.3
Description
When using Firebase service account JSON file and use flutterfire reconfigure
instead of flutterfire configure
on CI, it fails.
This was requested before at #232
Steps to reproduce
Add Firebase service account JSON to your secrets and try running the following on CI:
- name: Add Firebase service account credentials files
env:
FIREBASE_SERVICE_ACCOUNT: ${{ secrets.FIREBASE_SERVICE_ACCOUNT }}
run: |
echo $FIREBASE_SERVICE_ACCOUNT > /tmp/google-application-credentials.json - name: Configure Firebase
env:
GOOGLE_APPLICATION_CREDENTIALS: /tmp/google-application-credentials.json
run: flutterfire configure ...... // Complete your project configurations
It should run successfully, but If you use flutterfire reconfigure
, it'll fail with the following error:
Failed to write android google-services.json file write for build configuration: "src/dev". Please report this issue at:https://github.com/invertase/flutterfire_cli. Exception: type 'Null' is not a subtype of type 'Map<String, dynamic>' in type cast
Expected behavior
I expect flutterfire reconfigure
to work on CI.
Screenshots
No response
Additional context and comments
No response