From c3a482b5a285638ab1d3ac1daaa8289c1ee734e3 Mon Sep 17 00:00:00 2001 From: Ben Baron Date: Thu, 2 May 2024 14:24:52 -0500 Subject: [PATCH] feat: Improve Privacy Manifest support (#60) --- Package.swift | 2 ++ mParticle-BranchMetrics.podspec | 1 + mParticle-BranchMetrics/PrivacyInfo.xcprivacy | 8 ++------ 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/Package.swift b/Package.swift index 7885c65..ce42922 100644 --- a/Package.swift +++ b/Package.swift @@ -30,6 +30,7 @@ let package = Package( .product(name: "BranchSDK", package: "BranchSDK"), ], path: "mParticle-BranchMetrics", + resources: [.process("PrivacyInfo.xcprivacy")], publicHeadersPath: "." ), .target( @@ -39,6 +40,7 @@ let package = Package( .product(name: "BranchSDK", package: "BranchSDK"), ], path: "SPM/mParticle-BranchMetrics-NoLocation", + resources: [.process("PrivacyInfo.xcprivacy")], publicHeadersPath: "." ) ] diff --git a/mParticle-BranchMetrics.podspec b/mParticle-BranchMetrics.podspec index ff8e7ee..d4d7745 100755 --- a/mParticle-BranchMetrics.podspec +++ b/mParticle-BranchMetrics.podspec @@ -15,6 +15,7 @@ Pod::Spec.new do |s| s.ios.deployment_target = "12.0" s.ios.source_files = 'mParticle-BranchMetrics/*.{h,m,mm}' + s.ios.resource_bundles = { 'mParticle-BranchMetrics-Privacy' => ['mParticle-BranchMetrics/PrivacyInfo.xcprivacy'] } s.ios.dependency 'mParticle-Apple-SDK/mParticle', '~> 8.9' s.ios.dependency 'BranchSDK', '~> 3.4' end diff --git a/mParticle-BranchMetrics/PrivacyInfo.xcprivacy b/mParticle-BranchMetrics/PrivacyInfo.xcprivacy index 8ceb89c..e08a130 100644 --- a/mParticle-BranchMetrics/PrivacyInfo.xcprivacy +++ b/mParticle-BranchMetrics/PrivacyInfo.xcprivacy @@ -7,12 +7,8 @@ NSPrivacyTrackingDomains NSPrivacyCollectedDataTypes - - - + NSPrivacyAccessedAPITypes - - - +