From 40e6973681f54983562a8bf7c05cd3dea1e4ada2 Mon Sep 17 00:00:00 2001 From: Javier Cicchelli Date: Sun, 5 Oct 2025 23:52:00 +0200 Subject: [PATCH] Added the swift-crypto package to the dependencies in the Package.swift file, and also included it into the library target for non-apple environments. --- Package.swift | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Package.swift b/Package.swift index c8214a11..dfa272cc 100644 --- a/Package.swift +++ b/Package.swift @@ -33,6 +33,7 @@ let package = Package( .package(url: "https://github.com/apple/swift-openapi-generator.git", from: "1.3.0"), .package(url: "https://github.com/apple/swift-openapi-runtime", from: "1.5.0"), .package(url: "https://github.com/apple/swift-openapi-urlsession", from: "1.0.2"), + .package(url: "https://github.com/apple/swift-crypto.git", from: "3.13.0"), .package(url: "https://github.com/swiftlang/swift-docc-plugin", from: "1.1.0") ], targets: [ @@ -40,7 +41,10 @@ let package = Package( name: MarvelService.target, dependencies: [ .product(name: "OpenAPIRuntime", package: "swift-openapi-runtime"), - .product(name: "OpenAPIURLSession", package: "swift-openapi-urlsession") + .product(name: "OpenAPIURLSession", package: "swift-openapi-urlsession"), + .product(name: "Crypto", package: "swift-crypto", condition: .when(platforms: [ + .android, .linux, .openbsd, .windows + ])) ], path: "Sources/MarvelService", plugins: [ @@ -63,4 +67,4 @@ enum MarvelService { static let package = "marvel-service" static let target = "MarvelService" static let test = "\(MarvelService.target)Tests" -} \ No newline at end of file +}