From 8c567f28a9d360d74bc76a9e17dc44e3cc5e9766 Mon Sep 17 00:00:00 2001 From: ageddam Date: Wed, 6 Mar 2024 10:10:14 -0600 Subject: [PATCH 1/2] add privacy manifest to paypal module --- Braintree.podspec | 1 + Braintree.xcodeproj/project.pbxproj | 4 +++ Package.swift | 3 +- 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 c59bbf0d1e..06003e0d3b 100644 --- a/Braintree.podspec +++ b/Braintree.podspec @@ -62,6 +62,7 @@ Pod::Spec.new do |s| s.source_files = "Sources/BraintreePayPal/**/*.swift" s.dependency "Braintree/Core" s.dependency "Braintree/DataCollector" + 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 d63dbfb17f..90beb6469f 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 */; }; + 62A659A42B98CB23008DFD67 /* PrivacyInfo.xcprivacy in Resources */ = {isa = PBXBuildFile; fileRef = 62A659A32B98CB23008DFD67 /* PrivacyInfo.xcprivacy */; }; 62A746412B9255AC003D32FF /* PrivacyInfo.xcprivacy in Resources */ = {isa = PBXBuildFile; fileRef = 62A746402B9255AC003D32FF /* 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 */; }; @@ -701,6 +702,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 = ""; }; + 62A659A32B98CB23008DFD67 /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; lastKnownFileType = text.xml; path = PrivacyInfo.xcprivacy; sourceTree = ""; }; 62A746402B9255AC003D32FF /* 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 = ""; }; @@ -1182,6 +1184,7 @@ 57D9436D2968A8080079EAB1 /* BTPayPalLocaleCode.swift */, BE349112294B798300D2CF68 /* BTPayPalRequest.swift */, BE349110294B77E100D2CF68 /* BTPayPalVaultRequest.swift */, + 62A659A32B98CB23008DFD67 /* PrivacyInfo.xcprivacy */, ); path = BraintreePayPal; sourceTree = ""; @@ -2475,6 +2478,7 @@ isa = PBXResourcesBuildPhase; buildActionMask = 2147483647; files = ( + 62A659A42B98CB23008DFD67 /* PrivacyInfo.xcprivacy in Resources */, ); runOnlyForDeploymentPostprocessing = 0; }; diff --git a/Package.swift b/Package.swift index 673e489ca3..de61394488 100644 --- a/Package.swift +++ b/Package.swift @@ -85,7 +85,8 @@ let package = Package( ), .target( name: "BraintreePayPal", - dependencies: ["BraintreeCore", "BraintreeDataCollector"] + dependencies: ["BraintreeCore", "BraintreeDataCollector"], + resources: [.copy("PrivacyInfo.xcprivacy")] ), .target( name: "BraintreePayPalNativeCheckout", diff --git a/Sources/BraintreePayPal/PrivacyInfo.xcprivacy b/Sources/BraintreePayPal/PrivacyInfo.xcprivacy new file mode 100644 index 0000000000..6bc425591d --- /dev/null +++ b/Sources/BraintreePayPal/PrivacyInfo.xcprivacy @@ -0,0 +1,33 @@ + + + + + NSPrivacyCollectedDataTypes + + + NSPrivacyCollectedDataType + NSPrivacyCollectedDataTypePaymentInfo + NSPrivacyCollectedDataTypeLinked + + NSPrivacyCollectedDataTypeTracking + + NSPrivacyCollectedDataTypePurposes + + NSPrivacyCollectedDataTypePurposeAppFunctionality + + + + NSPrivacyCollectedDataType + NSPrivacyCollectedDataTypeName + NSPrivacyCollectedDataTypeLinked + + NSPrivacyCollectedDataTypeTracking + + NSPrivacyCollectedDataTypePurposes + + NSPrivacyCollectedDataTypePurposeAppFunctionality + + + + + From 95460142e1c59e965cd085e7e3abeb35d685b8bc Mon Sep 17 00:00:00 2001 From: ageddam Date: Thu, 7 Mar 2024 12:35:24 -0600 Subject: [PATCH 2/2] add missing files --- .../PrivacyInfo.xcprivacy | 45 ++++++++++++ .../PrivacyInfo.xcprivacy | 69 +++++++++++++++++++ 2 files changed, 114 insertions(+) create mode 100644 Sources/BraintreeSEPADirectDebit/PrivacyInfo.xcprivacy create mode 100644 Sources/BraintreeThreeDSecure/PrivacyInfo.xcprivacy 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 + + + + + diff --git a/Sources/BraintreeThreeDSecure/PrivacyInfo.xcprivacy b/Sources/BraintreeThreeDSecure/PrivacyInfo.xcprivacy new file mode 100644 index 0000000000..743c2bf6be --- /dev/null +++ b/Sources/BraintreeThreeDSecure/PrivacyInfo.xcprivacy @@ -0,0 +1,69 @@ + + + + + NSPrivacyCollectedDataTypes + + + NSPrivacyCollectedDataType + NSPrivacyCollectedDataTypePhoneNumber + NSPrivacyCollectedDataTypeLinked + + NSPrivacyCollectedDataTypeTracking + + NSPrivacyCollectedDataTypePurposes + + NSPrivacyCollectedDataTypePurposeAppFunctionality + + + + NSPrivacyCollectedDataType + NSPrivacyCollectedDataTypeEmailAddress + NSPrivacyCollectedDataTypeLinked + + NSPrivacyCollectedDataTypeTracking + + NSPrivacyCollectedDataTypePurposes + + NSPrivacyCollectedDataTypePurposeAppFunctionality + + + + NSPrivacyCollectedDataType + NSPrivacyCollectedDataTypePaymentInfo + NSPrivacyCollectedDataTypeLinked + + NSPrivacyCollectedDataTypeTracking + + NSPrivacyCollectedDataTypePurposes + + NSPrivacyCollectedDataTypePurposeAppFunctionality + + + + NSPrivacyCollectedDataType + NSPrivacyCollectedDataTypePhysicalAddress + NSPrivacyCollectedDataTypeLinked + + NSPrivacyCollectedDataTypeTracking + + NSPrivacyCollectedDataTypePurposes + + NSPrivacyCollectedDataTypePurposeAppFunctionality + + + + NSPrivacyCollectedDataType + NSPrivacyCollectedDataTypeName + NSPrivacyCollectedDataTypeLinked + + NSPrivacyCollectedDataTypeTracking + + NSPrivacyCollectedDataTypePurposes + + NSPrivacyCollectedDataTypePurposeAppFunctionality + + + + +