-
Notifications
You must be signed in to change notification settings - Fork 0
/
Package.swift
35 lines (32 loc) · 938 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
35
// swift-tools-version: 5.9
import PackageDescription
let package = Package(
name: "SwiftLogKit",
platforms: [
.iOS(.v16),
.macOS(.v13),
.tvOS(.v16),
.watchOS(.v9),
.visionOS(.v1)
],
products: [
.library(
name: "SwiftLogKit",
targets: ["SwiftLogKit"]),
],
targets: [
.target(
name: "SwiftLogKit"),
.testTarget(
name: "SwiftLogKitTests",
dependencies: ["SwiftLogKit"]
),
]
)
for target in package.targets {
var settings = target.swiftSettings ?? []
settings.append(.enableExperimentalFeature("StrictConcurrency", .when(configuration: .debug)))
settings.append(.enableUpcomingFeature("ConciseMagicFile", .when(configuration: .debug)))
settings.append(.enableUpcomingFeature("ExistentialAny", .when(configuration: .debug)))
target.swiftSettings = settings
}