-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathPackage.swift
26 lines (24 loc) · 1.1 KB
/
Package.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// swift-tools-version:5.3
import PackageDescription
let package = Package(
name: "TripKit",
platforms: [
.macOS(.v10_13), .iOS(.v12), .tvOS(.v12), .watchOS(.v5)
],
products: [
.library(name: "TripKit", targets: ["TripKit"])
],
dependencies: [
.package(name: "Gzip", url: "https://github.com/1024jp/GzipSwift", from: "5.1.1"),
.package(name: "SwiftyJSON", url: "https://github.com/SwiftyJSON/SwiftyJSON", from: "5.0.0"),
.package(name: "SWXMLHash", url: "https://github.com/drmohundro/SWXMLHash", from: "7.0.0"),
],
targets: [
.target(name: "TripKit", dependencies: ["Gzip", "SwiftyJSON", "SWXMLHash"], resources: [.process("Resources")]),
// Tests
.target(name: "TestsCommon", dependencies: ["TripKit"], path: "Tests/TestsCommon", resources: [.copy("Resources/Test Cases"), .copy("Resources/Fixtures")]),
.testTarget(name: "StaticTripKitTests", dependencies: ["TripKit", "TestsCommon"]),
.testTarget(name: "TripKitTests", dependencies: ["TripKit", "TestsCommon"]),
],
swiftLanguageVersions: [.v5]
)