[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

@@ -9,8 +9,8 @@
NSString * httpGe0Url(NSString * shortUrl)
{
// Replace 'cm://' with 'https://comaps.app/'
return [shortUrl stringByReplacingCharactersInRange:NSMakeRange(0, 5) withString:@"https://comaps.app/"];
// Replace 'cm://' with 'https://comaps.at/'
return [shortUrl stringByReplacingCharactersInRange:NSMakeRange(0, 5) withString:@"https://comaps.at/"];
}
@interface MWMShareActivityItem ()

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!)
}

View File

@@ -7,6 +7,7 @@
<key>com.apple.developer.associated-domains</key>
<array>
<string>applinks:omaps.app</string>
<string>applinks:omaps.at</string>
</array>
<key>com.apple.developer.carplay-maps</key>
<true/>

View File

@@ -7,6 +7,7 @@
<key>com.apple.developer.associated-domains</key>
<array>
<string>applinks:omaps.app</string>
<string>applinks:omaps.at</string>
</array>
<key>com.apple.developer.carplay-maps</key>
<true/>