diff --git a/.gitignore b/.gitignore index 95568e9..10dda58 100644 --- a/.gitignore +++ b/.gitignore @@ -35,6 +35,7 @@ playground.xcworkspace # Add this line if you want to avoid checking in source code from Swift Package Manager dependencies. # Packages/ .build/ +Package.resolved # CocoaPods # diff --git a/Package.swift b/Package.swift new file mode 100644 index 0000000..8f65f45 --- /dev/null +++ b/Package.swift @@ -0,0 +1,28 @@ +// swift-tools-version:5.3 +// The swift-tools-version declares the minimum version of Swift required to build this package. +import PackageDescription +let package = Package( + name: "mParticle-Optimizely", + platforms: [ .iOS(.v10), .tvOS(.v10) ], + products: [ + .library( + name: "mParticle-Optimizely", + targets: ["mParticle_Optimizely"]), + ], + dependencies: [ + .package(name: "mParticle-Apple-SDK", + url: "https://github.com/mParticle/mparticle-apple-sdk", + .upToNextMajor(from: "8.0.0")), + .package(name: "Optimizely", + url: "https://github.com/optimizely/swift-sdk", + .upToNextMajor(from: "4.0.0")), + ], + targets: [ + .target( + name: "mParticle_Optimizely", + dependencies: ["mParticle-Apple-SDK", "Optimizely"], + path: "mParticle_Optimizely", + publicHeadersPath: "." + ), + ] +) diff --git a/mParticle-Optimizely.podspec b/mParticle-Optimizely.podspec index 727e9d4..b3729e5 100755 --- a/mParticle-Optimizely.podspec +++ b/mParticle-Optimizely.podspec @@ -13,7 +13,7 @@ Pod::Spec.new do |s| s.source = { :git => "https://github.com/mparticle-integrations/mparticle-apple-integration-optimizely.git", :tag => s.version.to_s } s.social_media_url = "https://twitter.com/mparticle" s.dependency 'mParticle-Apple-SDK/mParticle', '~> 8.0' - s.dependency 'OptimizelySwiftSDK', '~> 3.0' + s.dependency 'OptimizelySwiftSDK', '~> 4.0' s.swift_versions = ['5.0'] s.ios.deployment_target = "10.0" diff --git a/mParticle_Optimizely.xcodeproj/project.pbxproj b/mParticle_Optimizely.xcodeproj/project.pbxproj index 26689f4..6f77c92 100644 --- a/mParticle_Optimizely.xcodeproj/project.pbxproj +++ b/mParticle_Optimizely.xcodeproj/project.pbxproj @@ -23,6 +23,8 @@ D377139824042B1000CF4773 /* Optimizely.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D37713932404247E00CF4773 /* Optimizely.framework */; }; D377139924042B2200CF4773 /* mParticle_Apple_SDK.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D37713952404249200CF4773 /* mParticle_Apple_SDK.framework */; }; D377139B24042B2200CF4773 /* OCMock.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D377139A24042B2200CF4773 /* OCMock.framework */; }; + D3B8187D2BC6C002001F09BB /* PrivacyInfo.xcprivacy in Resources */ = {isa = PBXBuildFile; fileRef = D3B8187C2BC6C002001F09BB /* PrivacyInfo.xcprivacy */; }; + D3B8187E2BC6C002001F09BB /* PrivacyInfo.xcprivacy in Resources */ = {isa = PBXBuildFile; fileRef = D3B8187C2BC6C002001F09BB /* PrivacyInfo.xcprivacy */; }; /* End PBXBuildFile section */ /* Begin PBXContainerItemProxy section */ @@ -62,6 +64,7 @@ D37713932404247E00CF4773 /* Optimizely.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Optimizely.framework; path = Carthage/Build/tvOS/Optimizely.framework; sourceTree = ""; }; D37713952404249200CF4773 /* mParticle_Apple_SDK.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = mParticle_Apple_SDK.framework; path = Carthage/Build/tvOS/mParticle_Apple_SDK.framework; sourceTree = ""; }; D377139A24042B2200CF4773 /* OCMock.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = OCMock.framework; path = Carthage/Build/tvOS/OCMock.framework; sourceTree = ""; }; + D3B8187C2BC6C002001F09BB /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; lastKnownFileType = text.xml; path = PrivacyInfo.xcprivacy; sourceTree = ""; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ @@ -152,6 +155,7 @@ D316BD4D217F67BC00688E56 /* MPKitOptimizely.m */, D316BD35217F670500688E56 /* mParticle_Optimizely.h */, D316BD36217F670600688E56 /* Info.plist */, + D3B8187C2BC6C002001F09BB /* PrivacyInfo.xcprivacy */, ); path = mParticle_Optimizely; sourceTree = ""; @@ -323,6 +327,7 @@ isa = PBXResourcesBuildPhase; buildActionMask = 2147483647; files = ( + D3B8187E2BC6C002001F09BB /* PrivacyInfo.xcprivacy in Resources */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -337,6 +342,7 @@ isa = PBXResourcesBuildPhase; buildActionMask = 2147483647; files = ( + D3B8187D2BC6C002001F09BB /* PrivacyInfo.xcprivacy in Resources */, ); runOnlyForDeploymentPostprocessing = 0; }; diff --git a/mParticle_Optimizely/PrivacyInfo.xcprivacy b/mParticle_Optimizely/PrivacyInfo.xcprivacy new file mode 100644 index 0000000..8ceb89c --- /dev/null +++ b/mParticle_Optimizely/PrivacyInfo.xcprivacy @@ -0,0 +1,18 @@ + + + + + NSPrivacyTracking + + NSPrivacyTrackingDomains + + NSPrivacyCollectedDataTypes + + + + NSPrivacyAccessedAPITypes + + + + +