-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathPackage.swift
51 lines (46 loc) · 1.56 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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
// swift-tools-version:5.3
import PackageDescription
let package = Package(
name: "PublicHolidays",
platforms: [.macOS(.v10_15)],
products: [
.library(name: "PublicHolidays", targets: ["PublicHolidays"]),
.executable(name: "PublicHolidaysUpdater", targets: ["PublicHolidaysUpdater"]),
],
dependencies: [
// Simple way to identify what is different between 2 instances of any type. Must have for TDD.
.package(name: "Difference", url: "https://github.com/krzysztofzablocki/Difference.git", .branch("master")),
// Handy Swift features that didn't make it into the Swift standard library.
.package(name: "HandySwift", url: "https://github.com/Flinesoft/HandySwift.git", from: "3.2.0"),
// Micro version of the Moya network abstraction layer written in Swift.
.package(name: "Microya", url: "https://github.com/Flinesoft/Microya.git", .branch("main")),
// Straightforward, type-safe argument parsing for Swift
.package(name: "swift-argument-parser", url: "https://github.com/apple/swift-argument-parser.git", from: "0.2.2"),
],
targets: [
.target(
name: "PublicHolidays",
dependencies: [
"HandySwift"
],
resources: [
.copy("JsonData")
]
),
.testTarget(
name: "PublicHolidaysTests",
dependencies: [
"Difference",
"PublicHolidays",
]
),
.target(
name: "PublicHolidaysUpdater",
dependencies: [
.product(name: "ArgumentParser", package: "swift-argument-parser"),
"Microya",
"PublicHolidays",
]
),
]
)