From ad544db14874681fd147253ff879a412e9d0e863 Mon Sep 17 00:00:00 2001 From: ageddam Date: Mon, 4 Mar 2024 13:26:50 -0600 Subject: [PATCH 1/2] add privacy manifest to sepa-direct-debit --- Braintree.podspec | 1 + Braintree.xcodeproj/project.pbxproj | 4 ++ Package.swift | 3 +- .../PrivacyInfo.xcprivacy | 45 +++++++++++++++++++ 4 files changed, 52 insertions(+), 1 deletion(-) create mode 100644 Sources/BraintreeSEPADirectDebit/PrivacyInfo.xcprivacy diff --git a/Braintree.podspec b/Braintree.podspec index 907d31b3e9..f78ffb62b4 100644 --- a/Braintree.podspec +++ b/Braintree.podspec @@ -65,6 +65,7 @@ Pod::Spec.new do |s| s.subspec "SEPADirectDebit" do |s| s.source_files = "Sources/BraintreeSEPADirectDebit/*.swift" s.dependency "Braintree/Core" + s.resource_bundle = { "BraintreeSEPADirectDebit_PrivacyInfo => "Sources/BraintreeSEPADirectDebit/PrivacyInfo.xcprivacy" } end s.subspec "PayPalNativeCheckout" do |s| diff --git a/Braintree.xcodeproj/project.pbxproj b/Braintree.xcodeproj/project.pbxproj index 210e81e976..5a9bc5f022 100644 --- a/Braintree.xcodeproj/project.pbxproj +++ b/Braintree.xcodeproj/project.pbxproj @@ -73,6 +73,7 @@ 57D94370296CC79B0079EAB1 /* BraintreePayPal_IntegrationTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 57D9436F296CC79B0079EAB1 /* BraintreePayPal_IntegrationTests.swift */; }; 57D94372296CCA2F0079EAB1 /* String+NonceValidation.swift in Sources */ = {isa = PBXBuildFile; fileRef = 57D94371296CCA2F0079EAB1 /* String+NonceValidation.swift */; }; 6298A1992B91010600E46EDF /* PrivacyInfo.xcprivacy in Resources */ = {isa = PBXBuildFile; fileRef = 6298A1982B91010600E46EDF /* PrivacyInfo.xcprivacy */; }; + 62DE8FBF2B9656BF00F08F53 /* PrivacyInfo.xcprivacy in Resources */ = {isa = PBXBuildFile; fileRef = 62DE8FBE2B9656BF00F08F53 /* PrivacyInfo.xcprivacy */; }; 800E78C429E0DD5300D1B0FC /* FPTIBatchData.swift in Sources */ = {isa = PBXBuildFile; fileRef = 800E78C329E0DD5300D1B0FC /* FPTIBatchData.swift */; }; 800FC544257FDC5100DEE132 /* BTApplePayCardNonce_Tests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 800FC543257FDC5100DEE132 /* BTApplePayCardNonce_Tests.swift */; }; 804326BF2B1A5C5B0044E90B /* BTApplePaymentTokensRequest.swift in Sources */ = {isa = PBXBuildFile; fileRef = 804326BE2B1A5C5B0044E90B /* BTApplePaymentTokensRequest.swift */; }; @@ -699,6 +700,7 @@ 57D94371296CCA2F0079EAB1 /* String+NonceValidation.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "String+NonceValidation.swift"; sourceTree = ""; }; 59A4135427B90CD7AE94D5CC /* Pods-Tests-IntegrationTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Tests-IntegrationTests.debug.xcconfig"; path = "Target Support Files/Pods-Tests-IntegrationTests/Pods-Tests-IntegrationTests.debug.xcconfig"; sourceTree = ""; }; 6298A1982B91010600E46EDF /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; lastKnownFileType = text.xml; path = PrivacyInfo.xcprivacy; sourceTree = ""; }; + 62DE8FBE2B9656BF00F08F53 /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; lastKnownFileType = text.xml; path = PrivacyInfo.xcprivacy; sourceTree = ""; }; 800E23DC22206A8300C5D22E /* BTThreeDSecureAuthenticateJWT_Tests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BTThreeDSecureAuthenticateJWT_Tests.swift; sourceTree = ""; }; 800E78C329E0DD5300D1B0FC /* FPTIBatchData.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FPTIBatchData.swift; sourceTree = ""; }; 800FC543257FDC5100DEE132 /* BTApplePayCardNonce_Tests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BTApplePayCardNonce_Tests.swift; sourceTree = ""; }; @@ -1745,6 +1747,7 @@ BEF177A52B51C7ED004F0F35 /* SEPADebitAccountsRequest.swift */, BEF177A72B51D6A7004F0F35 /* SEPADebitRequest.swift */, BE0B163E27E0CD7C00868C77 /* SEPADirectDebitAPI.swift */, + 62DE8FBE2B9656BF00F08F53 /* PrivacyInfo.xcprivacy */, ); path = BraintreeSEPADirectDebit; sourceTree = ""; @@ -2617,6 +2620,7 @@ isa = PBXResourcesBuildPhase; buildActionMask = 2147483647; files = ( + 62DE8FBF2B9656BF00F08F53 /* PrivacyInfo.xcprivacy in Resources */, ); runOnlyForDeploymentPostprocessing = 0; }; diff --git a/Package.swift b/Package.swift index abedec4b1c..b206af62ea 100644 --- a/Package.swift +++ b/Package.swift @@ -98,7 +98,8 @@ let package = Package( .target( name: "BraintreeSEPADirectDebit", dependencies: ["BraintreeCore"], - path: "Sources/BraintreeSEPADirectDebit" + path: "Sources/BraintreeSEPADirectDebit", + resources: [.copy("PrivacyInfo.xcprivacy")] ), .target( name: "BraintreeThreeDSecure", diff --git a/Sources/BraintreeSEPADirectDebit/PrivacyInfo.xcprivacy b/Sources/BraintreeSEPADirectDebit/PrivacyInfo.xcprivacy new file mode 100644 index 0000000000..4729d26fda --- /dev/null +++ b/Sources/BraintreeSEPADirectDebit/PrivacyInfo.xcprivacy @@ -0,0 +1,45 @@ + + + + + NSPrivacyCollectedDataTypes + + + NSPrivacyCollectedDataType + NSPrivacyCollectedDataTypePhysicalAddress + NSPrivacyCollectedDataTypeLinked + + NSPrivacyCollectedDataTypeTracking + + NSPrivacyCollectedDataTypePurposes + + NSPrivacyCollectedDataTypePurposeAppFunctionality + + + + NSPrivacyCollectedDataType + NSPrivacyCollectedDataTypePaymentInfo + NSPrivacyCollectedDataTypeLinked + + NSPrivacyCollectedDataTypeTracking + + NSPrivacyCollectedDataTypePurposes + + NSPrivacyCollectedDataTypePurposeAppFunctionality + + + + NSPrivacyCollectedDataType + NSPrivacyCollectedDataTypeName + NSPrivacyCollectedDataTypeLinked + + NSPrivacyCollectedDataTypeTracking + + NSPrivacyCollectedDataTypePurposes + + NSPrivacyCollectedDataTypePurposeAppFunctionality + + + + + From d6b8ccf6cad3d27b3907b024a7419c390bf97197 Mon Sep 17 00:00:00 2001 From: ageddam Date: Mon, 4 Mar 2024 13:29:41 -0600 Subject: [PATCH 2/2] fix resource tag --- Braintree.podspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Braintree.podspec b/Braintree.podspec index f78ffb62b4..8b62994bc1 100644 --- a/Braintree.podspec +++ b/Braintree.podspec @@ -65,7 +65,7 @@ Pod::Spec.new do |s| s.subspec "SEPADirectDebit" do |s| s.source_files = "Sources/BraintreeSEPADirectDebit/*.swift" s.dependency "Braintree/Core" - s.resource_bundle = { "BraintreeSEPADirectDebit_PrivacyInfo => "Sources/BraintreeSEPADirectDebit/PrivacyInfo.xcprivacy" } + s.resource_bundle = { "BraintreeSEPADirectDebit_PrivacyInfo" => "Sources/BraintreeSEPADirectDebit/PrivacyInfo.xcprivacy" } end s.subspec "PayPalNativeCheckout" do |s|