-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathPackage.swift
More file actions
228 lines (215 loc) · 8.14 KB
/
Package.swift
File metadata and controls
228 lines (215 loc) · 8.14 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
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
// swift-tools-version: 5.9
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
let package = Package(
name: "WidgetDevelopmentKit",
platforms: [
.iOS(.v16),
.macOS(.v13),
.watchOS(.v9),
.tvOS(.v16),
.visionOS(.v1)
],
products: [
// Main library product - Complete framework
.library(
name: "WidgetDevelopmentKit",
targets: ["WidgetDevelopmentKit"]
),
// Core functionality only
.library(
name: "WidgetDevelopmentKitCore",
targets: ["WidgetDevelopmentKitCore"]
),
// Security features only
.library(
name: "WidgetDevelopmentKitSecurity",
targets: ["WidgetDevelopmentKitSecurity"]
),
// Performance features only
.library(
name: "WidgetDevelopmentKitPerformance",
targets: ["WidgetDevelopmentKitPerformance"]
),
// Enterprise features only
.library(
name: "WidgetDevelopmentKitEnterprise",
targets: ["WidgetDevelopmentKitEnterprise"]
),
// Integration features only
.library(
name: "WidgetDevelopmentKitIntegration",
targets: ["WidgetDevelopmentKitIntegration"]
)
],
dependencies: [
// Apple's async algorithms for advanced async operations
.package(url: "https://github.com/apple/swift-async-algorithms", from: "1.0.0"),
// Apple's collections for efficient data structures
.package(url: "https://github.com/apple/swift-collections", from: "1.0.0"),
// Apple's crypto for enterprise-grade encryption
.package(url: "https://github.com/apple/swift-crypto", from: "3.0.0"),
// Apple's metrics for performance monitoring
.package(url: "https://github.com/apple/swift-metrics", from: "2.0.0"),
// Apple's log for structured logging
.package(url: "https://github.com/apple/swift-log", from: "1.0.0"),
// Networking with Alamofire
.package(url: "https://github.com/Alamofire/Alamofire", from: "5.8.0"),
// Image loading and caching
.package(url: "https://github.com/SDWebImage/SDWebImageSwiftUI", from: "2.0.0"),
// Keychain wrapper for secure storage
.package(url: "https://github.com/kishikawakatsumi/KeychainAccess", from: "4.0.0"),
// Network reachability monitoring
.package(url: "https://github.com/ashleymills/Reachability.swift", from: "5.0.0"),
// Testing frameworks
.package(url: "https://github.com/Quick/Quick", from: "7.0.0"),
.package(url: "https://github.com/Quick/Nimble", from: "13.0.0")
],
targets: [
// Main target combining all features
.target(
name: "WidgetDevelopmentKit",
dependencies: [
"WidgetDevelopmentKitCore",
"WidgetDevelopmentKitSecurity",
"WidgetDevelopmentKitPerformance",
"WidgetDevelopmentKitEnterprise",
"WidgetDevelopmentKitIntegration"
],
path: "Sources",
exclude: ["Info.plist", "Resources/.gitkeep"],
resources: [
.process("Resources")
],
swiftSettings: [
.define("DEBUG", .when(configuration: .debug)),
.define("RELEASE", .when(configuration: .release)),
.enableExperimentalFeature("StrictConcurrency"),
.enableUpcomingFeature("BareSlashRegexLiterals")
]
),
// Core functionality
.target(
name: "WidgetDevelopmentKitCore",
dependencies: [
.product(name: "AsyncAlgorithms", package: "swift-async-algorithms"),
.product(name: "Collections", package: "swift-collections"),
.product(name: "Logging", package: "swift-log")
],
path: "Sources/Core",
swiftSettings: [
.enableExperimentalFeature("StrictConcurrency")
]
),
// Security features
.target(
name: "WidgetDevelopmentKitSecurity",
dependencies: [
"WidgetDevelopmentKitCore",
.product(name: "Crypto", package: "swift-crypto"),
.product(name: "KeychainAccess", package: "KeychainAccess")
],
path: "Sources/Security",
swiftSettings: [
.enableExperimentalFeature("StrictConcurrency")
]
),
// Performance features
.target(
name: "WidgetDevelopmentKitPerformance",
dependencies: [
"WidgetDevelopmentKitCore",
.product(name: "Metrics", package: "swift-metrics"),
.product(name: "SDWebImageSwiftUI", package: "SDWebImageSwiftUI")
],
path: "Sources/Performance",
swiftSettings: [
.enableExperimentalFeature("StrictConcurrency")
]
),
// Enterprise features
.target(
name: "WidgetDevelopmentKitEnterprise",
dependencies: [
"WidgetDevelopmentKitCore",
"WidgetDevelopmentKitSecurity"
],
path: "Sources/Enterprise",
swiftSettings: [
.enableExperimentalFeature("StrictConcurrency")
]
),
// Integration features
.target(
name: "WidgetDevelopmentKitIntegration",
dependencies: [
"WidgetDevelopmentKitCore",
.product(name: "Alamofire", package: "Alamofire"),
.product(name: "Reachability", package: "Reachability.swift")
],
path: "Sources/Integration",
swiftSettings: [
.enableExperimentalFeature("StrictConcurrency")
]
),
// Test targets
.testTarget(
name: "WidgetDevelopmentKitTests",
dependencies: [
"WidgetDevelopmentKit",
.product(name: "Quick", package: "Quick"),
.product(name: "Nimble", package: "Nimble")
],
path: "Tests/WidgetDevelopmentKitTests",
resources: [
.process("Resources")
]
),
.testTarget(
name: "WidgetDevelopmentKitCoreTests",
dependencies: [
"WidgetDevelopmentKitCore",
.product(name: "Quick", package: "Quick"),
.product(name: "Nimble", package: "Nimble")
],
path: "Tests/CoreTests"
),
.testTarget(
name: "WidgetDevelopmentKitSecurityTests",
dependencies: [
"WidgetDevelopmentKitSecurity",
.product(name: "Quick", package: "Quick"),
.product(name: "Nimble", package: "Nimble")
],
path: "Tests/SecurityTests"
),
.testTarget(
name: "WidgetDevelopmentKitPerformanceTests",
dependencies: [
"WidgetDevelopmentKitPerformance",
.product(name: "Quick", package: "Quick"),
.product(name: "Nimble", package: "Nimble")
],
path: "Tests/PerformanceTests"
),
.testTarget(
name: "WidgetDevelopmentKitEnterpriseTests",
dependencies: [
"WidgetDevelopmentKitEnterprise",
.product(name: "Quick", package: "Quick"),
.product(name: "Nimble", package: "Nimble")
],
path: "Tests/EnterpriseTests"
),
.testTarget(
name: "WidgetDevelopmentKitIntegrationTests",
dependencies: [
"WidgetDevelopmentKitIntegration",
.product(name: "Quick", package: "Quick"),
.product(name: "Nimble", package: "Nimble")
],
path: "Tests/IntegrationTests"
)
],
swiftLanguageVersions: [.v5]
)