Jelajahi Sumber

Align premium product IDs with synced StoreKit config and update paywall copy.

This ensures StoreKit loads the App Store Connect products correctly and keeps customer-facing plan naming consistent with the configured Lifetime offering.

Made-with: Cursor
Hussain Afzal 3 bulan lalu
induk
melakukan
bc48e9c27f

+ 2 - 2
google_apps/PremiumFeaturesView.swift

@@ -155,7 +155,7 @@ struct PremiumFeaturesView: View {
                     }
 
                     priceCard(
-                        title: "Perpetual",
+                        title: "Lifetime",
                         price: priceLine(for: .perpetual),
                         subtitle: "Own the software for lifetime",
                         badgeText: "One-time payment",
@@ -232,7 +232,7 @@ struct PremiumFeaturesView: View {
         .alert("Payment Successful", isPresented: $showingSuccessAlert) {
             Button("Done") { dismissPremiumUI() }
         } message: {
-            Text("Your \(selectedPlan == .perpetual ? "Perpetual" : "Yearly") plan has been activated.")
+            Text("Your \(selectedPlan == .perpetual ? "Lifetime" : "Yearly") plan has been activated.")
         }
     }
 

+ 2 - 2
google_apps/PremiumStore.swift

@@ -4,8 +4,8 @@ import StoreKit
 
 /// Product identifiers — create matching Non-Consumable + Auto-Renewable Subscription in App Store Connect.
 enum PremiumProductID: String, CaseIterable {
-    case perpetual = "com.mqldev.googleapps.premium.perpetual"
-    case yearly = "com.mqldev.googleapps.premium.yearly"
+    case perpetual = "com.googleapps.lifetime"
+    case yearly = "com.googleapps.yearly"
 }
 
 @MainActor

+ 23 - 17
google_apps/Products.storekit

@@ -9,45 +9,51 @@
       }
     ]
   },
-  "identifier" : "Products",
+  "identifier" : "9EB3BC83",
   "nonRenewingSubscriptions" : [
 
   ],
   "products" : [
     {
-      "displayPrice" : "99.00",
+      "displayPrice" : "34.99",
       "familyShareable" : true,
-      "internalID" : "premium_perpetual",
+      "internalID" : "6761764708",
       "localizations" : [
         {
-          "description" : "Unlock all premium features with a one-time purchase.",
-          "displayName" : "Premium — Lifetime",
+          "description" : "Unlock all premium features for lifetime",
+          "displayName" : "Lifetime",
           "locale" : "en_US"
         }
       ],
-      "productID" : "com.mqldev.googleapps.premium.perpetual",
-      "referenceName" : "Premium Perpetual",
+      "productID" : "com.googleapps.lifetime",
+      "referenceName" : "Google Apps Lifetime",
       "type" : "NonConsumable"
     }
   ],
   "settings" : {
+    "_applicationInternalID" : "6761477596",
     "_askToBuyEnabled" : false,
+    "_billingGracePeriodEnabled" : false,
+    "_billingIssuesEnabled" : false,
+    "_developerTeamID" : "GSL59TLQP5",
+    "_disableDialogs" : false,
     "_failTransactionsEnabled" : false,
+    "_lastSynchronizedDate" : 797256976.97694194,
     "_locale" : "en_US",
+    "_renewalBillingIssuesEnabled" : false,
     "_storefront" : "USA",
     "_storeKitErrors" : [
 
     ],
-    "_storeKitErrorsEnabled" : false,
     "_timeRate" : 0
   },
   "subscriptionGroups" : [
     {
-      "id" : "premium_group",
+      "id" : "22019438",
       "localizations" : [
 
       ],
-      "name" : "Premium",
+      "name" : "Google Apps Subscription",
       "subscriptions" : [
         {
           "adHocOffers" : [
@@ -56,22 +62,22 @@
           "codeOffers" : [
 
           ],
-          "displayPrice" : "79.00",
+          "displayPrice" : "24.99",
           "familyShareable" : true,
           "groupNumber" : 1,
-          "internalID" : "premium_yearly",
+          "internalID" : "6761764685",
           "introductoryOffer" : null,
           "localizations" : [
             {
-              "description" : "Unlock all premium features for one year.",
-              "displayName" : "Premium — Yearly",
+              "description" : "Unlock all premium features for 1 year",
+              "displayName" : "Yearly",
               "locale" : "en_US"
             }
           ],
-          "productID" : "com.mqldev.googleapps.premium.yearly",
+          "productID" : "com.googleapps.yearly",
           "recurringSubscriptionPeriod" : "P1Y",
-          "referenceName" : "Premium Yearly",
-          "subscriptionGroupID" : "premium_group",
+          "referenceName" : "Yearly",
+          "subscriptionGroupID" : "22019438",
           "type" : "RecurringSubscription",
           "winbackOffers" : [