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

[deep link] Make path a class to add isExclude and queryParam #8307

Merged
merged 7 commits into from
Sep 13, 2024

Conversation

hannah-hyj
Copy link
Member

@hannah-hyj hannah-hyj commented Sep 6, 2024

Context:
A deeplink path in AASA file is more than just a string, it can have other attributions like exclude ,

exclude : A Boolean value that indicates whether to stop pattern matching and prevent the universal link from opening if the URL matches the associated pattern. The default is false.

For a excluded path, we just display them as NOT /path in the path table.

For other attributions, will add them in the UI later.

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 the Flutter Style Guide recently, and have followed its advice.
  • I signed the CLA.
  • I listed at least one issue that this PR fixes in the description above.
  • I updated/added relevant documentation (doc comments with ///).
  • I added new tests to check the change I am making, or there is a reason for not adding tests.

build.yaml badge

If you need help, consider asking for help on Discord.

@hannah-hyj hannah-hyj requested a review from a team as a code owner September 6, 2024 20:57
@hannah-hyj hannah-hyj requested review from elliette and kenzieschmoll and removed request for a team and elliette September 6, 2024 20:57
@@ -552,7 +552,7 @@ class DeepLinksController extends DisposableController
false);

if (linkdata.os.contains(PlatformOS.ios)) {
final List<String> iosPaths = iosDomainPaths[linkdata.domain] ?? [];
final List<Path> iosPaths = iosDomainPaths[linkdata.domain] ?? [];
Copy link
Member

Choose a reason for hiding this comment

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

remove type on LHS. There should be a lint that catches this, and the DCM check on the CI should catch this too, so maybe we have a bug. But please remove type on LHS and add it to the null case empty list.

@@ -552,7 +552,7 @@ class DeepLinksController extends DisposableController
false);

if (linkdata.os.contains(PlatformOS.ios)) {
final List<String> iosPaths = iosDomainPaths[linkdata.domain] ?? [];
final iosPaths = iosDomainPaths[linkdata.domain] ?? [];
Copy link
Member

Choose a reason for hiding this comment

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

add the type to the empty list or else this would be dynamically typed when iosDomainPaths[linkdata.domain] is null

@hannah-hyj hannah-hyj merged commit 6d6bb3b into flutter:master Sep 13, 2024
23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants