-
-
Notifications
You must be signed in to change notification settings - Fork 16
42 lines (38 loc) · 923 Bytes
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.10
import PackageDescription
let swiftSettings: [SwiftSetting]
if Context.environment["ENABLE_UPCOMING_FEATURES"] != nil {
swiftSettings = [
.enableUpcomingFeature("ExistentialAny"),
.enableUpcomingFeature("DisableOutwardActorInference"),
]
}
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
),
],
swiftLanguageVersions: [.v5]
)