Skip to content

Commit

Permalink
chore: add privacy manifest
Browse files Browse the repository at this point in the history
  • Loading branch information
aallam committed Apr 24, 2024
1 parent 8f4b2ef commit 3b6f438
Show file tree
Hide file tree
Showing 3 changed files with 73 additions and 4 deletions.
6 changes: 6 additions & 0 deletions InstantSearch.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,16 @@ Pod::Spec.new do |s|

s.default_subspec = 'UI'

s.resource_bundles = { 'InstantSearchResources' => ['PrivacyInfo.xcprivacy'] }

s.subspec "Insights" do |ss|
ss.source_files = 'Sources/InstantSearchInsights/**/*.{swift}'
ss.dependency 'AlgoliaSearchClient', '~> 8.18'
ss.ios.deployment_target = '9.0'
ss.osx.deployment_target = '10.10'
ss.watchos.deployment_target = '2.0'
ss.tvos.deployment_target = '9.0'
ss.resource_bundles = s.resource_bundles
end

s.subspec "Core" do |ss|
Expand All @@ -32,6 +35,7 @@ Pod::Spec.new do |s|
ss.watchos.deployment_target = '2.0'
ss.tvos.deployment_target = '9.0'
ss.pod_target_xcconfig = { 'OTHER_SWIFT_FLAGS' => '-DInstantSearchCocoaPods' }
ss.resource_bundles = s.resource_bundles
end

s.subspec "UI" do |ss|
Expand All @@ -42,6 +46,7 @@ Pod::Spec.new do |s|
ss.watchos.deployment_target = '2.0'
ss.tvos.deployment_target = '9.0'
ss.pod_target_xcconfig = { 'OTHER_SWIFT_FLAGS' => '-DInstantSearchCocoaPods' }
ss.resource_bundles = s.resource_bundles
end

s.subspec "SwiftUI" do |ss|
Expand All @@ -54,6 +59,7 @@ Pod::Spec.new do |s|
ss.tvos.deployment_target = '13.0'
ss.pod_target_xcconfig = { 'OTHER_SWIFT_FLAGS' => '-DInstantSearchCocoaPods' }
ss.weak_frameworks = 'SwiftUI', 'Combine'
ss.resource_bundles = s.resource_bundles
end

end
11 changes: 7 additions & 4 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,17 @@ let package = Package(
.target(
name: "InstantSearchInsights",
dependencies: ["AlgoliaSearchClient"],
exclude: ["Readme.md"]
exclude: ["Readme.md"],
resources: [.copy("PrivacyInfo.xcprivacy")]
),
.testTarget(
name: "InstantSearchInsightsTests",
dependencies: ["InstantSearchInsights", "AlgoliaSearchClient"]
),
.target(
name: "InstantSearchCore",
dependencies: ["AlgoliaSearchClient", "InstantSearchInsights", .product(name: "InstantSearchTelemetry", package: "InstantSearchTelemetry")]
dependencies: ["AlgoliaSearchClient", "InstantSearchInsights", .product(name: "InstantSearchTelemetry", package: "InstantSearchTelemetry")],
resources: [.copy("PrivacyInfo.xcprivacy")]
),
.testTarget(
name: "InstantSearchCoreTests",
Expand All @@ -67,15 +69,16 @@ let package = Package(
),
.target(
name: "InstantSearch",
dependencies: ["InstantSearchCore"]
dependencies: ["InstantSearchCore"],
resources: [.copy("PrivacyInfo.xcprivacy")]
),
.testTarget(
name: "InstantSearchTests",
dependencies: ["InstantSearch"]
),
.target(
name: "InstantSearchSwiftUI",
dependencies: ["InstantSearchCore", .product(name: "InstantSearchTelemetry", package: "InstantSearchTelemetry")]
dependencies: ["InstantSearchCore", .product(name: "InstantSearchTelemetry", package: "InstantSearchTelemetry")],
),
.testTarget(
name: "InstantSearchSwiftUITests",
Expand Down
60 changes: 60 additions & 0 deletions PrivacyInfo.xcprivacy
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
<?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>NSPrivacyAccessedAPITypes</key>
<array>
<dict>
<key>NSPrivacyAccessedAPITypeReasons</key>
<array>
<string>CA92.1</string>
</array>
<key>NSPrivacyAccessedAPIType</key>
<string>NSPrivacyAccessedAPICategoryUserDefaults</string>
</dict>
</array>
<key>NSPrivacyTrackingDomains</key>
<array/>
<key>NSPrivacyCollectedDataTypes</key>
<array>
<dict>
<key>NSPrivacyCollectedDataType</key>
<string>NSPrivacyCollectedDataTypeProductInteraction</string>
<key>NSPrivacyCollectedDataTypeLinked</key>
<false/>
<key>NSPrivacyCollectedDataTypeTracking</key>
<false/>
<key>NSPrivacyCollectedDataTypePurposes</key>
<array>
<string>NSPrivacyCollectedDataTypePurposeProductPersonalization</string>
</array>
</dict>
<dict>
<key>NSPrivacyCollectedDataType</key>
<string>NSPrivacyCollectedDataTypeUserID</string>
<key>NSPrivacyCollectedDataTypeLinked</key>
<false/>
<key>NSPrivacyCollectedDataTypeTracking</key>
<false/>
<key>NSPrivacyCollectedDataTypePurposes</key>
<array>
<string>NSPrivacyCollectedDataTypePurposeAnalytics</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>
</array>
<key>NSPrivacyTracking</key>
<false/>
</dict>
</plist>

0 comments on commit 3b6f438

Please sign in to comment.