Skip to content

Commit

Permalink
[DO NOT MERGE] TrialOrIntroPriceEligibilityChecker: only use SK2 if…
Browse files Browse the repository at this point in the history
… explicitly enabled

Temporary change to debug #1893.
  • Loading branch information
NachoSoto committed Sep 8, 2022
1 parent 2c598bb commit 0ad5083
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/Purchasing/TrialOrIntroPriceEligibilityChecker.swift
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ class TrialOrIntroPriceEligibilityChecker {
return
}

// Note: this uses SK2 (unless it's explicitly disabled) because its implementation is more accurate.
if #available(iOS 15.0, tvOS 15.0, watchOS 8.0, macOS 12.0, *), self.systemInfo.storeKit2Setting != .disabled {
if #available(iOS 15.0, tvOS 15.0, watchOS 8.0, macOS 12.0, *),
self.systemInfo.storeKit2Setting == .enabledForCompatibleDevices {
_ = Task<Void, Never> {
do {
completion(try await sk2CheckEligibility(productIdentifiers))
Expand Down

0 comments on commit 0ad5083

Please sign in to comment.