feat: add Organic Maps app to the open in options

This commit is contained in:
Kiryl 2024-06-21 12:21:20 +04:00
parent a568e2d878
commit b2b1e05891
2 changed files with 6 additions and 1 deletions

View file

@ -1783,6 +1783,7 @@ plist_fragment(
<string>yandexmaps</string>
<string>yandexnavi</string>
<string>comgooglemaps</string>
<string>om</string>
<string>youtube</string>
<string>twitter</string>
<string>vk</string>

View file

@ -243,7 +243,11 @@ private func allOpenInOptions(context: AccountContext, item: OpenInItem) -> [Ope
return .openUrl(url: "yandexmaps://maps.yandex.ru/?pt=\(lon),\(lat)&z=16")
}
}))
options.append(OpenInOption(identifier: "organicMaps", application: .other(title: "Organic Maps", identifier: 1567437057, scheme: "om", store: nil), action: {
return .openUrl(url: "om://map?v=1&ll=\(lat),\(lon)")
}))
options.append(OpenInOption(identifier: "uber", application: .other(title: "Uber", identifier: 368677368, scheme: "uber", store: nil), action: {
let dropoffName: String
let dropoffAddress: String