-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPackage.swift
More file actions
149 lines (142 loc) · 5.51 KB
/
Package.swift
File metadata and controls
149 lines (142 loc) · 5.51 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
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
// swift-tools-version: 6.2
// The swift-tools-version declares the minimum version of Swift required to build this package.
// swiftlint:disable explicit_acl explicit_top_level_acl
import PackageDescription
// MARK: - Swift Settings Configuration
let swiftSettings: [SwiftSetting] = [
// Swift 6.2 Upcoming Features (not yet enabled by default)
// SE-0335: Introduce existential `any`
.enableUpcomingFeature("ExistentialAny"),
// SE-0409: Access-level modifiers on import declarations
.enableUpcomingFeature("InternalImportsByDefault"),
// SE-0444: Member import visibility (Swift 6.1+)
.enableUpcomingFeature("MemberImportVisibility"),
// SE-0413: Typed throws
.enableUpcomingFeature("FullTypedThrows"),
// Experimental Features (stable enough for use)
// SE-0426: BitwiseCopyable protocol
.enableExperimentalFeature("BitwiseCopyable"),
// SE-0432: Borrowing and consuming pattern matching for noncopyable types
.enableExperimentalFeature("BorrowingSwitch"),
// Extension macros
.enableExperimentalFeature("ExtensionMacros"),
// Freestanding expression macros
.enableExperimentalFeature("FreestandingExpressionMacros"),
// Init accessors
.enableExperimentalFeature("InitAccessors"),
// Isolated any types
.enableExperimentalFeature("IsolatedAny"),
// Move-only classes
.enableExperimentalFeature("MoveOnlyClasses"),
// Move-only enum deinits
.enableExperimentalFeature("MoveOnlyEnumDeinits"),
// SE-0429: Partial consumption of noncopyable values
.enableExperimentalFeature("MoveOnlyPartialConsumption"),
// Move-only resilient types
.enableExperimentalFeature("MoveOnlyResilientTypes"),
// Move-only tuples
.enableExperimentalFeature("MoveOnlyTuples"),
// SE-0427: Noncopyable generics
.enableExperimentalFeature("NoncopyableGenerics"),
// One-way closure parameters
// .enableExperimentalFeature("OneWayClosureParameters"),
// Raw layout types
.enableExperimentalFeature("RawLayout"),
// Reference bindings
.enableExperimentalFeature("ReferenceBindings"),
// SE-0430: sending parameter and result values
.enableExperimentalFeature("SendingArgsAndResults"),
// Symbol linkage markers
.enableExperimentalFeature("SymbolLinkageMarkers"),
// Transferring args and results
.enableExperimentalFeature("TransferringArgsAndResults"),
// SE-0393: Value and Type Parameter Packs
.enableExperimentalFeature("VariadicGenerics"),
// Warn unsafe reflection
.enableExperimentalFeature("WarnUnsafeReflection"),
// Enhanced compiler checking
// .unsafeFlags([
// // Enable concurrency warnings
// "-warn-concurrency",
// // Enable actor data race checks
// "-enable-actor-data-race-checks",
// // Complete strict concurrency checking
// "-strict-concurrency=complete",
// // Enable testing support
// "-enable-testing",
// // Warn about functions with >100 lines
// "-Xfrontend", "-warn-long-function-bodies=100",
// // Warn about slow type checking expressions
// "-Xfrontend", "-warn-long-expression-type-checking=100"
// ])
]
let package = Package(
name: "BushelCloud",
platforms: [
.macOS(.v15),
.iOS(.v18),
.watchOS(.v11),
.tvOS(.v18),
.visionOS(.v2)
],
products: [
.library(name: "ConfigKeyKit", targets: ["ConfigKeyKit"]),
.library(name: "BushelCloudKit", targets: ["BushelCloudKit"]),
.executable(name: "bushel-cloud", targets: ["BushelCloudCLI"])
],
dependencies: [
.package(url: "https://github.com/brightdigit/MistKit.git", from: "1.0.0-alpha.3"),
.package(url: "https://github.com/brightdigit/BushelKit.git", from: "3.0.0-alpha.2"),
.package(url: "https://github.com/brightdigit/IPSWDownloads.git", from: "1.0.0"),
.package(url: "https://github.com/scinfu/SwiftSoup.git", from: "2.6.0"),
.package(
url: "https://github.com/apple/swift-configuration.git",
from: "1.0.0",
traits: ["CommandLineArguments"]
)
],
targets: [
.target(
name: "ConfigKeyKit",
dependencies: [],
swiftSettings: swiftSettings
),
.target(
name: "BushelCloudKit",
dependencies: [
.target(name: "ConfigKeyKit"),
.product(name: "MistKit", package: "MistKit"),
.product(name: "BushelLogging", package: "BushelKit"),
.product(name: "BushelFoundation", package: "BushelKit"),
.product(name: "BushelUtilities", package: "BushelKit"),
.product(name: "BushelVirtualBuddy", package: "BushelKit"),
.product(name: "IPSWDownloads", package: "IPSWDownloads"),
.product(name: "SwiftSoup", package: "SwiftSoup"),
.product(name: "Configuration", package: "swift-configuration")
],
swiftSettings: swiftSettings
),
.executableTarget(
name: "BushelCloudCLI",
dependencies: [
.target(name: "BushelCloudKit")
],
swiftSettings: swiftSettings
),
.testTarget(
name: "ConfigKeyKitTests",
dependencies: [
.target(name: "ConfigKeyKit")
],
swiftSettings: swiftSettings
),
.testTarget(
name: "BushelCloudKitTests",
dependencies: [
.target(name: "BushelCloudKit")
],
swiftSettings: swiftSettings
)
]
)
// swiftlint:enable explicit_acl explicit_top_level_acl