-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathPackage.swift
42 lines (39 loc) · 1.29 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
// swift-tools-version: 5.9
import PackageDescription
let package = Package(
name: "AsyncSwiftUI",
platforms: [.iOS(.v15), .macOS(.v12), .macCatalyst(.v15), .tvOS(.v15), .watchOS(.v8), .visionOS(.v1)],
products: [
.library(
name: "AsyncSwiftUI",
targets: ["AsyncSwiftUI"]),
],
targets: [
.target(
name: "AsyncSwiftUI",
dependencies: [
"Control",
]),
.target(
name: "Core"),
.target(
name: "Control",
dependencies: ["Core"]
),
.testTarget(
name: "AsyncSwiftUITests",
dependencies: ["AsyncSwiftUI"]),
]
)
package.targets.forEach {
$0.swiftSettings = [
.enableUpcomingFeature("ConciseMagicFile"), // SE-0274
.enableUpcomingFeature("ForwardTrailingClosures"), // SE-0286
.enableUpcomingFeature("ExistentialAny"), // SE-0335
.enableUpcomingFeature("StrictConcurrency"), // SE-0337
.enableUpcomingFeature("BareSlashRegexLiterals"), // SE-0354
.enableUpcomingFeature("ImportObjcForwardDeclarations"), // SE-0384
.enableUpcomingFeature("DisableOutwardActorInference"), // SE-0401
.enableUpcomingFeature("InternalImportsByDefault"), // SE-0409
]
}