-
Notifications
You must be signed in to change notification settings - Fork 9.8k
[path_provider] linux endorsement #2789
[path_provider] linux endorsement #2789
Conversation
@stuartmorgan Note that I need to manually register the instance, at least until flutter tool support for automatically generating a plugin registrant for dart only plugins happens. If that is in the plans? (I didn't see any conclusion on which approach you are planning on taking) Design Document: Flutter tool support for federated plugins |
Ideally yes, but it ended up having technical complexities, so we decided to go with this approach in the short-to-medium term to unblock being able to implement Dart-only plugins. flutter/flutter#52267 is tracking a longer term solution. |
…t the suggestions for manual registrations in the design document, also bumped the linux path provider version since updated readme and example to reflect the endorsement
@stuartmorgan |
packages/path_provider/path_provider_linux/example/test/widget_test.dart
Show resolved
Hide resolved
…le the manually registered Linux plugin if they want to manually register another
@stuartmorgan I think this should be ready to land, once all the tests pass. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
@stuartmorgan |
There aren't an conflicts; no need to re-merge. |
Once main CI has cycled green I should be able to publish the update. |
path_provider 1.6.10 is live 🎉 |
@stuartmorgan Ideally people migrating to the federated plugin, should have also updated their mocks of the plugin, but this might not have happened. Especially since the documentation on writing tests has this example of mocking the What should we do? |
I filed flutter/website#8442 for updating the cookbook. Updating the path_provider docs to call out the necessary changes sounds good. Given that it's already published, I don't think there's much more we can do to mitigate the potential unintentional test breakage. |
Endorses path_provider_linux, manually registering its implementation as a workaround for flutter/flutter#52267
Endorses path_provider_linux, manually registering its implementation as a workaround for flutter/flutter#52267
Endorses path_provider_linux, manually registering its i 6BB2 mplementation as a workaround for flutter/flutter#52267
Description
This PR updates path_provider to endorse the dart Linux path provider manually, until automatic registration of dart plugins are working.
Related Issues
flutter/flutter#41716
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.///
).flutter analyze
) does not report any problems on my PR.Breaking Change
Does your PR require plugin users to manually update their apps to accommodate your change?
Only to remove manual registration if anyone does that before this gets implemented.