-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathPackage.swift
66 lines (62 loc) · 1.93 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
// swift-tools-version: 5.8.1
// The swift-tools-version declares the minimum version of Swift required to build this package.
@preconcurrency import PackageDescription
#if TUIST
import ProjectDescription
let packageSettings = PackageSettings(
baseSettings: .settings(base: ["SWIFT_STRICT_CONCURRENCY": "complete"])
)
#endif
let package = Package(
name: "FileSystem",
platforms: [
.macOS("13.0"),
.iOS("13.0"),
],
products: [
.library(
name: "FileSystem",
type: .static,
targets: ["FileSystem"]
),
],
dependencies: [
.package(url: "https://github.com/tuist/Path", .upToNextMajor(from: "0.3.8")),
.package(url: "https://github.com/apple/swift-nio", .upToNextMajor(from: "2.79.0")),
.package(url: "https://github.com/apple/swift-log", .upToNextMajor(from: "1.6.2")),
.package(url: "https://github.com/weichsel/ZIPFoundation", .upToNextMajor(from: "0.9.19")),
],
targets: [
.target(
name: "FileSystem",
dependencies: [
"Glob",
.product(name: "_NIOFileSystem", package: "swift-nio"),
.product(name: "Path", package: "Path"),
.product(name: "Logging", package: "swift-log"),
.product(name: "ZIPFoundation", package: "ZIPFoundation"),
],
swiftSettings: [
.define("MOCKING", .when(configuration: .debug)),
]
),
.testTarget(
name: "FileSystemTests",
dependencies: [
"FileSystem",
]
),
.target(
name: "Glob",
swiftSettings: [
.enableExperimentalFeature("StrictConcurrency"),
]
),
.testTarget(
name: "GlobTests",
dependencies: [
"Glob",
]
),
]
)