Skip to content

Commit

Permalink
chore(universal links): add universal link files for android and iOS
Browse files Browse the repository at this point in the history
  • Loading branch information
emile-bex committed Dec 7, 2021
1 parent 28cd587 commit c0dcaab
Show file tree
Hide file tree
Showing 6 changed files with 74 additions and 29 deletions.
15 changes: 0 additions & 15 deletions .well-known/apple-app-site-association

This file was deleted.

13 changes: 0 additions & 13 deletions .well-known/assetlinks.json

This file was deleted.

22 changes: 22 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,26 @@ module.exports = {
},
]
},
async headers() {
return [
{
source: '/.well-known/apple-app-site-association',
headers: [
{
key: 'Content-Type',
value: 'application/json',
},
],
},
{
source: '/.well-known/assetlinks.json',
headers: [
{
key: 'Content-Type',
value: 'application/json',
},
],
},
];
},
}
27 changes: 27 additions & 0 deletions public/.well-known/apple-app-site-association
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"webcredentials": {
"apps": [
"RT7X9LLTN6.social.entourage.entourageios",
"RT7X9LLTN6.social.entourage.entourageios.beta"
]
},
"applinks": {
"apps": [],
"details": [
{
"appID": "RT7X9LLTN6.social.entourage.entourageios",
"paths": [
"/",
"/actions/*"
]
},
{
"appID": "RT7X9LLTN6.social.entourage.entourageios.beta",
"paths": [
"/",
"/actions/*"
]
}
]
}
}
24 changes: 24 additions & 0 deletions public/.well-known/assetlinks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
[
{
"relation": ["delegate_permission/common.handle_all_urls"],
"target": {
"namespace": "android_app",
"package_name": "social.entourage.android",
"sha256_cert_fingerprints": [
"DA:C4:85:E4:D7:9F:59:E0:49:EE:A8:63:70:76:27:F9:1A:5C:09:79:F5:A1:66:81:3B:DB:76:cd:7D:64:2C:49",
"90:2D:BA:19:30:A7:A5:A9:3F:ab:B5:EA:72:DC:E0:3F:3F:AD:F4:6F:33:2C:3A:FA:12:8F:6C:61:C4:CA:6F:37"
]
}
},
{
"relation": ["delegate_permission/common.handle_all_urls"],
"target": {
"namespace": "android_app",
"package_name": "social.entourage.android.preprod.debug",
"sha256_cert_fingerprints": [
"DA:C4:85:E4:D7:9F:59:E0:49:EE:A8:63:70:76:27:F9:1A:5C:09:79:F5:A1:66:81:3B:DB:76:cd:7D:64:2C:49",
"90:2D:BA:19:30:A7:A5:A9:3F:ab:B5:EA:72:DC:E0:3F:3F:AD:F4:6F:33:2C:3A:FA:12:8F:6C:61:C4:CA:6F:37"
]
}
}
]
2 changes: 1 addition & 1 deletion server.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ app.prepare()

// TODO specify origin
server.use(cors());

server.get('*', (req, res) => {
return handle(req, res)
})
Expand Down

0 comments on commit c0dcaab

Please sign in to comment.