Skip to content

Commit

Permalink
feat: Improve Privacy Manifest support for iOS 17 (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
einsteinx2 authored Apr 29, 2024
1 parent 3dbea88 commit e6235c3
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 20 deletions.
4 changes: 2 additions & 2 deletions Cartfile
Original file line number Diff line number Diff line change
@@ -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
9 changes: 5 additions & 4 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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: "."
),
]
Expand Down
5 changes: 3 additions & 2 deletions mParticle-Iterable.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -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
20 changes: 8 additions & 12 deletions mParticle-iterable/PrivacyInfo.xcprivacy
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,13 @@
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>NSPrivacyTracking</key>
<false/>
<key>NSPrivacyTrackingDomains</key>
<array/>
<key>NSPrivacyCollectedDataTypes</key>
<array>
<dict/>
</array>
<key>NSPrivacyAccessedAPITypes</key>
<array>
<dict/>
</array>
<key>NSPrivacyTracking</key>
<false/>
<key>NSPrivacyTrackingDomains</key>
<array/>
<key>NSPrivacyCollectedDataTypes</key>
<array/>
<key>NSPrivacyAccessedAPITypes</key>
<array/>
</dict>
</plist>

0 comments on commit e6235c3

Please sign in to comment.