-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPackage.swift
81 lines (79 loc) · 2.69 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
// swift-tools-version: 6.0
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
let package = Package(
name: "GitHubAppsToken",
platforms: [.macOS(.v12)],
products: [
.executable(
name: "github-apps-token",
targets: ["GitHubAppsTokenCLI"]
)
],
dependencies: [
.package(url: "https://github.com/kean/Get.git", .upToNextMajor(from: "2.2.1")),
.package(url: "https://github.com/vapor/jwt-kit.git", .upToNextMajor(from: "4.13.5")),
.package(url: "https://github.com/kateinoigakukun/StubKit.git", .upToNextMajor(from: "0.1.7")),
.package(url: "https://github.com/apple/swift-argument-parser.git", .upToNextMajor(from: "1.5.0")),
.package(url: "https://github.com/pointfreeco/swift-tagged.git", .upToNextMajor(from: "0.10.0")),
],
targets: [
.executableTarget(
name: "GitHubAppsTokenCLI",
dependencies: [
.product(name: "ArgumentParser", package: "swift-argument-parser"),
"Entities",
"GitHubAppsTokenCore",
]
),
.target(
name: "GitHubAppsTokenCore",
dependencies: [
.product(name: "Get", package: "Get"),
.product(name: "JWTKit", package: "jwt-kit"),
"Entities",
"GitHubAppsAPI",
],
linkerSettings: [
.linkedLibrary("crypto", .when(platforms: [.linux])),
.linkedLibrary("ssl", .when(platforms: [.linux])),
.linkedLibrary("z", .when(platforms: [.linux])),
]
),
.target(
name: "Entities",
dependencies: [
.product(name: "Tagged", package: "swift-tagged"),
]
),
.target(
name: "GitHubAppsAPI",
dependencies: [
.product(name: "Get", package: "Get"),
.product(name: "Tagged", package: "swift-tagged"),
"Entities",
]
),
.testTarget(
name: "EntitiesTests",
dependencies: [
"Entities",
]
),
.testTarget(
name: "GitHubAppsTokenCLITests",
dependencies: [
"GitHubAppsTokenCLI",
]
),
.testTarget(
name: "GitHubAppsTokenCoreTests",
dependencies: [
.product(name: "StubKit", package: "StubKit"),
"GitHubAppsAPI",
"GitHubAppsTokenCore",
],
resources: [.process("Resources")]
),
]
)