-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Access current location using uri.path to support deep links #6474
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
Access current location using uri.path to support deep links #6474
Conversation
chunhtai
left a comment
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.
Good call. This change looks good to me, can you also bump package version and change log?
|
Some of the tests are failing. can you fix them as well? |
db04931 to
05dfb08
Compare
When passing a query parameter, i.e doing:
So, accessing current location using If that's fine, I can fix the tests by checking for |
|
@chunhtai |
|
I think you can just change the expect to ignore query parameter since now the example does not print query parameter onto the page.
I am fine with it |
adfb7ae to
ab6f793
Compare
|
@chunhtai Can you check now? |
chunhtai
left a comment
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
hannah-hyj
left a comment
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
|
looks like there are still some ci error |
|
@chunhtai |
flutter/packages@e98839a...78f684c 2024-04-12 [email protected] Roll Flutter from 557fbf5 to 53cba24 (11 revisions) (flutter/packages#6509) 2024-04-11 [email protected] [file_selector] Remove OCMock from iOS implementation (flutter/packages#6503) 2024-04-11 [email protected] Access current location using uri.path to support deep links (flutter/packages#6474) 2024-04-11 [email protected] Roll Flutter from 97cd47a to 557fbf5 (22 revisions) (flutter/packages#6502) 2024-04-11 [email protected] [packages] Set parallelizable to NO to reduce test flakiness in packages project tests (flutter/packages#6471) 2024-04-11 [email protected] Update multiple packages to depend on versions with iOS privacy manifest included (flutter/packages#6355) If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-packages-flutter-autoroll Please CC [email protected],[email protected] on the revert to ensure that a human is aware of the problem. To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://issues.skia.org/issues/new?component=1389291&template=1850622 Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
flutter/packages@e98839a...78f684c 2024-04-12 [email protected] Roll Flutter from 557fbf5 to 53cba24 (11 revisions) (flutter/packages#6509) 2024-04-11 [email protected] [file_selector] Remove OCMock from iOS implementation (flutter/packages#6503) 2024-04-11 [email protected] Access current location using uri.path to support deep links (flutter/packages#6474) 2024-04-11 [email protected] Roll Flutter from 97cd47a to 557fbf5 (22 revisions) (flutter/packages#6502) 2024-04-11 [email protected] [packages] Set parallelizable to NO to reduce test flakiness in packages project tests (flutter/packages#6471) 2024-04-11 [email protected] Update multiple packages to depend on versions with iOS privacy manifest included (flutter/packages#6355) If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-packages-flutter-autoroll Please CC [email protected],[email protected] on the revert to ensure that a human is aware of the problem. To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://issues.skia.org/issues/new?component=1389291&template=1850622 Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
…#6474) This PR updates examples to use `uri.path` instead of `uri.toString()` for accessing the current location. While the examples don't use deep linking, promoting the usage of `uri.toString()` in the examples doesn't seem to be a good idea as it can lead to issues when it's used with deep links (It'll include host and scheme).
This PR updates examples to use
uri.pathinstead ofuri.toString()for accessing the current location.While the examples don't use deep linking, promoting the usage of
uri.toString()in the examples doesn't seem to be a good idea as it can lead to issues when it's used with deep links (It'll include host and scheme).Pre-launch Checklist
dart format.)[shared_preferences]pubspec.yamlwith an appropriate new version according to the pub versioning philosophy, or this PR is exempt from version changes.CHANGELOG.mdto add a description of the change, following repository CHANGELOG style.///).