Procházet zdrojové kódy

Fix legal URLs and add Contact row in Settings.

Point app and StoreKit config at Google Sites privacy-policy, terms-of-service, and contact paths that match the published site structure.

Co-authored-by: Cursor <cursoragent@cursor.com>
AhtashamShahzad1 před 2 měsíci
rodič
revize
275ab69a15

+ 3 - 2
App for Indeed/AppLegalURLs.swift

@@ -11,9 +11,10 @@ enum AppLegalURLs {
     private static let siteRoot = "https://sites.google.com/view/app-for-indeed"
 
     static let marketingHome = URL(string: "\(siteRoot)/home")!
-    static let privacyPolicy = URL(string: "\(siteRoot)/privacy")!
-    static let termsOfUse = URL(string: "\(siteRoot)/terms")!
+    static let privacyPolicy = URL(string: "\(siteRoot)/privacy-policy")!
+    static let termsOfUse = URL(string: "\(siteRoot)/terms-of-service")!
     static let support = URL(string: "\(siteRoot)/support")!
+    static let contact = URL(string: "\(siteRoot)/contact")!
 
     /// Opens the URL in Safari when available; otherwise uses the system default browser.
     static func openInSafari(_ url: URL) {

+ 2 - 2
App for Indeed/Paywall.storekit

@@ -1,11 +1,11 @@
 {
   "appPolicies" : {
-    "eula" : "https://sites.google.com/view/app-for-indeed/terms",
+    "eula" : "https://sites.google.com/view/app-for-indeed/terms-of-service",
     "policies" : [
       {
         "locale" : "en_US",
         "policyText" : "",
-        "policyURL" : "https://sites.google.com/view/app-for-indeed/privacy"
+        "policyURL" : "https://sites.google.com/view/app-for-indeed/privacy-policy"
       }
     ]
   },

+ 5 - 0
App for Indeed/Views/DashboardView.swift

@@ -1523,6 +1523,7 @@ final class DashboardView: NSView, NSTextFieldDelegate, NSSharingServicePickerDe
         let aboutSection = makeSettingsSection(rows: [
             makeSettingsRow(title: "Website", systemImage: "globe", accessory: nil, tapAction: #selector(didTapWebsite)),
             makeSettingsRow(title: "Support", systemImage: "questionmark.circle", accessory: nil, tapAction: #selector(didTapSupport)),
+            makeSettingsRow(title: "Contact", systemImage: "envelope", accessory: nil, tapAction: #selector(didTapContact)),
             makeSettingsRow(title: "Terms of Use", systemImage: "doc.text", accessory: nil, tapAction: #selector(didTapTermsOfUse)),
             makeSettingsRow(title: "Privacy Policy", systemImage: "shield", accessory: nil, tapAction: #selector(didTapPrivacyPolicy))
         ])
@@ -1884,6 +1885,10 @@ final class DashboardView: NSView, NSTextFieldDelegate, NSSharingServicePickerDe
         AppLegalURLs.openInSafari(AppLegalURLs.support)
     }
 
+    @objc private func didTapContact() {
+        AppLegalURLs.openInSafari(AppLegalURLs.contact)
+    }
+
     @objc private func didTapTermsOfUse() {
         AppLegalURLs.openInSafari(AppLegalURLs.termsOfUse)
     }