-
Notifications
You must be signed in to change notification settings - Fork 0
/
Package.swift
50 lines (46 loc) · 1.51 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
// swift-tools-version: 5.10
import PackageDescription
let enables = ["AccessLevelOnImport",
"BareSlashRegexLiterals",
"ConciseMagicFile",
"DeprecateApplicationMain",
"DisableOutwardActorInference",
"DynamicActorIsolation",
"ExistentialAny",
"ForwardTrailingClosures",
//"FullTypedThrows", // Not ready yet, in Swift 6. https://forums.swift.org/t/where-is-fulltypedthrows/72346/15
"GlobalConcurrency",
"ImplicitOpenExistentials",
"ImportObjcForwardDeclarations",
"InferSendableFromCaptures",
"InternalImportsByDefault",
"IsolatedDefaultValues",
"StrictConcurrency"]
let settings: [SwiftSetting] = enables.flatMap {
[.enableUpcomingFeature($0), .enableExperimentalFeature($0)]
}
let package = Package(
name: "FoundationExtensions",
platforms: [
.iOS(.v15),
.macCatalyst(.v15),
.macOS(.v12),
.tvOS(.v15),
.watchOS(.v8),
],
products: [
.library(
name: "FoundationExtensions",
targets: ["FoundationExtensions"]),
],
targets: [
.target(
name: "FoundationExtensions",
dependencies: [],
swiftSettings: settings),
.testTarget(
name: "FoundationExtensionsTests",
dependencies: ["FoundationExtensions"],
swiftSettings: settings),
]
)