Skip to content

Commit

Permalink
[Deep link] Generate AASA template when it doesn't exist (flutter#8345)
Browse files Browse the repository at this point in the history
* Add an AASA-template

* resolve comments
  • Loading branch information
hannah-hyj authored Sep 27, 2024
1 parent b29a37e commit f1117d3
Showing 1 changed file with 28 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -181,9 +181,34 @@ class _DomainCheckTable extends StatelessWidget {
for (final error
in linkData.domainErrors.whereType<IosDomainError>())
_IssuesBorderWrap(
children: [
_FailureDetails(errors: [error]),
],
children: error == IosDomainError.existence
? [
_FailureDetails(
errors: [error],
oneFixGuideForAll:
'To fix this issue, add an Apple-App-Site-Association file at the following location: '
'https://${controller.selectedLink.value!.domain}/.well-known/assetlinks.json.',
),
const SizedBox(height: denseSpacing),
_CodeCard(
content: '''{
"applinks": {
"details": [
{
"appIDs": [ "${controller.teamId}.${controller.bundleId}" ],
"components": [
{
"/": "*"
}
]
}
]
}''',
),
]
: [
_FailureDetails(errors: [error]),
],
),
],
),
Expand Down

0 comments on commit f1117d3

Please sign in to comment.