mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-20 21:33:59 +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)
|
NSString * httpGe0Url(NSString * shortUrl)
|
||||||
{
|
{
|
||||||
// Replace 'cm://' with 'https://comaps.app/'
|
// Replace 'cm://' with 'https://comaps.at/'
|
||||||
return [shortUrl stringByReplacingCharactersInRange:NSMakeRange(0, 5) withString:@"https://comaps.app/"];
|
return [shortUrl stringByReplacingCharactersInRange:NSMakeRange(0, 5) withString:@"https://comaps.at/"];
|
||||||
}
|
}
|
||||||
|
|
||||||
@interface MWMShareActivityItem ()
|
@interface MWMShareActivityItem ()
|
||||||
|
|||||||
@@ -32,10 +32,10 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
func applicationDidReceiveUniversalLink(_ universalLink: URL) -> Bool {
|
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
|
self.url = URL(string: universalLink.absoluteString
|
||||||
.replacingOccurrences(of: "http://comaps.app", with: "cm:/")
|
.replacingOccurrences(of: "http://comaps.at", with: "cm:/")
|
||||||
.replacingOccurrences(of: "https://comaps.app", with: "cm:/"))
|
.replacingOccurrences(of: "https://comaps.at", with: "cm:/"))
|
||||||
isLaunchedByUniversalLink = true
|
isLaunchedByUniversalLink = true
|
||||||
return handleDeepLink(url: self.url!)
|
return handleDeepLink(url: self.url!)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,6 +7,7 @@
|
|||||||
<key>com.apple.developer.associated-domains</key>
|
<key>com.apple.developer.associated-domains</key>
|
||||||
<array>
|
<array>
|
||||||
<string>applinks:omaps.app</string>
|
<string>applinks:omaps.app</string>
|
||||||
|
<string>applinks:omaps.at</string>
|
||||||
</array>
|
</array>
|
||||||
<key>com.apple.developer.carplay-maps</key>
|
<key>com.apple.developer.carplay-maps</key>
|
||||||
<true/>
|
<true/>
|
||||||
|
|||||||
@@ -7,6 +7,7 @@
|
|||||||
<key>com.apple.developer.associated-domains</key>
|
<key>com.apple.developer.associated-domains</key>
|
||||||
<array>
|
<array>
|
||||||
<string>applinks:omaps.app</string>
|
<string>applinks:omaps.app</string>
|
||||||
|
<string>applinks:omaps.at</string>
|
||||||
</array>
|
</array>
|
||||||
<key>com.apple.developer.carplay-maps</key>
|
<key>com.apple.developer.carplay-maps</key>
|
||||||
<true/>
|
<true/>
|
||||||
|
|||||||
Reference in New Issue
Block a user