mirror of
https://github.com/encounter/JSONAPI.git
synced 2026-03-30 11:18:38 -07:00
56 lines
1.8 KiB
Swift
56 lines
1.8 KiB
Swift
// swift-tools-version:4.2
|
|
// The swift-tools-version declares the minimum version of Swift required to build this package.
|
|
|
|
import PackageDescription
|
|
|
|
let package = Package(
|
|
name: "JSONAPI",
|
|
products: [
|
|
.library(
|
|
name: "JSONAPI",
|
|
targets: ["JSONAPI"]),
|
|
.library(
|
|
name: "JSONAPITesting",
|
|
targets: ["JSONAPITesting"]),
|
|
.library(
|
|
name: "JSONAPIArbitrary",
|
|
targets: ["JSONAPIArbitrary"]),
|
|
.library(
|
|
name: "JSONAPIOpenAPI",
|
|
targets: ["JSONAPIOpenAPI"])
|
|
],
|
|
dependencies: [
|
|
.package(url: "https://github.com/mattpolzin/Poly.git", from: "1.0.0"),
|
|
.package(url: "https://github.com/mattpolzin/Sampleable.git", from: "1.0.0"),
|
|
.package(url: "https://github.com/Flight-School/AnyCodable.git", from: "0.1.0"),
|
|
.package(url: "https://github.com/typelift/SwiftCheck.git", from: "0.11.0")
|
|
],
|
|
targets: [
|
|
.target(
|
|
name: "JSONAPI",
|
|
dependencies: ["Poly"]),
|
|
.target(
|
|
name: "JSONAPITesting",
|
|
dependencies: ["JSONAPI"]),
|
|
.target(
|
|
name: "JSONAPIArbitrary",
|
|
dependencies: ["JSONAPI", "SwiftCheck"]),
|
|
.target(
|
|
name: "JSONAPIOpenAPI",
|
|
dependencies: ["JSONAPI", "AnyCodable", "JSONAPIArbitrary", "Sampleable"]),
|
|
.testTarget(
|
|
name: "JSONAPITests",
|
|
dependencies: ["JSONAPI", "JSONAPITesting"]),
|
|
.testTarget(
|
|
name: "JSONAPITestingTests",
|
|
dependencies: ["JSONAPI", "JSONAPITesting"]),
|
|
.testTarget(
|
|
name: "JSONAPIArbitraryTests",
|
|
dependencies: ["JSONAPI", "SwiftCheck", "JSONAPIArbitrary"]),
|
|
.testTarget(
|
|
name: "JSONAPIOpenAPITests",
|
|
dependencies: ["JSONAPI", "JSONAPIOpenAPI"])
|
|
],
|
|
swiftLanguageVersions: [.v4_2]
|
|
)
|