Added the Swift OpenAPI Generator, Swift OpenAPI Runtime, and Swift OpenAPI URLSession package dependencies to the package, and integrated them to the target.

This commit is contained in:
Javier Cicchelli 2024-09-07 10:29:26 +02:00
parent c17dc6f22e
commit 29e526ddd9

View File

@ -4,6 +4,13 @@ import PackageDescription
let package = Package( let package = Package(
name: AmiiboAPI.package, name: AmiiboAPI.package,
platforms: [
.iOS(.v13),
.macOS(.v10_15),
.tvOS(.v13),
.visionOS(.v1),
.watchOS(.v6)
],
products: [ products: [
.library( .library(
name: AmiiboAPI.package, name: AmiiboAPI.package,
@ -12,12 +19,42 @@ let package = Package(
] ]
) )
], ],
dependencies: [
.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"
)
],
targets: [ targets: [
.target( .target(
name: AmiiboAPI.target, name: AmiiboAPI.target,
dependencies: [
.product(
name: "OpenAPIRuntime",
package: "swift-openapi-runtime"
),
.product(
name: "OpenAPIURLSession",
package: "swift-openapi-urlsession"
)
],
path: "Sources", path: "Sources",
resources: [ resources: [
.process("Resources") .process("../Resources")
],
plugins: [
.plugin(
name: "OpenAPIGenerator",
package: "swift-openapi-generator"
),
] ]
), ),
.testTarget( .testTarget(