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

Refactor for mixin breaking change #42

Merged
merged 2 commits into from Jul 16, 2022

Conversation

TimWhiting
Copy link
Contributor

Fixes #41
Mixins will no longer be able to extend other mixins (Rather the super mixin should be specified in an on clause). This breaking change is already on flutter's master channel, which is causing build errors when depending on this library.
dart-lang/sdk#48167

This change makes the mixin clause longer for many of the classes, but at least the tests seem to still pass. Other than one test which I'm assuming is related to this issue, which is already resolved on dart's master channel.
dart-lang/sdk@abedfaf

@SandroMaglione
Copy link
Owner

Hi @TimWhiting

Thanks for your work, this is awesome 🙏🏼

Could you try to update analysis_options removing mixin_inherits_from_not_object and run dart analyze to see if everything works?

@TimWhiting
Copy link
Contributor Author

TimWhiting commented Jul 8, 2022

Done, everything works, except test/src/task_test.dart: Task run fails. I'm not 100% sure why, but likely because of the dart-sdk issue I linked. I know there have been some changes related to futures in the dart sdk. The analyzer thinks that it is the right type if I hover over it, but I guess the compiled test has different behavior than the static analysis.

@TimWhiting
Copy link
Contributor Author

Fix for the dart sdk Future issue is in the master channel now.
I've tested with the dart sdk in flutter's master, beta, and stable channel, and all of the tests pass.

@SandroMaglione SandroMaglione merged commit 493ab8b into SandroMaglione:main Jul 16, 2022
@SandroMaglione
Copy link
Owner

Merged! Thank you again @TimWhiting 🙏🏼

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Library broken on dart / flutter master channel
2 participants