Преглед изворни кода

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 пре 3 недеља
родитељ
комит
275ab69a15

+ 3 - 2
App for Indeed/AppLegalURLs.swift

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

+ 2 - 2
App for Indeed/Paywall.storekit

@@ -1,11 +1,11 @@
1 1
 {
2 2
   "appPolicies" : {
3
-    "eula" : "https://sites.google.com/view/app-for-indeed/terms",
3
+    "eula" : "https://sites.google.com/view/app-for-indeed/terms-of-service",
4 4
     "policies" : [
5 5
       {
6 6
         "locale" : "en_US",
7 7
         "policyText" : "",
8
-        "policyURL" : "https://sites.google.com/view/app-for-indeed/privacy"
8
+        "policyURL" : "https://sites.google.com/view/app-for-indeed/privacy-policy"
9 9
       }
10 10
     ]
11 11
   },

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

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