-
Notifications
You must be signed in to change notification settings - Fork 58
/
Package.swift
90 lines (82 loc) · 2.01 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
// swift-tools-version: 5.5
import PackageDescription
let package = Package(
name: "QRCode",
platforms: [
.macOS(.v10_13),
.iOS(.v11),
.tvOS(.v13),
.watchOS(.v6)
],
products: [
// QR Code generation library
.library(name: "QRCode", targets: ["QRCode"]),
.library(name: "QRCodeStatic", type: .static, targets: ["QRCode"]),
.library(name: "QRCodeDynamic", type: .dynamic, targets: ["QRCode"]),
// QR Code video detection library
.library(name: "QRCodeDetector", type: .dynamic, targets: ["QRCodeDetector"]),
],
dependencies: [
// Swift argument parser is used for the command-line application
.package(
name: "swift-argument-parser",
url: "https://github.com/apple/swift-argument-parser",
.upToNextMinor(from: "0.4.3")
),
// A 3rd-party QR code generation library for watchOS, forked from https://github.com/fwcd/swift-qrcode-generator
.package(
url: "https://github.com/dagronf/swift-qrcode-generator",
.upToNextMinor(from: "2.0.2")
),
// A microframework for cleaning handling image conversion
.package(
url: "https://github.com/dagronf/SwiftImageReadWrite",
.upToNextMinor(from: "1.9.1")
),
],
targets: [
// The QRCode core library
.target(
name: "QRCode",
dependencies: [
"SwiftImageReadWrite",
.product(
name: "QRCodeGenerator",
package: "swift-qrcode-generator"
),
],
resources: [
.copy("PrivacyInfo.xcprivacy"),
]
// ,
// swiftSettings: [
// .enableUpcomingFeature("ExistentialAny")
// ]
),
// The QR code detector library
.target(
name: "QRCodeDetector",
resources: [
.copy("PrivacyInfo.xcprivacy"),
]),
// the qrcodegen command-line tool
.executableTarget(
name: "qrcodegen",
dependencies: [
"QRCode",
.product(name: "ArgumentParser", package: "swift-argument-parser"),
],
resources: [
.copy("PrivacyInfo.xcprivacy"),
]
),
// testing target
.testTarget(
name: "QRCodeTests",
dependencies: ["QRCode"],
resources: [
.process("Resources"),
]
),
]
)