// swift-tools-version:5.1 // The swift-tools-version declares the minimum version of Swift required to build this package. import PackageDescription let package = Package( name: "JSONAPI", platforms: [ .macOS(.v10_10), .iOS(.v10) ], products: [ .library( name: "JSONAPI", targets: ["JSONAPI"]), .library( name: "JSONAPITesting", targets: ["JSONAPITesting"]) ], dependencies: [ .package(url: "https://github.com/mattpolzin/Poly.git", .upToNextMajor(from: "2.3.1")), ], targets: [ .target( name: "JSONAPI", dependencies: ["Poly"]), .target( name: "JSONAPITesting", dependencies: ["JSONAPI"]), .testTarget( name: "JSONAPITests", dependencies: ["JSONAPI", "JSONAPITesting"]), .testTarget( name: "JSONAPITestingTests", dependencies: ["JSONAPI", "JSONAPITesting"]) ], swiftLanguageVersions: [.v5] )