From eab692361a52308a476a74e00bc21b5e9eef2b71 Mon Sep 17 00:00:00 2001 From: Victoria Park Date: Thu, 28 Mar 2024 10:42:33 -0700 Subject: [PATCH] 5.x paypal privacy manifest --- Braintree.podspec | 1 + Braintree.xcodeproj/project.pbxproj | 6 +++- Package.swift | 1 + Sources/BraintreePayPal/PrivacyInfo.xcprivacy | 33 +++++++++++++++++++ 4 files changed, 40 insertions(+), 1 deletion(-) create mode 100644 Sources/BraintreePayPal/PrivacyInfo.xcprivacy diff --git a/Braintree.podspec b/Braintree.podspec index 1d7e88092c..ed8168916c 100644 --- a/Braintree.podspec +++ b/Braintree.podspec @@ -64,6 +64,7 @@ Pod::Spec.new do |s| s.public_header_files = "Sources/BraintreePayPal/Public/BraintreePayPal/*.h" s.dependency "Braintree/Core" s.dependency "Braintree/PayPalDataCollector" + s.resource_bundle = { "BraintreePayPal_PrivacyInfo" => "Sources/BraintreePayPal/PrivacyInfo.xcprivacy" } end s.subspec "SEPADirectDebit" do |s| diff --git a/Braintree.xcodeproj/project.pbxproj b/Braintree.xcodeproj/project.pbxproj index 525a1cb4a5..ac63e3637a 100644 --- a/Braintree.xcodeproj/project.pbxproj +++ b/Braintree.xcodeproj/project.pbxproj @@ -3,7 +3,7 @@ archiveVersion = 1; classes = { }; - objectVersion = 53; + objectVersion = 54; objects = { /* Begin PBXBuildFile section */ @@ -72,6 +72,7 @@ 2DE12F581B59C36900EA1BCF /* BTPostalAddress.h in Headers */ = {isa = PBXBuildFile; fileRef = A72E134B1B44630C002703DD /* BTPostalAddress.h */; settings = {ATTRIBUTES = (Public, ); }; }; 2DE12F591B59C36900EA1BCF /* BTPostalAddress.m in Sources */ = {isa = PBXBuildFile; fileRef = A72E134C1B44630C002703DD /* BTPostalAddress.m */; }; 2DE12F5A1B59C36900EA1BCF /* BTPaymentMethodNonce.h in Headers */ = {isa = PBXBuildFile; fileRef = 16E17D061B3DE3B40024F9AB /* BTPaymentMethodNonce.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 3B1842C52BB5E08D00B18B51 /* PrivacyInfo.xcprivacy in Resources */ = {isa = PBXBuildFile; fileRef = 3B1842C42BB5E08D00B18B51 /* PrivacyInfo.xcprivacy */; }; 3DAB5933286B40E2003A7BC5 /* BTPayPalNativeCheckoutRequest_Tests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3DAB5932286B40E2003A7BC5 /* BTPayPalNativeCheckoutRequest_Tests.swift */; }; 3DAB5937286B9C6E003A7BC5 /* BTPayPalNativeHermesResponse_Tests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3DAB5936286B9C6E003A7BC5 /* BTPayPalNativeHermesResponse_Tests.swift */; }; 3DAB5939286BA3D0003A7BC5 /* BTPayPalNativeTokenizationClient_Tests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3DAB5938286BA3D0003A7BC5 /* BTPayPalNativeTokenizationClient_Tests.swift */; }; @@ -816,6 +817,7 @@ 2DE12F091B59BE0100EA1BCF /* BraintreeCore.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = BraintreeCore.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 2DE12F0B1B59BE0100EA1BCF /* BraintreeCore.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; lineEnding = 0; path = BraintreeCore.h; sourceTree = ""; }; 2DE12F0D1B59BE0100EA1BCF /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 3B1842C42BB5E08D00B18B51 /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; lastKnownFileType = text.xml; path = PrivacyInfo.xcprivacy; sourceTree = ""; }; 3DAB592B28664099003A7BC5 /* PayPalCheckout.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; name = PayPalCheckout.xcframework; path = Pods/PayPalCheckout/PayPalCheckout.xcframework; sourceTree = ""; }; 3DAB5932286B40E2003A7BC5 /* BTPayPalNativeCheckoutRequest_Tests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BTPayPalNativeCheckoutRequest_Tests.swift; sourceTree = ""; }; 3DAB5936286B9C6E003A7BC5 /* BTPayPalNativeHermesResponse_Tests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BTPayPalNativeHermesResponse_Tests.swift; sourceTree = ""; }; @@ -1485,6 +1487,7 @@ 16E17D271B3DFA0F0024F9AB /* BTPayPalRequest.m */, 427F324A25D19E5E00435294 /* BTPayPalVaultRequest.m */, 41777D461B8D02050026F987 /* Public */, + 3B1842C42BB5E08D00B18B51 /* PrivacyInfo.xcprivacy */, ); path = BraintreePayPal; sourceTree = ""; @@ -3274,6 +3277,7 @@ isa = PBXResourcesBuildPhase; buildActionMask = 2147483647; files = ( + 3B1842C52BB5E08D00B18B51 /* PrivacyInfo.xcprivacy in Resources */, ); runOnlyForDeploymentPostprocessing = 0; }; diff --git a/Package.swift b/Package.swift index 30d8fbd57d..e207a53b88 100644 --- a/Package.swift +++ b/Package.swift @@ -97,6 +97,7 @@ let package = Package( .target( name: "BraintreePayPal", dependencies: ["BraintreeCore", "PayPalDataCollector"], + resources: [.copy("PrivacyInfo.xcprivacy")], publicHeadersPath: "Public" ), .target( diff --git a/Sources/BraintreePayPal/PrivacyInfo.xcprivacy b/Sources/BraintreePayPal/PrivacyInfo.xcprivacy new file mode 100644 index 0000000000..d1adf1e1a3 --- /dev/null +++ b/Sources/BraintreePayPal/PrivacyInfo.xcprivacy @@ -0,0 +1,33 @@ + + + + + NSPrivacyCollectedDataTypes + + + NSPrivacyCollectedDataType + NSPrivacyCollectedDataTypeName + NSPrivacyCollectedDataTypeLinked + + NSPrivacyCollectedDataTypeTracking + + NSPrivacyCollectedDataTypePurposes + + NSPrivacyCollectedDataTypePurposeAppFunctionality + + + + NSPrivacyCollectedDataType + NSPrivacyCollectedDataTypePaymentInfo + NSPrivacyCollectedDataTypeLinked + + NSPrivacyCollectedDataTypeTracking + + NSPrivacyCollectedDataTypePurposes + + NSPrivacyCollectedDataTypePurposeAppFunctionality + + + + +