forked from treastrain/TRETJapanNFCReader
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Package.swift
273 lines (239 loc) · 6.81 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
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
// swift-tools-version:5.2
import PackageDescription
var products: [Product] = [
.library(
name: "TRETJapanNFCReader",
targets: ["TRETJapanNFCReader"])
]
var targets: [Target] = [
.target(
name: "TRETJapanNFCReader",
dependencies: [
"TRETJapanNFCReader-Core",
"TRETJapanNFCReader-FeliCa",
"TRETJapanNFCReader-MIFARE",
"TRETJapanNFCReader-FeliCa-FCFCampus",
"TRETJapanNFCReader-FeliCa-Nanaco",
"TRETJapanNFCReader-FeliCa-NTasu",
"TRETJapanNFCReader-FeliCa-Octopus",
"TRETJapanNFCReader-FeliCa-Okica",
"TRETJapanNFCReader-FeliCa-RakutenEdy",
"TRETJapanNFCReader-FeliCa-Ryuto",
"TRETJapanNFCReader-FeliCa-TransitIC",
"TRETJapanNFCReader-FeliCa-UnivCoopICPrepaid",
"TRETJapanNFCReader-FeliCa-Waon",
"TRETJapanNFCReader-MIFARE-DriversLicense",
"TRETJapanNFCReader-MIFARE-IndividualNumber",
],
path: "Sources/TRETJapanNFCReader"),
]
// MARK: - Core
// Required for each targets
products.append(
.library(
name: "TRETJapanNFCReader-Core",
targets: ["TRETJapanNFCReader-Core"])
)
targets.append(
.target(
name: "TRETJapanNFCReader-Core",
path: "Sources/Core")
)
// MARK: - FeliCa (ISO 18092)
// Required for targets using FeliCa (ISO 18092)
products.append(
.library(
name: "TRETJapanNFCReader-FeliCa",
targets: ["TRETJapanNFCReader-FeliCa"])
)
targets.append(
.target(
name: "TRETJapanNFCReader-FeliCa",
dependencies: ["TRETJapanNFCReader-Core"],
path: "Sources/FeliCa/_FeliCa")
)
// MARK: - MIFARE (ISO 14443)
// Required for targets using MIFARE (ISO 14443)
products.append(
.library(
name: "TRETJapanNFCReader-MIFARE",
targets: ["TRETJapanNFCReader-MIFARE"])
)
targets.append(
.target(
name: "TRETJapanNFCReader-MIFARE",
dependencies: ["TRETJapanNFCReader-Core"],
path: "Sources/MIFARE/_MIFARE")
)
// MARK: - FeliCa-FCFCampus
// FCFCampus
products.append(
.library(
name: "TRETJapanNFCReader-FeliCa-FCFCampus",
targets: ["TRETJapanNFCReader-FeliCa-FCFCampus"])
)
targets.append(
.target(
name: "TRETJapanNFCReader-FeliCa-FCFCampus",
dependencies: ["TRETJapanNFCReader-FeliCa"],
path: "Sources/FeliCa/FCFCampus")
)
// MARK: - FeliCa-Nanaco
// nanaco
products.append(
.library(
name: "TRETJapanNFCReader-FeliCa-Nanaco",
targets: ["TRETJapanNFCReader-FeliCa-Nanaco"])
)
targets.append(
.target(
name: "TRETJapanNFCReader-FeliCa-Nanaco",
dependencies: ["TRETJapanNFCReader-FeliCa"],
path: "Sources/FeliCa/Nanaco")
)
// MARK: - FeliCa-NTasu
// エヌタスTカード
products.append(
.library(
name: "TRETJapanNFCReader-FeliCa-NTasu",
targets: ["TRETJapanNFCReader-FeliCa-NTasu"])
)
targets.append(
.target(
name: "TRETJapanNFCReader-FeliCa-NTasu",
dependencies: ["TRETJapanNFCReader-FeliCa"],
path: "Sources/FeliCa/NTasu")
)
// MARK: - FeliCa-Octopus
// 八達通 / Octopus
products.append(
.library(
name: "TRETJapanNFCReader-FeliCa-Octopus",
targets: ["TRETJapanNFCReader-FeliCa-Octopus"])
)
targets.append(
.target(
name: "TRETJapanNFCReader-FeliCa-Octopus",
dependencies: ["TRETJapanNFCReader-FeliCa"],
path: "Sources/FeliCa/Octopus")
)
// MARK: - FeliCa-Okica
// OKICA
products.append(
.library(
name: "TRETJapanNFCReader-FeliCa-Okica",
targets: ["TRETJapanNFCReader-FeliCa-Okica"])
)
targets.append(
.target(
name: "TRETJapanNFCReader-FeliCa-Okica",
dependencies: ["TRETJapanNFCReader-FeliCa"],
path: "Sources/FeliCa/Okica")
)
// MARK: - FeliCa-RakutenEdy
// 楽天Edy / Rakuten Edy
products.append(
.library(
name: "TRETJapanNFCReader-FeliCa-RakutenEdy",
targets: ["TRETJapanNFCReader-FeliCa-RakutenEdy"])
)
targets.append(
.target(
name: "TRETJapanNFCReader-FeliCa-RakutenEdy",
dependencies: ["TRETJapanNFCReader-FeliCa"],
path: "Sources/FeliCa/RakutenEdy")
)
// MARK: - FeliCa-Ryuto
// りゅーと / Ryuto
products.append(
.library(
name: "TRETJapanNFCReader-FeliCa-Ryuto",
targets: ["TRETJapanNFCReader-FeliCa-Ryuto"])
)
targets.append(
.target(
name: "TRETJapanNFCReader-FeliCa-Ryuto",
dependencies: ["TRETJapanNFCReader-FeliCa"],
path: "Sources/FeliCa/Ryuto")
)
// MARK: - FeliCa-TransitIC
// 交通系IC / Transit IC
products.append(
.library(
name: "TRETJapanNFCReader-FeliCa-TransitIC",
targets: ["TRETJapanNFCReader-FeliCa-TransitIC"])
)
targets.append(
.target(
name: "TRETJapanNFCReader-FeliCa-TransitIC",
dependencies: ["TRETJapanNFCReader-FeliCa"],
path: "Sources/FeliCa/TransitIC")
)
// MARK: - FeliCa-UnivCoopICPrepaid
// 大学生協ICプリペイド / Japanese Univ. Co-op IC Prepaid
products.append(
.library(
name: "TRETJapanNFCReader-FeliCa-UnivCoopICPrepaid",
targets: ["TRETJapanNFCReader-FeliCa-UnivCoopICPrepaid"])
)
targets.append(
.target(
name: "TRETJapanNFCReader-FeliCa-UnivCoopICPrepaid",
dependencies: ["TRETJapanNFCReader-FeliCa"],
path: "Sources/FeliCa/UnivCoopICPrepaid")
)
// MARK: - FeliCa-Waon
// WAON
products.append(
.library(
name: "TRETJapanNFCReader-FeliCa-Waon",
targets: ["TRETJapanNFCReader-FeliCa-Waon"])
)
targets.append(
.target(
name: "TRETJapanNFCReader-FeliCa-Waon",
dependencies: ["TRETJapanNFCReader-FeliCa"],
path: "Sources/FeliCa/Waon")
)
// MARK: - MIFARE-DriversLicense
// 日本の運転免許証 / Japanese Driver's License
products.append(
.library(
name: "TRETJapanNFCReader-MIFARE-DriversLicense",
targets: ["TRETJapanNFCReader-MIFARE-DriversLicense"])
)
targets.append(
.target(
name: "TRETJapanNFCReader-MIFARE-DriversLicense",
dependencies: [
"TRETJapanNFCReader-MIFARE"
],
path: "Sources/MIFARE/DriversLicense")
)
// MARK: - MIFARE-IndividualNumber
// マイナンバーカード / Japanese Individual Number Card (My Number Card)
products.append(
.library(
name: "TRETJapanNFCReader-MIFARE-IndividualNumber",
targets: ["TRETJapanNFCReader-MIFARE-IndividualNumber"])
)
targets.append(
.target(
name: "TRETJapanNFCReader-MIFARE-IndividualNumber",
dependencies: [
"TRETJapanNFCReader-MIFARE"
],
path: "Sources/MIFARE/IndividualNumber")
)
let package = Package(
name: "TRETJapanNFCReader",
platforms: [
.iOS("9.3"),
.watchOS(.v2),
.tvOS("9.2"),
.macOS(.v10_10),
],
products: products,
targets: targets,
swiftLanguageVersions: [.v5]
)