Skip to content

Commit

Permalink
Add PrivacyInfo.xcprivacy (#21)
Browse files Browse the repository at this point in the history
* Add PrivacyInfo.xcprivacy

* Update version
  • Loading branch information
mii-chan authored Mar 19, 2024
1 parent 2fcd945 commit 10acef5
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ let package = Package(
.library(name: "SwiftUserDefaults", targets: ["SwiftUserDefaults"]),
],
targets: [
.target(name: "SwiftUserDefaults", dependencies: []),
.target(name: "SwiftUserDefaults", dependencies: [], resources: [.copy("PrivacyInfo.xcprivacy")]),
.testTarget(name: "SwiftUserDefaultsTests", dependencies: ["SwiftUserDefaults"])
]
)
23 changes: 23 additions & 0 deletions Sources/SwiftUserDefaults/PrivacyInfo.xcprivacy
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?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>NSPrivacyTrackingDomains</key>
<array/>
<key>NSPrivacyCollectedDataTypes</key>
<array/>
<key>NSPrivacyAccessedAPITypes</key>
<array>
<dict>
<key>NSPrivacyAccessedAPIType</key>
<string>NSPrivacyAccessedAPICategoryUserDefaults</string>
<key>NSPrivacyAccessedAPITypeReasons</key>
<array>
<string>C56D.1</string>
</array>
</dict>
</array>
</dict>
</plist>
3 changes: 2 additions & 1 deletion swift-user-defaults.podspec
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
Pod::Spec.new do |s|
s.name = "swift-user-defaults"
s.module_name = "SwiftUserDefaults"
s.version = "0.0.4"
s.version = "0.0.5"
s.summary = "A series of Swift friendly utilities for Foundation's UserDefaults class"
s.homepage = "https://github.com/cookpad/swift-user-defaults"
s.license = { :type => "MIT", :file => "LICENSE.txt" }
s.authors = { 'Liam Nichols' => '[email protected]', 'Ryan Paterson' => '[email protected]' }
s.source = { :git => "https://github.com/cookpad/swift-user-defaults.git", :tag => "#{s.version}" }
s.source_files = "Sources/**/*.{swift}"
s.resource_bundles = {'SwiftUserDefaults' => ['Sources/SwiftUserDefaults/PrivacyInfo.xcprivacy']}
s.swift_version = "5.3"

s.ios.deployment_target = '11.0'
Expand Down

0 comments on commit 10acef5

Please sign in to comment.