Skip to content

Commit b2b1e05

Browse files
committed
feat: add Organic Maps app to the open in options
1 parent a568e2d commit b2b1e05

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

Telegram/BUILD

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1783,6 +1783,7 @@ plist_fragment(
17831783
<string>yandexmaps</string>
17841784
<string>yandexnavi</string>
17851785
<string>comgooglemaps</string>
1786+
<string>om</string>
17861787
<string>youtube</string>
17871788
<string>twitter</string>
17881789
<string>vk</string>

submodules/OpenInExternalAppUI/Sources/OpenInOptions.swift

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,11 @@ private func allOpenInOptions(context: AccountContext, item: OpenInItem) -> [Ope
243243
return .openUrl(url: "yandexmaps://maps.yandex.ru/?pt=\(lon),\(lat)&z=16")
244244
}
245245
}))
246-
246+
247+
options.append(OpenInOption(identifier: "organicMaps", application: .other(title: "Organic Maps", identifier: 1567437057, scheme: "om", store: nil), action: {
248+
return .openUrl(url: "om://map?v=1&ll=\(lat),\(lon)")
249+
}))
250+
247251
options.append(OpenInOption(identifier: "uber", application: .other(title: "Uber", identifier: 368677368, scheme: "uber", store: nil), action: {
248252
let dropoffName: String
249253
let dropoffAddress: String

0 commit comments

Comments
 (0)