Repository navigation
Expand file tree
/
Copy pathPackage.swift
More file actions
42 lines (40 loc) 路 1.44 KB
/
Copy pathPackage.swift
File metadata and controls
42 lines (40 loc) 路 1.44 KB
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
// swift-tools-version: 6.0
import PackageDescription
let package = Package(
name: "aps",
platforms: [
.macOS(.v14)
],
products: [
.executable(
name: "aps",
targets: ["aps"]
)
],
dependencies: [
.package(url: "https://github.com/0xLeif/AppState", from: "3.0.0"),
.package(url: "https://github.com/apple/swift-argument-parser", from: "1.5.0"),
// CryptoExtras exposes scrypt in swift-crypto 4.x. Cap below 4.4 because
// 4.4+ requires Swift tools 6.1 while aps keeps its Swift 6.0 floor.
.package(url: "https://github.com/apple/swift-crypto", "4.0.0"..<"4.4.0"),
// Cap swift-asn1 below 1.7: 1.7+ requires Swift tools 6.1, and the 6.1/6.2
// Linux toolchains ship an Observation linker bug (swift::threading::fatal).
.package(url: "https://github.com/apple/swift-asn1", "1.1.0"..<"1.7.0")
],
targets: [
.executableTarget(
name: "aps",
dependencies: [
.product(name: "AppState", package: "AppState"),
.product(name: "ArgumentParser", package: "swift-argument-parser"),
.product(name: "Crypto", package: "swift-crypto"),
.product(name: "CryptoExtras", package: "swift-crypto")
]
),
.testTarget(
name: "apsTests",
dependencies: ["aps"]
)
],
swiftLanguageModes: [.v6]
)