Moved the Amiibo API implementation to its own package #2

Merged
javier merged 12 commits from migration/api-work into main 2024-09-14 22:26:39 +00:00
Showing only changes of commit 29e526ddd9 - Show all commits

View File

@ -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(