Skip to content

Commit

Permalink
Convert PrivacyInfo.xcprivacy symlinks to files (#251)
Browse files Browse the repository at this point in the history
It is expected behavior of the swift-build build system to copy links as-is, so presenting these as symlinks results in broken symlinks being present in the produced resource bundles, which won't work properly.

On Windows, it even causes the build entirely to fail due to a related bug: swiftlang/swift-foundation#845

Convert these to flat files instead.
  • Loading branch information
jakepetroules authored Aug 13, 2024
1 parent 8dafe0f commit a53a7e8
Show file tree
Hide file tree
Showing 6 changed files with 75 additions and 20 deletions.
15 changes: 0 additions & 15 deletions .PrivacyInfo.xcprivacy

This file was deleted.

1 change: 0 additions & 1 deletion Sources/CCryptoBoringSSL/PrivacyInfo.xcprivacy

This file was deleted.

15 changes: 15 additions & 0 deletions Sources/CCryptoBoringSSL/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>

1 change: 0 additions & 1 deletion Sources/CCryptoBoringSSLShims/PrivacyInfo.xcprivacy

This file was deleted.

15 changes: 15 additions & 0 deletions Sources/CCryptoBoringSSLShims/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>

1 change: 0 additions & 1 deletion Sources/Crypto/PrivacyInfo.xcprivacy

This file was deleted.

15 changes: 15 additions & 0 deletions Sources/Crypto/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>

1 change: 0 additions & 1 deletion Sources/CryptoBoringWrapper/PrivacyInfo.xcprivacy

This file was deleted.

15 changes: 15 additions & 0 deletions Sources/CryptoBoringWrapper/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>

1 change: 0 additions & 1 deletion Sources/_CryptoExtras/PrivacyInfo.xcprivacy

This file was deleted.

15 changes: 15 additions & 0 deletions Sources/_CryptoExtras/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>

0 comments on commit a53a7e8

Please sign in to comment.