-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
fix(share_plus): Share.shareXFiles resulting in stack-overflow on Windows & Linux #1186
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
Conversation
…inux * Now Share.shareXFiles correctly throws UnimplementedError on Linux & Windows builds lower than 17763, instead of causing a stack-overflow * Addresses fluttercommunity#1180
|
Thanks a lot @alexmercerind
I am not sure if this will be possible, so it will just be released with the upcoming major release, unfortunately. |
Understandable. Since, current 4.x.x don't include |
|
Is |
Yes! plus_plugins/packages/share_plus/share_plus_windows/windows/share_plus_windows_plugin.cpp Lines 151 to 152 in 7b6ac7e
The platform implementation ( Lines 137 to 155 in 7b6ac7e
|
|
Got it, thanks! |
Description
This pull-request fixes an issue where calling
Share.shareXFilescaused stack-overflow due to an endless recursion cycle on:Now
shareXFileshas been overrided in bothShareLinux&ShareWindowsclasses, to correctly throwUnimplementedErrorinstead. More information may be located at: #1180 (comment).NOTE: This fix should be released for both 4.x.x (currently on pub.dev) & 5.x.x (post #1158 i.e. next version).
This pull-request also resolves another issue for older Windows versions (builds lower than 17763), where Dart sided fallback implementation couldn't be registered correctly.
Related Issues
Closes #1180.
Checklist
CHANGELOG.mdnor thepubspec.yamlfiles.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?
!in the title as explained in Conventional Commits).