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.

This commit is contained in:
2025-10-05 23:52:00 +02:00
parent 783818a178
commit 40e6973681
+5 -1
View File
@@ -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-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-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-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") .package(url: "https://github.com/swiftlang/swift-docc-plugin", from: "1.1.0")
], ],
targets: [ targets: [
@@ -40,7 +41,10 @@ let package = Package(
name: MarvelService.target, name: MarvelService.target,
dependencies: [ dependencies: [
.product(name: "OpenAPIRuntime", package: "swift-openapi-runtime"), .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", path: "Sources/MarvelService",
plugins: [ plugins: [