Skip to content

Commit

Permalink
Merge pull request #77 from Hengyu/main
Browse files Browse the repository at this point in the history
Update `subscriptionHelper` declaration
  • Loading branch information
russell-archer authored May 4, 2024
2 parents 3141dc6 + 1ccf6ff commit e7fd228
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions Sources/StoreHelper/Core/StoreHelper.swift
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ public class StoreHelper: ObservableObject {
public private(set) var isAppStoreAvailable = false

/// Subscription-related helper methods.
public var subscriptionHelper: SubscriptionHelper!
public private(set) lazy var subscriptionHelper: SubscriptionHelper = .init(storeHelper: self)

/// True if StoreHelper has been initialized correctly by calling start().
public var hasStarted: Bool { transactionListener != nil && isAppStoreAvailable }

Expand Down Expand Up @@ -212,9 +212,6 @@ public class StoreHelper: ObservableObject {
// Add a helper for StoreKit1-based direct purchases from the app store (IAP promotions)
appStoreHelper = AppStoreHelper(storeHelper: self)

// Initialize our subscription helper
subscriptionHelper = SubscriptionHelper(storeHelper: self)

// Read our list of product ids
productIds = storeConfiguration.readConfigFile()

Expand Down

0 comments on commit e7fd228

Please sign in to comment.