-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPackage.swift
50 lines (46 loc) · 1.44 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.9
// 5.9 required for `enableExperimentalFeature`. 😕
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: "Gate",
platforms: [
.iOS(.v13),
.macCatalyst(.v13),
.macOS(.v10_15),
.tvOS(.v13),
.watchOS(.v6),
],
products: [
.library(
name: "Gate",
targets: ["Gate"]),
],
targets: [
.target(
name: "Gate",
swiftSettings: settings),
.testTarget(
name: "GateTests",
dependencies: ["Gate"],
swiftSettings: settings),
]
)