From c917e0a53c901b23a9c234360b59a0e48b6af954 Mon Sep 17 00:00:00 2001 From: Thomas Raffray Date: Tue, 23 Apr 2024 19:31:45 +0200 Subject: [PATCH 1/2] chore: add privacy manifest --- AlgoliaSearchClient.podspec | 1 + Package.swift | 5 ++++- PrivacyInfo.xcprivacy | 40 +++++++++++++++++++++++++++++++++++++ 3 files changed, 45 insertions(+), 1 deletion(-) create mode 100644 PrivacyInfo.xcprivacy diff --git a/AlgoliaSearchClient.podspec b/AlgoliaSearchClient.podspec index 3048cfde5..60c94cc9c 100644 --- a/AlgoliaSearchClient.podspec +++ b/AlgoliaSearchClient.podspec @@ -11,4 +11,5 @@ Pod::Spec.new do |spec| spec.swift_version = "5.1" spec.source = { :git => "https://github.com/algolia/algoliasearch-client-swift.git", :tag => spec.version } spec.source_files = "Sources/AlgoliaSearchClient/**/*.swift" + spec.resource_bundles = { 'AlgoliaSearchClient' => ['PrivacyInfo.xcprivacy']} end diff --git a/Package.swift b/Package.swift index 2f5ef3473..b3d2c0923 100644 --- a/Package.swift +++ b/Package.swift @@ -46,7 +46,10 @@ let package = Package( .target( name: "AlgoliaSearchClient", dependencies: [ - ] + extraTargetDependencies), + ] + extraTargetDependencies, + resources: [ + .copy("../../PrivacyInfo.xcprivacy"), + ]), .testTarget( name: "AlgoliaSearchClientTests", dependencies: [ diff --git a/PrivacyInfo.xcprivacy b/PrivacyInfo.xcprivacy new file mode 100644 index 000000000..c47747891 --- /dev/null +++ b/PrivacyInfo.xcprivacy @@ -0,0 +1,40 @@ + + + + + NSPrivacyAccessedAPITypes + + NSPrivacyCollectedDataTypes + + + NSPrivacyCollectedDataType + NSPrivacyCollectedDataTypeProductInteraction + NSPrivacyCollectedDataTypeLinked + + NSPrivacyCollectedDataTypeTracking + + NSPrivacyCollectedDataTypePurposes + + NSPrivacyCollectedDataTypePurposeProductPersonalization + + + + NSPrivacyCollectedDataType + NSPrivacyCollectedDataTypeUserID + NSPrivacyCollectedDataTypeLinked + + NSPrivacyCollectedDataTypeTracking + + NSPrivacyCollectedDataTypePurposes + + NSPrivacyCollectedDataTypePurposeAppFunctionality + NSPrivacyCollectedDataTypePurposeAnalytics + + + + NSPrivacyTrackingDomains + + NSPrivacyTracking + + + From 147fc201ccefd934ba410c014c7cdd2c21a43363 Mon Sep 17 00:00:00 2001 From: Thomas Raffray Date: Wed, 24 Apr 2024 15:44:22 +0200 Subject: [PATCH 2/2] chore: lint --- Package.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Package.swift b/Package.swift index b3d2c0923..270c0d87a 100644 --- a/Package.swift +++ b/Package.swift @@ -48,7 +48,7 @@ let package = Package( dependencies: [ ] + extraTargetDependencies, resources: [ - .copy("../../PrivacyInfo.xcprivacy"), + .copy("../../PrivacyInfo.xcprivacy") ]), .testTarget( name: "AlgoliaSearchClientTests",