-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathPackage.swift
144 lines (140 loc) · 4.95 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
// swift-tools-version: 5.9
import PackageDescription
let package = Package(
name: "AppStoreConnect",
platforms: [
.iOS(.v16),
.macOS(.v13),
.tvOS(.v16),
.watchOS(.v9),
],
products: [
.library(
name: "AppStoreConnect",
targets: ["AppStoreConnect", "AppStoreAPI"]),
.library(
name: "EnterpriseProgram",
targets: ["AppStoreConnect", "EnterpriseAPI"]),
],
dependencies: [
.package(url: "https://github.com/apple/swift-argument-parser", from: "1.3.0"),
.package(url: "https://github.com/apple/swift-crypto.git", .upToNextMajor(from: "3.2.0")),
.package(url: "https://github.com/CreateAPI/URLQueryEncoder.git", .upToNextMajor(from: "0.2.1")),
.package(url: "https://github.com/apple/swift-docc-plugin", from: "1.3.0"),
],
targets: [
.target(
name: "AppStoreConnect",
dependencies: [
.product(name: "Crypto", package: "swift-crypto")
],
exclude: ["BUILD.bazel"]),
.target(
name: "AppStoreAPI",
dependencies: [
"AppStoreConnect",
.product(name: "URLQueryEncoder", package: "URLQueryEncoder"),
],
exclude: ["BUILD.bazel"]),
.target(
name: "EnterpriseAPI",
dependencies: [
"AppStoreConnect",
.product(name: "URLQueryEncoder", package: "URLQueryEncoder"),
],
exclude: ["BUILD.bazel"]),
// Examples
.executableTarget(
name: "invite_beta_tester",
dependencies: [
"AppStoreAPI",
"AppStoreConnect",
"Utilities",
.product(name: "ArgumentParser", package: "swift-argument-parser"),
],
path: "Examples/invite_beta_tester",
exclude: ["BUILD.bazel"]),
.executableTarget(
name: "invite_user",
dependencies: [
"AppStoreAPI",
"AppStoreConnect",
"EnterpriseAPI",
"Utilities",
.product(name: "ArgumentParser", package: "swift-argument-parser"),
],
path: "Examples/invite_user",
exclude: ["BUILD.bazel"]),
.executableTarget(
name: "list_builds",
dependencies: [
"AppStoreAPI",
"AppStoreConnect",
"Utilities",
.product(name: "ArgumentParser", package: "swift-argument-parser"),
],
path: "Examples/list_builds",
exclude: ["BUILD.bazel"]),
.executableTarget(
name: "register_device",
dependencies: [
"AppStoreAPI",
"AppStoreConnect",
"Utilities",
.product(name: "ArgumentParser", package: "swift-argument-parser"),
],
path: "Examples/register_device",
exclude: ["BUILD.bazel"]),
.executableTarget(
name: "sales_finance_reports",
dependencies: [
"AppStoreAPI",
"AppStoreConnect",
"Utilities",
.product(name: "ArgumentParser", package: "swift-argument-parser"),
],
path: "Examples/sales_finance_reports",
exclude: ["BUILD.bazel"]),
.executableTarget(
name: "upload_preview",
dependencies: [
"AppStoreAPI",
"AppStoreConnect",
"Utilities",
.product(name: "ArgumentParser", package: "swift-argument-parser"),
.product(name: "Crypto", package: "swift-crypto"),
],
path: "Examples/upload_preview",
exclude: ["BUILD.bazel"]),
.executableTarget(
name: "upload_screenshot",
dependencies: [
"AppStoreAPI",
"AppStoreConnect",
"Utilities",
.product(name: "ArgumentParser", package: "swift-argument-parser"),
.product(name: "Crypto", package: "swift-crypto"),
],
path: "Examples/upload_screenshot",
exclude: ["BUILD.bazel"]),
.target(
name: "Utilities",
dependencies: ["AppStoreConnect"],
path: "Examples/Utilities",
exclude: ["BUILD.bazel"]),
// Tests
.target(
name: "Mocks",
dependencies: ["AppStoreConnect"],
path: "Tests/Mocks",
exclude: ["BUILD.bazel"]),
.testTarget(
name: "AppStoreConnectTests",
dependencies: ["AppStoreConnect", "Mocks"],
exclude: ["BUILD.bazel"]),
.testTarget(
name: "AppStoreAPITests",
dependencies: ["AppStoreAPI", "AppStoreConnect", "Mocks"],
exclude: ["BUILD.bazel"]),
]
)