From 29d2bc1df07ab2f76db991204698cf8faf3ec0a6 Mon Sep 17 00:00:00 2001 From: Ben Baron Date: Tue, 7 May 2024 12:24:04 -0500 Subject: [PATCH] feat: Improve Privacy Manifest support for iOS 17 --- Package.swift | 5 +++-- mParticle-CleverTap.podspec | 6 ++++-- .../PrivacyInfo.xcprivacy | 8 ++------ 3 files changed, 9 insertions(+), 10 deletions(-) rename PrivacyInfo.xcprivacy => mParticle-CleverTap/PrivacyInfo.xcprivacy (81%) diff --git a/Package.swift b/Package.swift index fef8e1f..41700ac 100644 --- a/Package.swift +++ b/Package.swift @@ -13,16 +13,17 @@ let package = Package( dependencies: [ .package(name: "mParticle-Apple-SDK", url: "https://github.com/mParticle/mparticle-apple-sdk", - .upToNextMajor(from: "8.0.0")), + .upToNextMajor(from: "8.22.0")), .package(name: "CleverTapSDK", url: "https://github.com/CleverTap/clevertap-ios-sdk", - .upToNextMajor(from: "6.2.0")), + .upToNextMajor(from: "6.2.1")), ], targets: [ .target( name: "mParticle-CleverTap", dependencies: ["mParticle-Apple-SDK", "CleverTapSDK"], path: "mParticle-CleverTap", + resources: [.process("PrivacyInfo.xcprivacy")], publicHeadersPath: "." ), ] diff --git a/mParticle-CleverTap.podspec b/mParticle-CleverTap.podspec index bb8e430..f4378b4 100644 --- a/mParticle-CleverTap.podspec +++ b/mParticle-CleverTap.podspec @@ -15,11 +15,13 @@ Pod::Spec.new do |s| s.ios.deployment_target = "9.0" s.ios.source_files = 'mParticle-CleverTap/*.{h,m}' - s.ios.dependency 'mParticle-Apple-SDK/mParticle', '~> 8.0' + s.ios.resource_bundles = { 'mParticle-CleverTap-Privacy' => ['mParticle-CleverTap/PrivacyInfo.xcprivacy'] } + s.ios.dependency 'mParticle-Apple-SDK/mParticle', '~> 8.22' s.ios.dependency 'CleverTap-iOS-SDK', '~> 6.2' s.tvos.deployment_target = "9.0" s.tvos.source_files = 'mParticle-CleverTap/*.{h,m}' - s.tvos.dependency 'mParticle-Apple-SDK/mParticle', '~> 8.0' + s.ios.resource_bundles = { 'mParticle-CleverTap-Privacy' => ['mParticle-CleverTap/PrivacyInfo.xcprivacy'] } + s.tvos.dependency 'mParticle-Apple-SDK/mParticle', '~> 8.22' s.tvos.dependency 'CleverTap-iOS-SDK', '~> 6.2' end diff --git a/PrivacyInfo.xcprivacy b/mParticle-CleverTap/PrivacyInfo.xcprivacy similarity index 81% rename from PrivacyInfo.xcprivacy rename to mParticle-CleverTap/PrivacyInfo.xcprivacy index eb3b0ea..2009fb7 100644 --- a/PrivacyInfo.xcprivacy +++ b/mParticle-CleverTap/PrivacyInfo.xcprivacy @@ -7,12 +7,8 @@ NSPrivacyTrackingDomains NSPrivacyCollectedDataTypes - - - + NSPrivacyAccessedAPITypes - - - +