From 29e526ddd93bee7188acf036c7b80489b39d3907 Mon Sep 17 00:00:00 2001 From: Javier Cicchelli Date: Sat, 7 Sep 2024 10:29:26 +0200 Subject: [PATCH] Added the Swift OpenAPI Generator, Swift OpenAPI Runtime, and Swift OpenAPI URLSession package dependencies to the package, and integrated them to the target. --- Package.swift | 39 ++++++++++++++++++++++++++++++++++++++- 1 file changed, 38 insertions(+), 1 deletion(-) diff --git a/Package.swift b/Package.swift index 36d72da..0c5dbb3 100644 --- a/Package.swift +++ b/Package.swift @@ -4,6 +4,13 @@ import PackageDescription let package = Package( name: AmiiboAPI.package, + platforms: [ + .iOS(.v13), + .macOS(.v10_15), + .tvOS(.v13), + .visionOS(.v1), + .watchOS(.v6) + ], products: [ .library( 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: [ .target( name: AmiiboAPI.target, + dependencies: [ + .product( + name: "OpenAPIRuntime", + package: "swift-openapi-runtime" + ), + .product( + name: "OpenAPIURLSession", + package: "swift-openapi-urlsession" + ) + ], path: "Sources", resources: [ - .process("Resources") + .process("../Resources") + ], + plugins: [ + .plugin( + name: "OpenAPIGenerator", + package: "swift-openapi-generator" + ), ] ), .testTarget(