From 8e35f4e20876b0225bf28103721e1e27074959ea Mon Sep 17 00:00:00 2001 From: Harry Bond Date: Fri, 13 Jun 2025 22:30:30 +0100 Subject: [PATCH] [ios] Use comaps.at for share links Signed-off-by: Harry Bond --- iphone/Maps/Classes/Share/MWMShareActivityItem.mm | 4 ++-- iphone/Maps/Core/DeepLink/DeepLinkHandler.swift | 6 +++--- iphone/Maps/OMaps-Debug.entitlements | 1 + iphone/Maps/OMaps-Release.entitlements | 1 + 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/iphone/Maps/Classes/Share/MWMShareActivityItem.mm b/iphone/Maps/Classes/Share/MWMShareActivityItem.mm index 12b6c87fa..6fa55c31d 100644 --- a/iphone/Maps/Classes/Share/MWMShareActivityItem.mm +++ b/iphone/Maps/Classes/Share/MWMShareActivityItem.mm @@ -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 () diff --git a/iphone/Maps/Core/DeepLink/DeepLinkHandler.swift b/iphone/Maps/Core/DeepLink/DeepLinkHandler.swift index d094cc681..ab90f50dd 100644 --- a/iphone/Maps/Core/DeepLink/DeepLinkHandler.swift +++ b/iphone/Maps/Core/DeepLink/DeepLinkHandler.swift @@ -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!) } diff --git a/iphone/Maps/OMaps-Debug.entitlements b/iphone/Maps/OMaps-Debug.entitlements index 06b83f716..790129a64 100644 --- a/iphone/Maps/OMaps-Debug.entitlements +++ b/iphone/Maps/OMaps-Debug.entitlements @@ -7,6 +7,7 @@ com.apple.developer.associated-domains applinks:omaps.app + applinks:omaps.at com.apple.developer.carplay-maps diff --git a/iphone/Maps/OMaps-Release.entitlements b/iphone/Maps/OMaps-Release.entitlements index 9e52a78a0..eac295fce 100644 --- a/iphone/Maps/OMaps-Release.entitlements +++ b/iphone/Maps/OMaps-Release.entitlements @@ -7,6 +7,7 @@ com.apple.developer.associated-domains applinks:omaps.app + applinks:omaps.at com.apple.developer.carplay-maps