Ver código fonte

Set Mac App Store Apple ID so review and download links work.

Co-authored-by: Cursor <cursoragent@cursor.com>
AhtashamShahzad1 3 semanas atrás
pai
commit
63517818b2
2 arquivos alterados com 8 adições e 3 exclusões
  1. 7 2
      smart_printer/AppStoreConfig.swift
  2. 1 1
      website/index.html

+ 7 - 2
smart_printer/AppStoreConfig.swift

@@ -9,8 +9,13 @@ enum AppStoreConfig {
     static let bundleIdentifier = "com.printer-app-all-printers"
 
     /// Numeric Mac App Store ID from App Store Connect (General → App Information → Apple ID).
-    /// Example: "1234567890". Leave empty until the app is live on the App Store.
-    static let appStoreID = ""
+    static let appStoreID = "6785834649"
+
+    /// Mac App Store listing URL.
+    static var appStoreURL: URL? {
+        guard !appStoreID.isEmpty else { return nil }
+        return URL(string: "https://apps.apple.com/app/id\(appStoreID)")
+    }
 
     /// Direct write-review link for the manual Settings action.
     static var appStoreReviewURL: URL? {

+ 1 - 1
website/index.html

@@ -381,7 +381,7 @@
     <div class="cta">
       <h2>Ready to print smarter?</h2>
       <p>Download Printer App - All Printers from the Mac App Store and start printing in seconds.</p>
-      <a class="cta-btn" href="https://apps.apple.com" target="_blank" rel="noopener">Get Printer App - All Printers</a>
+      <a class="cta-btn" href="https://apps.apple.com/app/id6785834649" target="_blank" rel="noopener">Get Printer App - All Printers</a>
     </div>
 
     <nav class="footer-links" aria-label="Legal and support">