mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-19 04:53:36 +00:00
[ios] Use comaps.at for share links
Signed-off-by: Harry Bond <me@hbond.xyz>
This commit is contained in:
@@ -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 ()
|
||||
|
||||
@@ -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!)
|
||||
}
|
||||
|
||||
@@ -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/>
|
||||
|
||||
@@ -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/>
|
||||
|
||||
Reference in New Issue
Block a user