Răsfoiți Sursa

Fix policy/support links and open externally

Replace placeholder privacy/terms/support URLs with the production site pages and open them in the default browser from Settings and the paywall footer.

Co-authored-by: Cursor <cursoragent@cursor.com>
huzaifahayat12 2 luni în urmă
părinte
comite
e99bfb2aa6
2 a modificat fișierele cu 16 adăugiri și 9 ștergeri
  1. 3 3
      Info.plist
  2. 13 6
      meetings_app/ViewController.swift

+ 3 - 3
Info.plist

@@ -37,13 +37,13 @@
 	<key>AppShareURL</key>
 	<string>https://example.com/app-link-coming-soon</string>
 	<key>SupportURL</key>
-	<string>https://example.com/app-link-coming-soon</string>
+	<string>https://sites.google.com/view/ai-companion-for-meet/get-support</string>
 	<key>MoreAppsURL</key>
 	<string>https://example.com/app-link-coming-soon</string>
 	<key>PrivacyPolicyURL</key>
-	<string>https://example.com/app-link-coming-soon</string>
+	<string>https://sites.google.com/view/ai-companion-for-meet/privacy-policy</string>
 	<key>TermsOfServiceURL</key>
-	<string>https://example.com/app-link-coming-soon</string>
+	<string>https://sites.google.com/view/ai-companion-for-meet/terms-and-condition</string>
 	<key>RateUsURL</key>
 	<string>https://apps.apple.com/pk/app/meeting-app-for-google-meet/id6654920763?mt=12</string>
 

+ 13 - 6
meetings_app/ViewController.swift

@@ -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")
         }
     }