-
Notifications
You must be signed in to change notification settings - Fork 0
/
Package.swift
51 lines (47 loc) · 1.31 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
46
47
48
49
50
51
// swift-tools-version:5.9
import PackageDescription
let package = Package(
name: "Parra",
platforms: [
.iOS("17.0")
],
products: [
.library(
name: "Parra",
targets: [
"Parra"
]
// type: .static, .dynamic
)
],
targets: [
.target(
name: "Parra",
dependencies: [],
exclude: [],
resources: [
// https://developer.apple.com/documentation/bundleresources/privacy_manifest_files/adding_a_privacy_manifest_to_your_app_or_third-party_sdk
.process("PrivacyInfo.xcprivacy")
]
),
.testTarget(
name: "ParraTests",
dependencies: [
"Parra"
]
)
],
swiftLanguageVersions: [.version("5.9")]
)
let swiftSettings: [SwiftSetting] = [
// -enable-bare-slash-regex becomes
.enableUpcomingFeature("BareSlashRegexLiterals")
// -warn-concurrency becomes
// .enableUpcomingFeature("StrictConcurrency"),
// .unsafeFlags(["-enable-actor-data-race-checks"],
// .when(configuration: .debug)),
]
for target in package.targets {
target.swiftSettings = target.swiftSettings ?? []
target.swiftSettings?.append(contentsOf: swiftSettings)
}