From 261c3c79029f667dbb974f18b693dd6befe764bf Mon Sep 17 00:00:00 2001 From: BenTincher <138822929+BenTincher@users.noreply.github.com> Date: Mon, 18 Nov 2024 19:55:51 -0500 Subject: [PATCH] modifications to be able to work with visionOS (#82) --- Package@swift-4.0.swift | 2 +- Package@swift-4.1.swift | 2 +- Sources/CryptorRSA/CryptorRSADigest.swift | 2 +- Sources/CryptorRSA/CryptorRSAKey.swift | 2 +- Sources/CryptorRSA/CryptorRSAUtilities.swift | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Package@swift-4.0.swift b/Package@swift-4.0.swift index c2f2912..bbe4886 100644 --- a/Package@swift-4.0.swift +++ b/Package@swift-4.0.swift @@ -24,7 +24,7 @@ import PackageDescription var targetDependencies: [Target.Dependency] = [] -#if os(macOS) || os(iOS) || os(tvOS) || os(watchOS) +#if !os(Linux) let CryptoLibUrl = "https://github.com/Kitura/CommonCrypto.git" let CryptoLibVersion: Package.Dependency.Requirement = .upToNextMajor(from: "1.0.200") diff --git a/Package@swift-4.1.swift b/Package@swift-4.1.swift index c2f2912..bbe4886 100644 --- a/Package@swift-4.1.swift +++ b/Package@swift-4.1.swift @@ -24,7 +24,7 @@ import PackageDescription var targetDependencies: [Target.Dependency] = [] -#if os(macOS) || os(iOS) || os(tvOS) || os(watchOS) +#if !os(Linux) let CryptoLibUrl = "https://github.com/Kitura/CommonCrypto.git" let CryptoLibVersion: Package.Dependency.Requirement = .upToNextMajor(from: "1.0.200") diff --git a/Sources/CryptorRSA/CryptorRSADigest.swift b/Sources/CryptorRSA/CryptorRSADigest.swift index 072c870..58b9f41 100644 --- a/Sources/CryptorRSA/CryptorRSADigest.swift +++ b/Sources/CryptorRSA/CryptorRSADigest.swift @@ -18,7 +18,7 @@ // limitations under the License. // -#if os(macOS) || os(iOS) || os(tvOS) || os(watchOS) +#if !os(Linux) import CommonCrypto #elseif os(Linux) import OpenSSL diff --git a/Sources/CryptorRSA/CryptorRSAKey.swift b/Sources/CryptorRSA/CryptorRSAKey.swift index 26c1e36..a78f000 100644 --- a/Sources/CryptorRSA/CryptorRSAKey.swift +++ b/Sources/CryptorRSA/CryptorRSAKey.swift @@ -19,7 +19,7 @@ // limitations under the License. // -#if os(macOS) || os(iOS) || os(tvOS) || os(watchOS) +#if !os(Linux) import CommonCrypto #elseif os(Linux) import OpenSSL diff --git a/Sources/CryptorRSA/CryptorRSAUtilities.swift b/Sources/CryptorRSA/CryptorRSAUtilities.swift index eff4229..01539fa 100644 --- a/Sources/CryptorRSA/CryptorRSAUtilities.swift +++ b/Sources/CryptorRSA/CryptorRSAUtilities.swift @@ -19,7 +19,7 @@ // limitations under the License. // -#if os(macOS) || os(iOS) || os(tvOS) || os(watchOS) +#if !os(Linux) import CommonCrypto #elseif os(Linux) import OpenSSL