Skip to content

Commit

Permalink
Re-hide enforced
Browse files Browse the repository at this point in the history
  • Loading branch information
NachoSoto committed Jul 10, 2023
1 parent 4798fbc commit a587d67
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 6 deletions.
1 change: 1 addition & 0 deletions Sources/Purchasing/Configuration.swift
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,7 @@ extension Configuration {
///
/// If verification fails when fetching ``CustomerInfo`` and/or ``EntitlementInfos``
/// ``ErrorCode/signatureVerificationFailed`` will be thrown.
@available(*, unavailable, message: "This will be supported in a future release")
case enforced = 2

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,8 @@ + (void)checkAPI {
withUsesStoreKit2IfAvailable:false] build];

if (@available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.2, *)) {
RCConfiguration *config __unused = [[[builder
withEntitlementVerificationMode:RCEntitlementVerificationModeInformational] withEntitlementVerificationMode:RCEntitlementVerificationModeEnforced]
build];
RCConfiguration *config __unused = [[builder
withEntitlementVerificationMode:RCEntitlementVerificationModeInformational] build];
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ func checkConfigurationAPI() {
if #available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.2, *) {
let _: Configuration = builder
.with(entitlementVerificationMode: .informational)
.with(entitlementVerificationMode: .enforced)
.build()
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ struct PurchaseTesterWatchApp: App {
proxyURL: nil,
useStoreKit2: true,
observerMode: false,
entitlementVerificationMode: .enforced)
entitlementVerificationMode: .informational)
)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ extension Configuration.EntitlementVerificationMode {
.informational,
// .enforced is unavailable while the feature is in beta
// It will be enabled again in a future release.
.enforced
// .enforced
]

}
Expand Down

0 comments on commit a587d67

Please sign in to comment.