[ios] Use comaps.at for share links

Signed-off-by: Harry Bond <me@hbond.xyz>
This commit is contained in:
Harry Bond
2025-06-13 22:30:30 +01:00
parent c280293894
commit 8e35f4e208
4 changed files with 7 additions and 5 deletions

View File

@@ -32,10 +32,10 @@
}
func applicationDidReceiveUniversalLink(_ universalLink: URL) -> Bool {
// Convert http(s)://comaps.app/ENCODEDCOORDS/NAME to cm://ENCODEDCOORDS/NAME
// Convert http(s)://comaps.at/ENCODEDCOORDS/NAME to cm://ENCODEDCOORDS/NAME
self.url = URL(string: universalLink.absoluteString
.replacingOccurrences(of: "http://comaps.app", with: "cm:/")
.replacingOccurrences(of: "https://comaps.app", with: "cm:/"))
.replacingOccurrences(of: "http://comaps.at", with: "cm:/")
.replacingOccurrences(of: "https://comaps.at", with: "cm:/"))
isLaunchedByUniversalLink = true
return handleDeepLink(url: self.url!)
}