diff --git a/KlaviyoSwift.podspec b/KlaviyoSwift.podspec index ae6677cb..8b71506c 100644 --- a/KlaviyoSwift.podspec +++ b/KlaviyoSwift.podspec @@ -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 diff --git a/KlaviyoSwiftExtension.podspec b/KlaviyoSwiftExtension.podspec index d7f59c30..2c0b2786 100644 --- a/KlaviyoSwiftExtension.podspec +++ b/KlaviyoSwiftExtension.podspec @@ -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 diff --git a/Package.swift b/Package.swift index e5819c88..708d631c 100644 --- a/Package.swift +++ b/Package.swift @@ -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: [ diff --git a/Sources/KlaviyoSwift/PrivacyInfo.xcprivacy b/Sources/KlaviyoSwift/PrivacyInfo.xcprivacy new file mode 100644 index 00000000..a3622ab1 --- /dev/null +++ b/Sources/KlaviyoSwift/PrivacyInfo.xcprivacy @@ -0,0 +1,62 @@ + + + + + NSPrivacyCollectedDataTypes + + + NSPrivacyCollectedDataType + NSPrivacyCollectedDataTypeDeviceID + NSPrivacyCollectedDataTypeLinked + + NSPrivacyCollectedDataTypeTracking + + NSPrivacyCollectedDataTypePurposes + + NSPrivacyCollectedDataTypePurposeAnalytics + NSPrivacyCollectedDataTypePurposeProductPersonalization + NSPrivacyCollectedDataTypePurposeDeveloperAdvertising + + + + NSPrivacyCollectedDataType + NSPrivacyCollectedDataTypeUserID + NSPrivacyCollectedDataTypeLinked + + NSPrivacyCollectedDataTypeTracking + + NSPrivacyCollectedDataTypePurposes + + NSPrivacyCollectedDataTypePurposeProductPersonalization + NSPrivacyCollectedDataTypePurposeAnalytics + NSPrivacyCollectedDataTypePurposeDeveloperAdvertising + + + + NSPrivacyCollectedDataType + NSPrivacyCollectedDataTypeProductInteraction + NSPrivacyCollectedDataTypeLinked + + NSPrivacyCollectedDataTypeTracking + + NSPrivacyCollectedDataTypePurposes + + NSPrivacyCollectedDataTypePurposeAnalytics + + + + NSPrivacyAccessedAPITypes + + + NSPrivacyAccessedAPIType + NSPrivacyAccessedAPICategoryUserDefaults + NSPrivacyAccessedAPITypeReasons + + CA92.1 + + + + NSPrivacyTracking + + + diff --git a/Sources/KlaviyoSwiftExtension/PrivacyInfo.xcprivacy b/Sources/KlaviyoSwiftExtension/PrivacyInfo.xcprivacy new file mode 100644 index 00000000..cfbe279c --- /dev/null +++ b/Sources/KlaviyoSwiftExtension/PrivacyInfo.xcprivacy @@ -0,0 +1,8 @@ + + + + + NSPrivacyTracking + + +