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..270c0d87a 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 + + +