Skip to content

Commit

Permalink
use compiler compilation condition
Browse files Browse the repository at this point in the history
  • Loading branch information
fire-at-will committed Oct 2, 2024
1 parent c5ba78e commit 086dce6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Sources/Support/StoreMessageType.swift
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ extension Message.Reason {
default:
// winBackOffer message reason was added in iOS 18.0, but it's not recognized by xcode versions <16.0.
// https://developer.apple.com/documentation/xcode-release-notes/xcode-14_3-release-notes
#if swift(>=6.0)
#if compiler(>=6.0)
if #available(iOS 18.0, visionOS 2.0, *), case .winBackOffer = self {
return .winBackOffer
}
Expand Down
2 changes: 1 addition & 1 deletion Tests/StoreKitUnitTests/StoreMessageTypeTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class StoreMessagesTypeTests: TestCase {
expect(Message.Reason.priceIncreaseConsent.messageType) == .priceIncreaseConsent
expect(Message.Reason.generic.messageType) == .generic

#if swift(>=6.0)
#if compiler(>=6.0)
if #available(iOS 18.0, visionOS 2.0, *) {
expect(Message.Reason.winBackOffer.messageType) == .winBackOffer
}
Expand Down

0 comments on commit 086dce6

Please sign in to comment.