flutterfire
flutterfire copied to clipboard
feat(app_check, mobile): add option to pass debugTokens in initialization
Description
This feature allows a developer to use a pre-generated debug token instead of one that is generated at runtime. It's useful in CI environments, where you don't have an option to copy token from logs and paste it to Firebase Console.
Related Issues
Fix for: https://github.com/firebase/flutterfire/issues/11719
Checklist
Before you create this PR confirm that it meets all requirements listed below by checking the relevant checkboxes ([x]).
This will ensure a smooth and quick review process. Updating the pubspec.yaml and changelogs is not required.
- [x] I read the Contributor Guide and followed the process outlined there for submitting PRs.
- [ ] My PR includes unit or integration tests for all changed/updated/fixed behaviors (See Contributor Guide).
- [ ] All existing and new tests are passing.
- [ ] I updated/added relevant documentation (doc comments with
///). - [ ] The analyzer (
melos run analyze) does not report any problems on my PR. - [ ] I read and followed the Flutter Style Guide.
- [x] I signed the CLA.
- [x] I am willing to follow-up on review comments in a timely manner.
Breaking Change
Does your PR require plugin users to manually update their apps to accommodate your change?
- [ ] Yes, this is a breaking change.
- [x] No, this is not a breaking change.
Hello @xVemu, thanks for your PR, could you add some tests in the tests/integration_test/firebase_app_check
@Lyokone something like this?
Thanks, I'll have a look at the API (we might want to have appleDebugToken instead of iosDebugToken). But otherwise it looks good :)
@xVemu any update for that?
@xVemu any update for that?
I guess we have to wait for Firebase team?
@xVemu did you notice that some tests are failing?
@xVemu did you notice that some tests are failing?
~~Yep, I assume that's because I haven't changed pubspec for related packages.~~
@xVemu have you got anytime to fix this ?
@xVemu have you got anytime to fix this ?
~Fix what?~
@xVemu have you got anytime to fix this ?
Fix what?
the failing checks below that are blocking the PR.
@xVemu are you able to tell who should doing something to merge it?
@xVemu can you have a look at the failing checks, please?
Closing as this is being worked on in this PR: https://github.com/firebase/flutterfire/pull/16942