Skip to content

Commit

Permalink
Adds privacy manifest (#746)
Browse files Browse the repository at this point in the history
  • Loading branch information
bguidolim authored Feb 15, 2024
1 parent 7268078 commit 951dfdb
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ let package = Package(
"Resources/update_metadata.sh",
"Info.plist"],
resources: [
.process("Resources/PhoneNumberMetadata.json")
.process("Resources/PhoneNumberMetadata.json"),
.copy("Resources/PrivacyInfo.xcprivacy")
]),
.testTarget(name: "PhoneNumberKitTests",
dependencies: ["PhoneNumberKit"],
Expand Down
5 changes: 4 additions & 1 deletion PhoneNumberKit.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@ Pod::Spec.new do |s|
core.tvos.deployment_target = '12.0'
core.watchos.deployment_target = '4.0'
core.source_files = 'PhoneNumberKit/*.{swift}'
core.resources = 'PhoneNumberKit/Resources/PhoneNumberMetadata.json'
core.resources = [
'PhoneNumberKit/Resources/PhoneNumberMetadata.json',
'PhoneNumberKit/Resources/PrivacyInfo.xcprivacy'
]
end

s.subspec 'UIKit' do |ui|
Expand Down
14 changes: 14 additions & 0 deletions PhoneNumberKit/Resources/PrivacyInfo.xcprivacy
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?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>
</plist>

0 comments on commit 951dfdb

Please sign in to comment.