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:
+6
-2
@@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user