Skip to content

Commit

Permalink
Add privacy manifest for UserDefaults
Browse files Browse the repository at this point in the history
  • Loading branch information
skyfoxa committed Apr 29, 2024
1 parent 512b021 commit fb21f8f
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ let package = Package(
targets: [
.target(
name: "SwiftUIBackports",
dependencies: ["SwiftBackports"]
dependencies: ["SwiftBackports"],
resources: [.process("Resources/PrivacyInfo.xcprivacy")]
)
],
swiftLanguageVersions: [.v5]
Expand Down
17 changes: 17 additions & 0 deletions Sources/SwiftUIBackports/Resources/PrivacyInfo.xcprivacy
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?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>NSPrivacyAccessedAPITypes</key>
<array>
<dict>
<key>NSPrivacyAccessedAPIType</key>
<string>NSPrivacyAccessedAPICategoryUserDefaults</string>
<key>NSPrivacyAccessedAPITypeReasons</key>
<array>
<string>CA92.1</string>
</array>
</dict>
</array>
</dict>
</plist>

0 comments on commit fb21f8f

Please sign in to comment.