Skip to content

Commit

Permalink
feat: Improve Privacy Manifest support for iOS 17
Browse files Browse the repository at this point in the history
  • Loading branch information
einsteinx2 committed May 7, 2024
1 parent 5c53a78 commit cffbdac
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 21 deletions.
5 changes: 3 additions & 2 deletions Cartfile
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
github "leanplum/leanplum-ios-sdk" ~> 6.1
github "mparticle/mparticle-apple-sdk" ~> 8.0
github "CleverTap/clevertap-ios-sdk" ~> 6.2
github "leanplum/leanplum-ios-sdk" ~> 6.4
github "mparticle/mparticle-apple-sdk" ~> 8.22
5 changes: 3 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,18 @@ let package = Package(
dependencies: [
.package(name: "mParticle-Apple-SDK",
url: "https://github.com/mParticle/mparticle-apple-sdk",
.upToNextMajor(from: "8.7.0")),
.upToNextMajor(from: "8.22.0")),
.package(name: "Leanplum",
url: "https://github.com/leanplum/leanplum-ios-sdk",
.upToNextMajor(from: "6.1.0")),
.upToNextMajor(from: "6.4.2")),
],
targets: [
.target(
name: "mParticle-Leanplum",
dependencies: ["mParticle-Apple-SDK","Leanplum"],
path: "mParticle-Leanplum",
exclude: ["File.swift", "Info.plist"],
resources: [.process("PrivacyInfo.xcprivacy")],
publicHeadersPath: ".",
cSettings: [
.headerSearchPath("."),
Expand Down
11 changes: 3 additions & 8 deletions mParticle-Leanplum.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,7 @@ Pod::Spec.new do |s|

s.ios.deployment_target = "9.0"
s.ios.source_files = 'mParticle-Leanplum/*.{h,m,mm}'
s.ios.dependency 'mParticle-Apple-SDK/mParticle', '~> 8.0'
s.ios.dependency 'Leanplum-iOS-SDK', '~> 6.1'
s.ios.frameworks = 'CFNetwork', 'SystemConfiguration', 'Security', 'CoreLocation', 'StoreKit'
s.ios.weak_frameworks = 'AdSupport'
s.ios.pod_target_xcconfig = {
'FRAMEWORK_SEARCH_PATHS' => '$(inherited) $(PODS_ROOT)/Leanplum-iOS-SDK/**',
'OTHER_LDFLAGS' => '$(inherited) -framework "Leanplum"'
}
s.ios.resource_bundles = { 'mParticle-Leanplum-Privacy' => ['mParticle-Leanplum/PrivacyInfo.xcprivacy'] }
s.ios.dependency 'mParticle-Apple-SDK/mParticle', '~> 8.22'
s.ios.dependency 'Leanplum-iOS-SDK', '~> 6.4'
end
6 changes: 3 additions & 3 deletions mParticle-Leanplum.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
archiveVersion = 1;
classes = {
};
objectVersion = 54;
objectVersion = 60;
objects = {

/* Begin PBXBuildFile section */
Expand All @@ -17,8 +17,8 @@
/* End PBXBuildFile section */

/* Begin PBXFileReference section */
535B24AB285798AF003141C8 /* Leanplum.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; name = Leanplum.xcframework; path = Carthage/Build/Leanplum.xcframework; sourceTree = "<group>"; };
535B24AD285798B5003141C8 /* mParticle_Apple_SDK.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; name = mParticle_Apple_SDK.xcframework; path = Carthage/Build/mParticle_Apple_SDK.xcframework; sourceTree = "<group>"; };
535B24AB285798AF003141C8 /* Leanplum.xcframework */ = {isa = PBXFileReference; expectedSignature = "AppleDeveloperProgram:4XLWYATZ5P:Leanplum, Inc."; lastKnownFileType = wrapper.xcframework; name = Leanplum.xcframework; path = Carthage/Build/Leanplum.xcframework; sourceTree = "<group>"; };
535B24AD285798B5003141C8 /* mParticle_Apple_SDK.xcframework */ = {isa = PBXFileReference; expectedSignature = "AppleDeveloperProgram:DLD43Y3TRP:mParticle, inc"; lastKnownFileType = wrapper.xcframework; name = mParticle_Apple_SDK.xcframework; path = Carthage/Build/mParticle_Apple_SDK.xcframework; sourceTree = "<group>"; };
537FB0DF284AB1BF0097D765 /* File.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = File.swift; sourceTree = "<group>"; };
53E9ACCA2BBF0E540062A03A /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xml; path = PrivacyInfo.xcprivacy; sourceTree = "<group>"; };
DB7E05A41CB819D300967FDF /* MPKitLeanplum.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MPKitLeanplum.h; sourceTree = "<group>"; };
Expand Down
8 changes: 2 additions & 6 deletions mParticle-Leanplum/PrivacyInfo.xcprivacy
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,8 @@
<key>NSPrivacyTrackingDomains</key>
<array/>
<key>NSPrivacyCollectedDataTypes</key>
<array>
<dict/>
</array>
<array/>
<key>NSPrivacyAccessedAPITypes</key>
<array>
<dict/>
</array>
<array/>
</dict>
</plist>

0 comments on commit cffbdac

Please sign in to comment.