Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DO NOT MERGE] TrialOrIntroPriceEligibilityChecker: only use SK2 if explicitly enabled #1894

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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