|
|
@@ -1364,11 +1364,11 @@ private extension ViewController {
|
|
|
case .rateUs:
|
|
|
openRateUsDestination()
|
|
|
case .support:
|
|
|
- openSettingsLink(infoKey: "SupportURL")
|
|
|
+ openSettingsLinkInDefaultBrowser(infoKey: "SupportURL")
|
|
|
case .privacyPolicy:
|
|
|
- openSettingsLink(infoKey: "PrivacyPolicyURL")
|
|
|
+ openSettingsLinkInDefaultBrowser(infoKey: "PrivacyPolicyURL")
|
|
|
case .termsOfServices:
|
|
|
- openSettingsLink(infoKey: "TermsOfServiceURL")
|
|
|
+ openSettingsLinkInDefaultBrowser(infoKey: "TermsOfServiceURL")
|
|
|
case .moreApps:
|
|
|
if let moreAppsURL = Bundle.main.object(forInfoDictionaryKey: "MoreAppsURL") as? String,
|
|
|
let url = URL(string: moreAppsURL) {
|
|
|
@@ -1388,6 +1388,13 @@ private extension ViewController {
|
|
|
openURLWithRouting(url, policy: inAppBrowserDefaultPolicy)
|
|
|
}
|
|
|
|
|
|
+ private func openSettingsLinkInDefaultBrowser(infoKey: String) {
|
|
|
+ let defaultURL = (Bundle.main.object(forInfoDictionaryKey: "AppLaunchPlaceholderURL") as? String) ?? "https://example.com/app-link-coming-soon"
|
|
|
+ let urlString = (Bundle.main.object(forInfoDictionaryKey: infoKey) as? String) ?? defaultURL
|
|
|
+ guard let url = URL(string: urlString) else { return }
|
|
|
+ openInDefaultBrowser(url: url)
|
|
|
+ }
|
|
|
+
|
|
|
private func showSimpleAlert(title: String, message: String) {
|
|
|
let alert = NSAlert()
|
|
|
alert.messageText = title
|
|
|
@@ -2342,11 +2349,11 @@ private extension ViewController {
|
|
|
case .continueWithFreePlan:
|
|
|
closePaywallClicked(nil)
|
|
|
case .privacyPolicy:
|
|
|
- openSettingsLink(infoKey: "PrivacyPolicyURL")
|
|
|
+ openSettingsLinkInDefaultBrowser(infoKey: "PrivacyPolicyURL")
|
|
|
case .support:
|
|
|
- openSettingsLink(infoKey: "SupportURL")
|
|
|
+ openSettingsLinkInDefaultBrowser(infoKey: "SupportURL")
|
|
|
case .termsOfServices:
|
|
|
- openSettingsLink(infoKey: "TermsOfServiceURL")
|
|
|
+ openSettingsLinkInDefaultBrowser(infoKey: "TermsOfServiceURL")
|
|
|
}
|
|
|
}
|
|
|
|