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

Added additional uri field to routeInformationUpdated to accept entir… #40250

Merged
merged 3 commits into from
Mar 24, 2023

Conversation

chunhtai
Copy link
Contributor

…e uri

This unblocks flutter/flutter#119968

Related: flutter/flutter#100624

The goal is to make sure all the route path is passing through framework and engine in full uri format. This is useful if framework would like to handle deeplink from different domains in non-web platform.

While the feature is unrelated to web (at least there isn't a use case for web), but I migrate the routeInformationUpdated to make the API more unified.

Pre-launch Checklist

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • I read the Tree Hygiene wiki page, which explains my responsibilities.
  • I read and followed the Flutter Style Guide and the C++, Objective-C, Java style guides.
  • I listed at least one issue that this PR fixes in the description above.
  • I added new tests to check the change I am making or feature I am adding, or Hixie said the PR is test-exempt. See testing the engine for instructions on writing and running engine tests.
  • I updated/added relevant documentation (doc comments with ///).
  • I signed the CLA.
  • All existing and new tests are passing.

If you need help, consider asking for advice on the #hackers-new channel on Discord.

@flutter-dashboard flutter-dashboard bot added the platform-web Code specifically for the web engine label Mar 13, 2023
).toString(),
);
} else {
path = arguments!.tryString('location')!;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The plan is to deprecate location and framework would only send using uri. I am not sure what may be the best way to do this. Maybe I should create a new channel method, but that feels a bit overkill

@goderbauer
Copy link
Member

Looks like some checks are failing.

@chunhtai
Copy link
Contributor Author

A friendly bump

@chunhtai chunhtai requested a review from mdebbar March 20, 2023 20:18
Copy link
Contributor

@mdebbar mdebbar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

const JSONMethodCodec().encodeMethodCall(const MethodCall(
'routeInformationUpdated',
<String, dynamic>{
'uri': 'http://myhostname.com/baz',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe make this uri a little more complete to make sure we are capturing query params and fragment?

@chunhtai chunhtai added the autosubmit Merge PR when tree becomes green via auto submit App label Mar 24, 2023
@auto-submit auto-submit bot merged commit 608d5b2 into flutter:main Mar 24, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Mar 24, 2023
auto-submit bot pushed a commit to flutter/flutter that referenced this pull request Mar 24, 2023
…cept entir… (flutter/engine#40250) (#123430)

Roll Flutter Engine from 78c7f9571c5a to 608d5b214faa (1 revision)
sourcegraph-bot pushed a commit to sgtest/megarepo that referenced this pull request Mar 24, 2023
…ted to accept entir… (flutter/engine#40250) (#123430)

Commit: d45c142f3db4d7af9f24c3f37a0b1e08e4267066
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 25, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 26, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 26, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 26, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 27, 2023
eyebrowsoffire pushed a commit to eyebrowsoffire/engine that referenced this pull request Mar 27, 2023
flutter#40250)

Added additional uri field to routeInformationUpdated to accept entir�
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
autosubmit Merge PR when tree becomes green via auto submit App platform-web Code specifically for the web engine
Projects
None yet
3 participants