From 441de348fd0f5c2d25fa80fa1c15aa359fbb143f Mon Sep 17 00:00:00 2001 From: Ben Baron Date: Mon, 29 Apr 2024 14:30:58 -0500 Subject: [PATCH] feat: Improve Privacy Manifest support for iOS 17 --- Cartfile | 4 ++-- Package.swift | 9 +++++---- mParticle-Iterable.podspec | 5 +++-- mParticle-iterable/PrivacyInfo.xcprivacy | 20 ++++++++------------ 4 files changed, 18 insertions(+), 20 deletions(-) diff --git a/Cartfile b/Cartfile index a8dae24..87c3abf 100644 --- a/Cartfile +++ b/Cartfile @@ -1,2 +1,2 @@ -github "Iterable/swift-sdk" ~> 6.5.1 -github "mparticle/mparticle-apple-sdk" ~> 8.0 +github "Iterable/swift-sdk" ~> 6.5.2 +github "mparticle/mparticle-apple-sdk" ~> 8.19 diff --git a/Package.swift b/Package.swift index 1db708a..34a71bf 100644 --- a/Package.swift +++ b/Package.swift @@ -14,20 +14,21 @@ 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.19.0")), .package(name: "IterableSDK", url: "https://github.com/Iterable/swift-sdk", - .upToNextMajor(from: "6.5.1")), + .upToNextMajor(from: "6.5.2")), ], targets: [ .target( name: "mParticle-Iterable", dependencies: [ - .product(name: "mParticle-Apple-SDK", package: "mParticle-Apple-SDK"), - .product(name: "IterableSDK", package: "IterableSDK"), + .product(name: "mParticle-Apple-SDK", package: "mParticle-Apple-SDK"), + .product(name: "IterableSDK", package: "IterableSDK"), ], path: "mParticle-Iterable", exclude: ["Info.plist"], + resources: [.process("PrivacyInfo.xcprivacy")], publicHeadersPath: "." ), ] diff --git a/mParticle-Iterable.podspec b/mParticle-Iterable.podspec index ee5ea56..79aa937 100644 --- a/mParticle-Iterable.podspec +++ b/mParticle-Iterable.podspec @@ -13,6 +13,7 @@ Pod::Spec.new do |s| s.ios.deployment_target = "11.0" s.ios.source_files = 'mParticle-Iterable/*.{h,m,mm}' - s.ios.dependency 'mParticle-Apple-SDK/mParticle', '~> 8.0' - s.ios.dependency 'Iterable-iOS-SDK', '~> 6.5.1' + s.resource_bundles = { 'mParticle-Iterable-Privacy' => ['mParticle-Iterable/PrivacyInfo.xcprivacy'] } + s.ios.dependency 'mParticle-Apple-SDK/mParticle', '~> 8.19' + s.ios.dependency 'Iterable-iOS-SDK', '~> 6.5' end diff --git a/mParticle-iterable/PrivacyInfo.xcprivacy b/mParticle-iterable/PrivacyInfo.xcprivacy index eb3b0ea..e08a130 100644 --- a/mParticle-iterable/PrivacyInfo.xcprivacy +++ b/mParticle-iterable/PrivacyInfo.xcprivacy @@ -2,17 +2,13 @@ - NSPrivacyTracking - - NSPrivacyTrackingDomains - - NSPrivacyCollectedDataTypes - - - - NSPrivacyAccessedAPITypes - - - + NSPrivacyTracking + + NSPrivacyTrackingDomains + + NSPrivacyCollectedDataTypes + + NSPrivacyAccessedAPITypes +