Skip to content

Commit

Permalink
Add apple-app-site-association to handle deep links
Browse files Browse the repository at this point in the history
  • Loading branch information
kyleshay committed Dec 21, 2021
1 parent 17e8e40 commit 603a427
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build/purge-cloudflare.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ curl -X POST "https://api.cloudflare.com/client/v4/zones/2c34c69276ed0f6eb2b9e15
-H "X-Auth-Email: $CLOUDFLARE_EMAIL" \
-H "X-Auth-Key: $CLOUDFLARE_KEY" \
-H "Content-Type: application/json" \
--data '{"files":["https://'"$APP_DOMAIN"'", "https://'"$APP_DOMAIN"'/index.html", "https://'"$APP_DOMAIN"'/version.json", "https://'"$APP_DOMAIN"'/service-worker.js", "https://'"$APP_DOMAIN"'/return.html", "https://'"$APP_DOMAIN"'/.well-known/assetlinks.json", "https://'"$APP_DOMAIN"'/manifest-webapp-6-2018.json", "https://'"$APP_DOMAIN"'/manifest-webapp-6-2018-ios.json"]}'
--data '{"files":["https://'"$APP_DOMAIN"'", "https://'"$APP_DOMAIN"'/index.html", "https://'"$APP_DOMAIN"'/version.json", "https://'"$APP_DOMAIN"'/service-worker.js", "https://'"$APP_DOMAIN"'/return.html", "https://'"$APP_DOMAIN"'/.well-known/assetlinks.json", "https://'"$APP_DOMAIN"'/.well-known/apple-app-site-association", "https://'"$APP_DOMAIN"'/manifest-webapp-6-2018.json", "https://'"$APP_DOMAIN"'/manifest-webapp-6-2018-ios.json"]}'
File renamed without changes.
File renamed without changes.
11 changes: 11 additions & 0 deletions config/.well-known/apple-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"applinks": {
"apps": [],
"details": [
{
"appID": "P7G764E7RR.com.destinyitemmanager.app",
"paths": ["*"]
}
]
}
}
8 changes: 6 additions & 2 deletions config/webpack.js
Original file line number Diff line number Diff line change
Expand Up @@ -418,9 +418,13 @@ module.exports = (env) => {
new CopyWebpackPlugin({
patterns: [
{
from: `./src/android-config${env.release ? '' : '.beta'}.json`,
from: `./config/.well-known/android-config${env.release ? '' : '.beta'}.json`,
to: '.well-known/assetlinks.json',
},
{
from: `./config/.well-known/apple-config.json`,
to: '.well-known/apple-app-site-association',
},
],
})
);
Expand Down Expand Up @@ -474,7 +478,7 @@ module.exports = (env) => {
// Ignore both the webapp manifest and the d1-manifest files
/data\/d1\/manifests/,
/manifest-webapp/,
// Android manifest
// Android and iOS manifest
/\.well-known/,
],
swSrc: './src/service-worker.ts',
Expand Down

0 comments on commit 603a427

Please sign in to comment.