From ef037c5c1db48d699ab42411373189cd488c4fe3 Mon Sep 17 00:00:00 2001 From: David Baker Date: Wed, 6 Sep 2023 10:22:02 +0100 Subject: [PATCH 1/5] Add apple site association --- public/apple-app-site-association.json | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 public/apple-app-site-association.json diff --git a/public/apple-app-site-association.json b/public/apple-app-site-association.json new file mode 100644 index 00000000..eff625a4 --- /dev/null +++ b/public/apple-app-site-association.json @@ -0,0 +1,17 @@ +{ + "applinks": { + "apps": [], + "details": [ + { + "appIDs":[ + "7J4U792NQT.io.element.elementx", + "7J4U792NQT.io.element.elementx.nightly", + "7J4U792NQT.io.element.elementx.pr" + ], + "paths": [ + "*" + ] + } + ] + } +} From 5d969563f739062b5b96fe43561c6b475a22d162 Mon Sep 17 00:00:00 2001 From: David Baker Date: Wed, 6 Sep 2023 10:35:41 +0100 Subject: [PATCH 2/5] Prettier --- public/apple-app-site-association.json | 28 ++++++++++++-------------- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/public/apple-app-site-association.json b/public/apple-app-site-association.json index eff625a4..b27b5c71 100644 --- a/public/apple-app-site-association.json +++ b/public/apple-app-site-association.json @@ -1,17 +1,15 @@ { - "applinks": { - "apps": [], - "details": [ - { - "appIDs":[ - "7J4U792NQT.io.element.elementx", - "7J4U792NQT.io.element.elementx.nightly", - "7J4U792NQT.io.element.elementx.pr" - ], - "paths": [ - "*" - ] - } - ] - } + "applinks": { + "apps": [], + "details": [ + { + "appIDs": [ + "7J4U792NQT.io.element.elementx", + "7J4U792NQT.io.element.elementx.nightly", + "7J4U792NQT.io.element.elementx.pr" + ], + "paths": ["*"] + } + ] + } } From 1757bc546dc1f328f1de1aa7f731497da30b390c Mon Sep 17 00:00:00 2001 From: David Baker Date: Wed, 6 Sep 2023 13:59:37 +0100 Subject: [PATCH 3/5] Rename to not have file extension As this is what apple need. Also make the docker container serve it with the right content type. --- config/nginx.conf | 4 ++++ ...e-app-site-association.json => apple-app-site-association} | 0 2 files changed, 4 insertions(+) rename public/{apple-app-site-association.json => apple-app-site-association} (100%) diff --git a/config/nginx.conf b/config/nginx.conf index f7253465..5dc69b2f 100644 --- a/config/nginx.conf +++ b/config/nginx.conf @@ -21,5 +21,9 @@ server { expires 1w; add_header Cache-Control "public, no-transform"; } + + location /apple-app-site-association { + default_type application/json; + } } diff --git a/public/apple-app-site-association.json b/public/apple-app-site-association similarity index 100% rename from public/apple-app-site-association.json rename to public/apple-app-site-association From b0e7b949daca13fe79f0de0845b62431feb2ac5f Mon Sep 17 00:00:00 2001 From: David Baker Date: Wed, 6 Sep 2023 16:03:54 +0100 Subject: [PATCH 4/5] Assetlinks for android too --- public/.well-known/assetlinks.json | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 public/.well-known/assetlinks.json diff --git a/public/.well-known/assetlinks.json b/public/.well-known/assetlinks.json new file mode 100644 index 00000000..f49328c2 --- /dev/null +++ b/public/.well-known/assetlinks.json @@ -0,0 +1,12 @@ +[ + { + "relation": ["delegate_permission/common.handle_all_urls"], + "target": { + "namespace": "android_app", + "package_name": "io.element.android.x.debug", + "sha256_cert_fingerprints": [ + "BC:9D:56:30:0C:3C:DB:80:16:EE:0D:3F:40:E6:65:C0:78:CA:B8:99:2E:DD:6E:FB:2B:CA:FB:60:48:FE:BF:58" + ] + } + } +] From da5bef1206c7bd13316d8afddae3bef0195ff4cc Mon Sep 17 00:00:00 2001 From: David Baker Date: Wed, 6 Sep 2023 16:23:49 +0100 Subject: [PATCH 5/5] Wrong finger or something --- public/.well-known/assetlinks.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/.well-known/assetlinks.json b/public/.well-known/assetlinks.json index f49328c2..0eb37bf0 100644 --- a/public/.well-known/assetlinks.json +++ b/public/.well-known/assetlinks.json @@ -5,7 +5,7 @@ "namespace": "android_app", "package_name": "io.element.android.x.debug", "sha256_cert_fingerprints": [ - "BC:9D:56:30:0C:3C:DB:80:16:EE:0D:3F:40:E6:65:C0:78:CA:B8:99:2E:DD:6E:FB:2B:CA:FB:60:48:FE:BF:58" + "B0:B0:51:DC:56:5C:81:2F:E1:7F:6F:3E:94:5B:4D:79:04:71:23:AB:0D:A6:12:86:76:9E:B2:94:91:97:13:0E" ] } }