Skip to content

Commit a5d9f39

Browse files
authored
fix: Add visionOS to platform checks (#144)
* fix: Add visionOS to platform check for native providers The `#if os(...)` guard on the native app version and bundle identifier providers was missing `os(visionOS)`, causing a build error on visionOS: "Cannot find 'nativeAppVersionProvider' in scope". * fix: Add visionOS to DeviceIdentifier platform check Same issue — the `#if os(...)` guard was missing `os(visionOS)`, causing 'data_blocking' to be unavailable on visionOS.
1 parent 5a28593 commit a5d9f39

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Sources/Validator/Default Verifiers/Hash/DeviceIdentifier.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ public enum DeviceIdentifier {}
77

88
// MARK: - iOS/tvOS/watchOS Implementation
99

10-
#if !targetEnvironment(macCatalyst) && (os(iOS) || os(watchOS) || os(tvOS))
10+
#if !targetEnvironment(macCatalyst) && (os(iOS) || os(watchOS) || os(tvOS) || os(visionOS))
1111
#if canImport(WatchKit)
1212
import WatchKit
1313
#elseif canImport(UIKit)

Sources/Validator/Default Verifiers/Meta/MetaVerifier.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ extension MetaVerifier: ReceiptVerifier {
5656
}
5757
}
5858

59-
#if os(iOS) || os(watchOS) || os(tvOS) || os(macOS) || targetEnvironment(macCatalyst)
59+
#if os(iOS) || os(watchOS) || os(tvOS) || os(macOS) || os(visionOS) || targetEnvironment(macCatalyst)
6060

6161
import Foundation
6262

0 commit comments

Comments
 (0)