-
-
Notifications
You must be signed in to change notification settings - Fork 14
/
Package.swift
34 lines (31 loc) · 808 Bytes
/
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
// swift-tools-version:5.9
import Foundation
import PackageDescription
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"),
.testTarget(
name: "AtomsTests",
dependencies: ["Atoms"]
),
],
swiftLanguageVersions: [.v5]
)
if ProcessInfo.processInfo.environment["DEVELOPMENT"] != nil {
for target in package.targets {
target.swiftSettings = [
.unsafeFlags(["-Xfrontend", "-strict-concurrency=complete"]),
.unsafeFlags(["-Xfrontend", "-enable-actor-data-race-checks"]),
]
}
}