This PR contains the work done to setup this Swift package, so development can start from here. Reviewed-on: #1 Co-authored-by: Javier Cicchelli <javier@rock-n-code.com> Co-committed-by: Javier Cicchelli <javier@rock-n-code.com>
37 lines
729 B
Swift
37 lines
729 B
Swift
// swift-tools-version: 5.9
|
|
|
|
import PackageDescription
|
|
|
|
let package = Package(
|
|
name: AmiiboAPI.package,
|
|
products: [
|
|
.library(
|
|
name: AmiiboAPI.package,
|
|
targets: [
|
|
AmiiboAPI.target
|
|
]
|
|
)
|
|
],
|
|
targets: [
|
|
.target(
|
|
name: AmiiboAPI.target,
|
|
path: "Sources"
|
|
),
|
|
.testTarget(
|
|
name: AmiiboAPI.test,
|
|
dependencies: [
|
|
.byName(name: AmiiboAPI.target)
|
|
],
|
|
path: "Tests"
|
|
),
|
|
]
|
|
)
|
|
|
|
// MARK: - Constants
|
|
|
|
enum AmiiboAPI {
|
|
static let package = "amiibo-api"
|
|
static let target = "AmiiboAPI"
|
|
static let test = "\(AmiiboAPI.target)Tests"
|
|
}
|