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] Add ios path from AASA file check result. #8285

Merged
merged 9 commits into from
Sep 6, 2024

Conversation

hannah-hyj
Copy link
Member

Deep link android paths are read from android manifest file.
Deep link ios paths are from the web AASA file , so we read it from the validation RPC and show them in the validation result.

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 August 30, 2024 19:53
@hannah-hyj hannah-hyj requested review from kenzieschmoll and removed request for a team August 30, 2024 19:53
Comment on lines +549 to +554
final hasAndroidAssetLinksFile = !(androidDomainErrors[linkdata.domain]
?.contains(AndroidDomainError.existence) ??
false);
final hasIosAasaFile = !(iosDomainErrors[linkdata.domain]
?.contains(IosDomainError.existence) ??
false);
Copy link
Member

Choose a reason for hiding this comment

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

is defaulting to false what we want here? The way I am understanding this is that if we have no domain errors, we assume the asset links or aasa files do not exist.

Copy link
Member Author

@hannah-hyj hannah-hyj Sep 6, 2024

Choose a reason for hiding this comment

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

If we have no domain errors, hasAndroidAssetLinksFile =! ( null ?? false ) = true .

if the domain doesn't have asset links or aasa files. the domain errors should return AndroidDomainError.existence or IosDomainError.existence.

If we have no domain errors, we assume the domain has asset links or aasa files.

@hannah-hyj hannah-hyj merged commit 4eae64d into flutter:master Sep 6, 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