Skip to content

Commit 609469f

Browse files
authored
Exclude unused privacy manifests. (#2716)
Motivation: On Darwin privacy manifests should be published as resources. On other platforms they result in a warning if not excluded. Modifications: Alter Package.swift to exclude privacy manifests when not included. Result: Fewer warnings in non-darwin builds.
1 parent 6753556 commit 609469f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Package.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ let package = Package(
9292
"_NIODataStructures",
9393
swiftAtomics,
9494
],
95+
exclude: includePrivacyManifest ? [] : ["PrivacyInfo.xcprivacy"],
9596
resources: includePrivacyManifest ? [.copy("PrivacyInfo.xcprivacy")] : []
9697
),
9798
.target(
@@ -208,6 +209,7 @@ let package = Package(
208209
swiftSystem,
209210
],
210211
path: "Sources/NIOFileSystem",
212+
exclude: includePrivacyManifest ? [] : ["PrivacyInfo.xcprivacy"],
211213
resources: includePrivacyManifest ? [.copy("PrivacyInfo.xcprivacy")] : [],
212214
swiftSettings: [
213215
.define("ENABLE_MOCKING", .when(configuration: .debug))

0 commit comments

Comments
 (0)