-
-
Notifications
You must be signed in to change notification settings - Fork 16
/
Package.swift
45 lines (41 loc) · 1.07 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
// swift-tools-version:6.0
import PackageDescription
let swiftSettings: [SwiftSetting]
if Context.environment["ENABLE_UPCOMING_FEATURES"] == "1" {
swiftSettings = [
.enableUpcomingFeature("DisableOutwardActorInference"),
.enableUpcomingFeature("InferSendableFromCaptures"),
.enableUpcomingFeature("IsolatedDefaultValues"),
.enableUpcomingFeature("StrictConcurrency"),
.enableUpcomingFeature("ExistentialAny"),
]
}
else {
swiftSettings = [
.enableUpcomingFeature("ExistentialAny")
]
}
let package = Package(
name: "swiftui-atom-properties",
platforms: [
.iOS(.v14),
.macOS(.v11),
.tvOS(.v14),
.watchOS(.v7),
],
products: [
.library(name: "Atoms", targets: ["Atoms"])
],
targets: [
.target(
name: "Atoms",
swiftSettings: swiftSettings
),
.testTarget(
name: "AtomsTests",
dependencies: ["Atoms"],
swiftSettings: swiftSettings
),
],
swiftLanguageModes: [.v5, .v6]
)