-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
fix(share_plus): Fix url encoding for web, Linux and Windows #236
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
awesome! thanks a lot.
have you tried to run the e2e "integration" tests present in the main project (share_plus) on these two platforms? |
Only Web seems to have integration tests. My idea would be to add a unit test project for each platform project. I also just noticed that Windows has the same problem, so I fixed that too. |
The integration tests are on (another different thing is if they work or not but that's how this project is structured)
That would be nice, yes! |
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.
All good, thanks a lot!
I will merge it and release new version for share_plus_{web, linux, windows}
|
||
final uri = Uri( | ||
scheme: 'mailto', | ||
queryParameters: queryParameters, |
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.
very nice!!
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.
FYI, this is actually wrong due to a Dart bug (which is why I didn't suggest this format when I filed the issue). See dart-lang/sdk#43838, especially dart-lang/sdk#43838 (comment).
This will fix the issue I filed, but may cause spaces to be converted to +
depending on the handler.
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.
That's unfortunate 😅 Are there more gotchas which I should be aware of before attempting another fix?
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.
None that I know of, no. I would suggest including spaces in the values in your unit tests on the next round, so that tests will prevent someone accidentally falling into this trap again in the future when maintaining these plugins (although hopefully the issue will be fixed in Dart itself at some point).
after fixing the merge issues I saw that the tests aren't passing, I will leave that to you @ueman :) once it is fix I will release the packages and merge |
thanks for the fix! I don't know why CI is canceling the job all the time, will investigate :/ |
packages has been published |
Description
This fixes the issue mentiond in #235
Are there any existing unit tests which I can add a test to?
Related Issues
Fixes #235
Fixes #226 (at least a part of it)
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.///
).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?