Skip to content

Commit

Permalink
Add empty privacy manifest files (#226)
Browse files Browse the repository at this point in the history
BoringSSL distributions need to be covered by privacy manifest files,
so we add one here.
  • Loading branch information
Lukasa authored Mar 26, 2024
1 parent 89876ab commit 2adec61
Show file tree
Hide file tree
Showing 7 changed files with 35 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .PrivacyInfo.xcprivacy
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>NSPrivacyTracking</key>
<false/>
<key>NSPrivacyAccessedAPITypes</key>
<array/>
<key>NSPrivacyCollectedDataTypes</key>
<array/>
<key>NSPrivacyTrackingDomains</key>
<array/>
</dict>
</plist>

15 changes: 15 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,9 @@ let package = Package(
"crypto/bio/socket_helper.c",
"crypto/bio/socket.c"
],
resources: [
.copy("PrivacyInfo.xcprivacy"),
],
cSettings: [
// These defines come from BoringSSL's build system
.define("_HAS_EXCEPTIONS", to: "0", .when(platforms: [Platform.windows])),
Expand All @@ -106,6 +109,9 @@ let package = Package(
dependencies: ["CCryptoBoringSSL"],
exclude: [
"CMakeLists.txt"
],
resources: [
.copy("PrivacyInfo.xcprivacy"),
]
),
.target(
Expand All @@ -118,6 +124,9 @@ let package = Package(
"Key Agreement/ECDH.swift.gyb",
"Signatures/ECDSA.swift.gyb",
],
resources: [
.copy("PrivacyInfo.xcprivacy"),
],
swiftSettings: swiftSettings
),
.target(
Expand All @@ -131,6 +140,9 @@ let package = Package(
exclude: [
"CMakeLists.txt",
],
resources: [
.copy("PrivacyInfo.xcprivacy"),
],
swiftSettings: swiftSettings
),
.target(
Expand All @@ -141,6 +153,9 @@ let package = Package(
],
exclude: [
"CMakeLists.txt",
],
resources: [
.copy("PrivacyInfo.xcprivacy"),
]
),
.executableTarget(name: "crypto-shasum", dependencies: ["Crypto"]),
Expand Down
1 change: 1 addition & 0 deletions Sources/CCryptoBoringSSL/PrivacyInfo.xcprivacy
1 change: 1 addition & 0 deletions Sources/CCryptoBoringSSLShims/PrivacyInfo.xcprivacy
1 change: 1 addition & 0 deletions Sources/Crypto/PrivacyInfo.xcprivacy
1 change: 1 addition & 0 deletions Sources/CryptoBoringWrapper/PrivacyInfo.xcprivacy
1 change: 1 addition & 0 deletions Sources/_CryptoExtras/PrivacyInfo.xcprivacy

0 comments on commit 2adec61

Please sign in to comment.