Add Element X iOS entries in the apple-app-site-association. (#337)
* Add Element X to the apple-app-site-association file. * Tidy up the generated apple-app-site-association file.
This commit is contained in:
parent
00ccd16f19
commit
657fd9cc1a
3 changed files with 10 additions and 6 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -2,3 +2,4 @@ node_modules
|
||||||
build
|
build
|
||||||
*.tar.gz
|
*.tar.gz
|
||||||
/.idea
|
/.idea
|
||||||
|
.DS_Store
|
||||||
|
|
|
@ -124,10 +124,9 @@ async function buildJs(mainFile, assets, extraFiles = []) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function buildAppleAssociatedAppsFile(clients) {
|
function buildAppleAssociatedAppsFile(clients) {
|
||||||
const appIds = clients.map(c => c.appleAssociatedAppId).filter(id => !!id);
|
const appIds = clients.map(c => c.appleAssociatedAppId).flat().filter(id => !!id);
|
||||||
return JSON.stringify({
|
return JSON.stringify({
|
||||||
"applinks": {
|
"applinks": {
|
||||||
"apps": [],
|
|
||||||
"details": {
|
"details": {
|
||||||
appIDs: appIds,
|
appIDs: appIds,
|
||||||
components: [
|
components: [
|
||||||
|
@ -136,9 +135,6 @@ function buildAppleAssociatedAppsFile(clients) {
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
},
|
|
||||||
"webcredentials": {
|
|
||||||
"apps": appIds
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -42,7 +42,14 @@ export class Element {
|
||||||
}
|
}
|
||||||
|
|
||||||
get icon() { return "images/client-icons/element.svg"; }
|
get icon() { return "images/client-icons/element.svg"; }
|
||||||
get appleAssociatedAppId() { return "7J4U792NQT.im.vector.app"; }
|
get appleAssociatedAppId() {
|
||||||
|
return [
|
||||||
|
"7J4U792NQT.im.vector.app",
|
||||||
|
"7J4U792NQT.io.element.elementx",
|
||||||
|
"7J4U792NQT.io.element.elementx.nightly",
|
||||||
|
"7J4U792NQT.io.element.elementx.pr"
|
||||||
|
];
|
||||||
|
}
|
||||||
get name() {return "Element"; }
|
get name() {return "Element"; }
|
||||||
get description() { return 'Fully-featured Matrix client, used by millions.'; }
|
get description() { return 'Fully-featured Matrix client, used by millions.'; }
|
||||||
get homepage() { return "https://element.io"; }
|
get homepage() { return "https://element.io"; }
|
||||||
|
|
Loading…
Reference in a new issue