Skip to content

Commit

Permalink
Merge pull request #174 from klaviyo/as/chnl-7372-privacyinfo.xcprivacy
Browse files Browse the repository at this point in the history
Adding privacy manifest to KlaviyoSwift and KlaviyoSwiftExtension
  • Loading branch information
ajaysubra authored Apr 12, 2024
2 parents 83b0a5b + 36a807f commit 9a04ba2
Show file tree
Hide file tree
Showing 5 changed files with 76 additions and 2 deletions.
1 change: 1 addition & 0 deletions KlaviyoSwift.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,6 @@ Pod::Spec.new do |s|
s.platform = :ios
s.ios.deployment_target = '13.0'
s.source_files = 'Sources/KlaviyoSwift/**/*.swift'
s.resource_bundles = {"KlaviyoSwift" => ["Sources/KlaviyoSwift/PrivacyInfo.xcprivacy"]}
s.dependency 'AnyCodable-FlightSchool'
end
1 change: 1 addition & 0 deletions KlaviyoSwiftExtension.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,5 @@ Pod::Spec.new do |s|
s.platform = :ios
s.ios.deployment_target = '13.0'
s.source_files = 'Sources/KlaviyoSwiftExtension/**/*.swift'
s.resource_bundles = {"KlaviyoSwiftExtension" => ["Sources/KlaviyoSwiftExtension/PrivacyInfo.xcprivacy"]}
end
6 changes: 4 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,13 @@ let package = Package(
.target(
name: "KlaviyoSwift",
dependencies: [.product(name: "AnyCodable", package: "AnyCodable")],
path: "Sources/KlaviyoSwift"),
path: "Sources/KlaviyoSwift",
resources: [.copy("PrivacyInfo.xcprivacy")]),
.target(
name: "KlaviyoSwiftExtension",
dependencies: [],
path: "Sources/KlaviyoSwiftExtension"),
path: "Sources/KlaviyoSwiftExtension",
resources: [.copy("PrivacyInfo.xcprivacy")]),
.testTarget(
name: "KlaviyoSwiftTests",
dependencies: [
Expand Down
62 changes: 62 additions & 0 deletions Sources/KlaviyoSwift/PrivacyInfo.xcprivacy
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
<?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>NSPrivacyCollectedDataTypes</key>
<array>
<dict>
<key>NSPrivacyCollectedDataType</key>
<string>NSPrivacyCollectedDataTypeDeviceID</string>
<key>NSPrivacyCollectedDataTypeLinked</key>
<true/>
<key>NSPrivacyCollectedDataTypeTracking</key>
<false/>
<key>NSPrivacyCollectedDataTypePurposes</key>
<array>
<string>NSPrivacyCollectedDataTypePurposeAnalytics</string>
<string>NSPrivacyCollectedDataTypePurposeProductPersonalization</string>
<string>NSPrivacyCollectedDataTypePurposeDeveloperAdvertising</string>
</array>
</dict>
<dict>
<key>NSPrivacyCollectedDataType</key>
<string>NSPrivacyCollectedDataTypeUserID</string>
<key>NSPrivacyCollectedDataTypeLinked</key>
<true/>
<key>NSPrivacyCollectedDataTypeTracking</key>
<false/>
<key>NSPrivacyCollectedDataTypePurposes</key>
<array>
<string>NSPrivacyCollectedDataTypePurposeProductPersonalization</string>
<string>NSPrivacyCollectedDataTypePurposeAnalytics</string>
<string>NSPrivacyCollectedDataTypePurposeDeveloperAdvertising</string>
</array>
</dict>
<dict>
<key>NSPrivacyCollectedDataType</key>
<string>NSPrivacyCollectedDataTypeProductInteraction</string>
<key>NSPrivacyCollectedDataTypeLinked</key>
<true/>
<key>NSPrivacyCollectedDataTypeTracking</key>
<false/>
<key>NSPrivacyCollectedDataTypePurposes</key>
<array>
<string>NSPrivacyCollectedDataTypePurposeAnalytics</string>
</array>
</dict>
</array>
<key>NSPrivacyAccessedAPITypes</key>
<array>
<dict>
<key>NSPrivacyAccessedAPIType</key>
<string>NSPrivacyAccessedAPICategoryUserDefaults</string>
<key>NSPrivacyAccessedAPITypeReasons</key>
<array>
<string>CA92.1</string>
</array>
</dict>
</array>
<key>NSPrivacyTracking</key>
<false/>
</dict>
</plist>
8 changes: 8 additions & 0 deletions Sources/KlaviyoSwiftExtension/PrivacyInfo.xcprivacy
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?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/>
</dict>
</plist>

0 comments on commit 9a04ba2

Please sign in to comment.