Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: allow web to initialize from Dart lazily without crashing on missing initialization script #7302

Merged
merged 9 commits into from
Nov 5, 2021

Conversation

pr-Mais
Copy link
Member

@pr-Mais pr-Mais commented Nov 4, 2021

Description

Allow web plugins to register without crashing on missing initialization script, and allow to initialize web plugins only from Dart lazily.

Related Issues

Possibly fixes #3962

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.

  • 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.
  • I signed the CLA.
  • 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.
  • No, this is not a breaking change.

@google-cla google-cla bot added the cla: yes label Nov 4, 2021
@pr-Mais pr-Mais changed the base branch from master to @russell/initialize-app November 4, 2021 17:23
@srawlins
Copy link

srawlins commented Nov 4, 2021

Woohoo, so excited to see this PR!

I think firebase_core also does not initialize lazily; to fix #3962 I think we need changes to firebase_core as well.

@pr-Mais
Copy link
Member Author

pr-Mais commented Nov 5, 2021

@srawlins this PR is based on #6549, which allows initialization from dart only

@srawlins
Copy link

srawlins commented Nov 5, 2021

Ah I see, thanks for the explanation.

@Salakar Salakar merged commit 2a99d24 into @russell/initialize-app Nov 5, 2021
@Salakar Salakar deleted the @mais/web-lazy-initialize branch November 5, 2021 20:42
@firebase firebase locked and limited conversation to collaborators Dec 6, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
6 participants