Files
amiibo-service/Package.swift
T

69 lines
2.1 KiB
Swift
Raw Normal View History

// swift-tools-version: 5.10
2024-09-07 08:40:54 +02:00
2025-10-07 22:32:54 +00:00
// ===----------------------------------------------------------------------===
//
// This source file is part of the Amiibo Service open source project
//
2026-03-22 23:39:48 +00:00
// Copyright (c) 2026 Röck+Cöde VoF. and the Amiibo Service project authors
2025-10-07 22:32:54 +00:00
// Licensed under Apache license v2.0
//
// See LICENSE for license information
2025-10-07 22:32:54 +00:00
// See CONTRIBUTORS for the list of Amiibo Service project authors
//
2025-10-07 22:32:54 +00:00
// SPDX-License-Identifier: Apache-2.0
//
// ===----------------------------------------------------------------------===
2024-09-07 08:40:54 +02:00
import PackageDescription
let package = Package(
name: AmiiboService.package,
platforms: [
.iOS(.v13),
.macOS(.v10_15),
.tvOS(.v13),
.visionOS(.v1),
.watchOS(.v6)
],
2024-09-07 08:40:54 +02:00
products: [
.library(
name: AmiiboService.package,
2025-09-09 17:30:19 +00:00
targets: [AmiiboService.target]
2024-09-07 07:46:59 +00:00
)
2024-09-07 08:40:54 +02:00
],
dependencies: [
.package(url: "https://github.com/apple/swift-openapi-generator.git", exact: "1.11.0"),
2025-09-09 17:30:19 +00:00
.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/swiftlang/swift-docc-plugin", from: "1.1.0"),
],
2024-09-07 08:40:54 +02:00
targets: [
.target(
name: AmiiboService.target,
dependencies: [
2025-09-09 17:30:19 +00:00
.product(name: "OpenAPIRuntime", package: "swift-openapi-runtime"),
.product(name: "OpenAPIURLSession", package: "swift-openapi-urlsession")
],
path: "Sources/AmiiboService",
plugins: [
2025-09-09 17:30:19 +00:00
.plugin(name: "OpenAPIGenerator", package: "swift-openapi-generator"),
]
2024-09-07 07:46:59 +00:00
),
2024-09-07 08:40:54 +02:00
.testTarget(
name: AmiiboService.test,
2024-09-07 07:46:59 +00:00
dependencies: [
.byName(name: AmiiboService.target)
2024-09-07 07:46:59 +00:00
],
path: "Tests/AmiiboService"
2024-09-07 08:40:54 +02:00
),
]
)
2024-09-07 07:46:59 +00:00
// MARK: - Constants
enum AmiiboService {
static let package = "amiibo-service"
static let target = "AmiiboService"
static let test = "\(AmiiboService.target)Tests"
2024-09-07 07:46:59 +00:00
}