From 6868d426e993e8e7639719af85498eb5bd6592b8 Mon Sep 17 00:00:00 2001
From: Stefano Russello <stefano.russello@gmail.com>
Date: Mon, 10 Jun 2024 10:32:39 +0200
Subject: [PATCH 1/2] ZEUS-4346 Privacy Info

- Added Privacy Info file
- Added resources to Swift Package file
---
 Package.swift                             |   2 +
 Sources/PlaybackSDK/PrivacyInfo.xcprivacy | 107 ++++++++++++++++++++++
 2 files changed, 109 insertions(+)
 create mode 100644 Sources/PlaybackSDK/PrivacyInfo.xcprivacy

diff --git a/Package.swift b/Package.swift
index ff20d1d..cfc92a8 100644
--- a/Package.swift
+++ b/Package.swift
@@ -35,6 +35,8 @@ let package = Package(
         // Targets can depend on other targets in this package and products from dependencies.
         .target(
             name: "PlaybackSDK",
+            resources: [
+                .process("PrivacyInfo.xcprivacy")],
             dependencies: [
                 .product(name: "BitmovinPlayer", package: "BitmovinPlayer"),
             ]
diff --git a/Sources/PlaybackSDK/PrivacyInfo.xcprivacy b/Sources/PlaybackSDK/PrivacyInfo.xcprivacy
new file mode 100644
index 0000000..626ab20
--- /dev/null
+++ b/Sources/PlaybackSDK/PrivacyInfo.xcprivacy
@@ -0,0 +1,107 @@
+<?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>NSPrivacyCollectedDataTypeEmailAddress</string>
+			<key>NSPrivacyCollectedDataTypeLinked</key>
+			<true/>
+			<key>NSPrivacyCollectedDataTypeTracking</key>
+			<false/>
+			<key>NSPrivacyCollectedDataTypePurposes</key>
+			<array>
+				<string>NSPrivacyCollectedDataTypePurposeAppFunctionality</string>
+			</array>
+		</dict>
+		<dict>
+			<key>NSPrivacyCollectedDataType</key>
+			<string>NSPrivacyCollectedDataTypeOtherDiagnosticData</string>
+			<key>NSPrivacyCollectedDataTypeLinked</key>
+			<false/>
+			<key>NSPrivacyCollectedDataTypeTracking</key>
+			<false/>
+			<key>NSPrivacyCollectedDataTypePurposes</key>
+			<array>
+				<string>NSPrivacyCollectedDataTypePurposeAnalytics</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>
+			</array>
+		</dict>
+		<dict>
+			<key>NSPrivacyCollectedDataType</key>
+			<string>NSPrivacyCollectedDataTypeOtherDataTypes</string>
+			<key>NSPrivacyCollectedDataTypeLinked</key>
+			<false/>
+			<key>NSPrivacyCollectedDataTypeTracking</key>
+			<false/>
+			<key>NSPrivacyCollectedDataTypePurposes</key>
+			<array>
+				<string>NSPrivacyCollectedDataTypePurposeAnalytics</string>
+			</array>
+		</dict>
+		<dict>
+			<key>NSPrivacyCollectedDataType</key>
+			<string>NSPrivacyCollectedDataTypeOtherUsageData</string>
+			<key>NSPrivacyCollectedDataTypeLinked</key>
+			<false/>
+			<key>NSPrivacyCollectedDataTypeTracking</key>
+			<false/>
+			<key>NSPrivacyCollectedDataTypePurposes</key>
+			<array>
+				<string>NSPrivacyCollectedDataTypePurposeAnalytics</string>
+			</array>
+		</dict>
+		<dict>
+			<key>NSPrivacyCollectedDataType</key>
+			<string>NSPrivacyCollectedDataTypePaymentInfo</string>
+			<key>NSPrivacyCollectedDataTypeLinked</key>
+			<true/>
+			<key>NSPrivacyCollectedDataTypeTracking</key>
+			<false/>
+			<key>NSPrivacyCollectedDataTypePurposes</key>
+			<array>
+				<string>NSPrivacyCollectedDataTypePurposeProductPersonalization</string>
+			</array>
+		</dict>
+		<dict>
+			<key>NSPrivacyCollectedDataType</key>
+			<string>NSPrivacyCollectedDataTypePerformanceData</string>
+			<key>NSPrivacyCollectedDataTypeLinked</key>
+			<false/>
+			<key>NSPrivacyCollectedDataTypeTracking</key>
+			<false/>
+			<key>NSPrivacyCollectedDataTypePurposes</key>
+			<array>
+				<string>NSPrivacyCollectedDataTypePurposeAnalytics</string>
+			</array>
+		</dict>
+		<dict>
+			<key>NSPrivacyCollectedDataType</key>
+			<string>NSPrivacyCollectedDataTypePurchaseHistory</string>
+			<key>NSPrivacyCollectedDataTypeLinked</key>
+			<true/>
+			<key>NSPrivacyCollectedDataTypeTracking</key>
+			<false/>
+			<key>NSPrivacyCollectedDataTypePurposes</key>
+			<array>
+				<string>NSPrivacyCollectedDataTypePurposeProductPersonalization</string>
+			</array>
+		</dict>
+	</array>
+	<key>NSPrivacyTracking</key>
+	<false/>
+</dict>
+</plist>

From 77b1a7b008c0f24826abfabccb7627a9db141074 Mon Sep 17 00:00:00 2001
From: Stefano Russello <stefano.russello@gmail.com>
Date: Mon, 10 Jun 2024 11:23:31 +0200
Subject: [PATCH 2/2] ZEUS-4346 Privacy Manifest Info

Place resources section after dependencies (thanks to @artem-y-pamediagroup )
---
 Package.swift | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/Package.swift b/Package.swift
index cfc92a8..74145a4 100644
--- a/Package.swift
+++ b/Package.swift
@@ -35,11 +35,11 @@ let package = Package(
         // Targets can depend on other targets in this package and products from dependencies.
         .target(
             name: "PlaybackSDK",
-            resources: [
-                .process("PrivacyInfo.xcprivacy")],
             dependencies: [
                 .product(name: "BitmovinPlayer", package: "BitmovinPlayer"),
-            ]
+            ],
+            resources: [
+                .process("PrivacyInfo.xcprivacy")]
         ),
         .testTarget(
             name: "PlaybackSDKTests",