Skip to content

Commit

Permalink
Merge pull request #1225 from braintree/privacy-manifest
Browse files Browse the repository at this point in the history
[main] Changelog for privacy manifest and feature branch merge
  • Loading branch information
KunJeongPark authored Mar 18, 2024
2 parents 8775b31 + c5604ac commit 0aa4c8a
Show file tree
Hide file tree
Showing 15 changed files with 467 additions and 11 deletions.
11 changes: 11 additions & 0 deletions Braintree.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -24,63 +24,74 @@ Pod::Spec.new do |s|
s.subspec "AmericanExpress" do |s|
s.source_files = "Sources/BraintreeAmericanExpress/*.swift"
s.dependency "Braintree/Core"
s.resource_bundle = { "BraintreeAmericanExpress_PrivacyInfo" => "Sources/BraintreeAmericanExpress/PrivacyInfo.xcprivacy" }
end

s.subspec "ApplePay" do |s|
s.source_files = "Sources/BraintreeApplePay/*.swift"
s.dependency "Braintree/Core"
s.resource_bundle = { "BraintreeApplePay_PrivacyInfo" => "Sources/BraintreeApplePay/PrivacyInfo.xcprivacy" }
s.frameworks = "PassKit"
end

s.subspec "Card" do |s|
s.source_files = "Sources/BraintreeCard/*.swift"
s.dependency "Braintree/Core"
s.resource_bundle = { "BraintreeCard_PrivacyInfo" => "Sources/BraintreeCard/PrivacyInfo.xcprivacy" }
end

s.subspec "Core" do |s|
s.source_files = "Sources/BraintreeCore/**/*.{swift,h}"
s.public_header_files = "Sources/BraintreeCore/*.h"
s.resource_bundle = { "BraintreeCore_PrivacyInfo" => "Sources/BraintreeCore/PrivacyInfo.xcprivacy" }
end

s.subspec "DataCollector" do |s|
s.source_files = "Sources/BraintreeDataCollector/*.swift"
s.dependency "Braintree/Core"
s.vendored_frameworks = "Frameworks/XCFrameworks/PPRiskMagnes.xcframework"
s.resource_bundle = { "BraintreeDataCollector_PrivacyInfo" => "Sources/BraintreeDataCollector/PrivacyInfo.xcprivacy"}
end

s.subspec "LocalPayment" do |s|
s.source_files = "Sources/BraintreeLocalPayment/*.swift"
s.dependency "Braintree/Core"
s.dependency "Braintree/DataCollector"
s.resource_bundle = { "BraintreeLocalPayment_PrivacyInfo" => "Sources/BraintreeLocalPayment/PrivacyInfo.xcprivacy" }
end

s.subspec "PayPal" 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|
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|
s.source_files = "Sources/BraintreePayPalNativeCheckout/*.swift"
s.dependency "Braintree/Core"
s.dependency "Braintree/PayPal"
s.dependency "PayPalCheckout", '1.2.0'
s.resource_bundle = { "BraintreePayPalNativeCheckout_PrivacyInfo" => "Sources/BraintreePayPalNativeCheckout/PrivacyInfo.xcprivacy" }
end

s.subspec "ThreeDSecure" do |s|
s.source_files = "Sources/BraintreeThreeDSecure/**/*.{swift}"
s.dependency "Braintree/Card"
s.vendored_frameworks = "Frameworks/XCFrameworks/CardinalMobile.xcframework"
s.resource_bundle = { "BraintreeThreeDSecure_PrivacyInfo" => "Sources/BraintreeThreeDSecure/PrivacyInfo.xcprivacy" }
end

s.subspec "Venmo" do |s|
s.source_files = "Sources/BraintreeVenmo/*.swift"
s.dependency "Braintree/Core"
s.resource_bundle = { "BraintreeVenmo_PrivacyInfo" => "Sources/BraintreeVenmo/PrivacyInfo.xcprivacy" }
end

end
44 changes: 44 additions & 0 deletions Braintree.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Braintree iOS SDK Release Notes

## unreleased
* [Meets Apple's new Privacy Update requirements](https://developer.apple.com/news/?id=3d8a9yyh)

## 6.14.0 (2024-03-13)
* BraintreeDataCollector
* Bump to PPRiskMagnes v5.5.0 with code signing & a privacy manifest file
Expand Down
33 changes: 22 additions & 11 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -57,36 +57,44 @@ let package = Package(
// Targets can depend on other targets in this package, and on products in packages this package depends on.
.target(
name: "BraintreeAmericanExpress",
dependencies: ["BraintreeCore"]
dependencies: ["BraintreeCore"],
resources: [.copy("PrivacyInfo.xcprivacy")]
),
.target(
name: "BraintreeApplePay",
dependencies: ["BraintreeCore"]
dependencies: ["BraintreeCore"],
resources: [.copy("PrivacyInfo.xcprivacy")]
),
.target(
name: "BraintreeCard",
dependencies: ["BraintreeCore"]
dependencies: ["BraintreeCore"],
resources: [.copy("PrivacyInfo.xcprivacy")]
),
.target(
name: "BraintreeCore",
exclude: ["Info.plist", "Braintree.h"]
exclude: ["Info.plist", "Braintree.h"],
resources: [.copy("PrivacyInfo.xcprivacy")]
),
.target(
name: "BraintreeDataCollector",
dependencies: ["BraintreeCore", "PPRiskMagnes"]
dependencies: ["BraintreeCore", "PPRiskMagnes"],
resources: [.copy("PrivacyInfo.xcprivacy")]
),
.target(
name: "BraintreeLocalPayment",
dependencies: ["BraintreeCore", "BraintreeDataCollector"]
dependencies: ["BraintreeCore", "BraintreeDataCollector"],
resources: [.copy("PrivacyInfo.xcprivacy")]
),
.target(
name: "BraintreePayPal",
dependencies: ["BraintreeCore", "BraintreeDataCollector"]
dependencies: ["BraintreeCore", "BraintreeDataCollector"],
resources: [.copy("PrivacyInfo.xcprivacy")]
),
.target(
name: "BraintreePayPalNativeCheckout",
dependencies: ["BraintreeCore", "BraintreePayPal", "PayPalCheckout"],
path: "Sources/BraintreePayPalNativeCheckout"
path: "Sources/BraintreePayPalNativeCheckout",
resources: [.copy("PrivacyInfo.xcprivacy")]
),
.binaryTarget(
name: "PayPalCheckout",
Expand All @@ -96,19 +104,22 @@ let package = Package(
.target(
name: "BraintreeSEPADirectDebit",
dependencies: ["BraintreeCore"],
path: "Sources/BraintreeSEPADirectDebit"
path: "Sources/BraintreeSEPADirectDebit",
resources: [.copy("PrivacyInfo.xcprivacy")]
),
.target(
name: "BraintreeThreeDSecure",
dependencies: ["BraintreeCard", "CardinalMobile", "PPRiskMagnes", "BraintreeCore"]
dependencies: ["BraintreeCard", "CardinalMobile", "PPRiskMagnes", "BraintreeCore"],
resources: [.copy("PrivacyInfo.xcprivacy")]
),
.binaryTarget(
name: "CardinalMobile",
path: "Frameworks/XCFrameworks/CardinalMobile.xcframework"
),
.target(
name: "BraintreeVenmo",
dependencies: ["BraintreeCore"]
dependencies: ["BraintreeCore"],
resources: [.copy("PrivacyInfo.xcprivacy")]
),
.binaryTarget(
name: "PPRiskMagnes",
Expand Down
21 changes: 21 additions & 0 deletions Sources/BraintreeAmericanExpress/PrivacyInfo.xcprivacy
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>NSPrivacyCollectedDataTypes</key>
<array>
<dict>
<key>NSPrivacyCollectedDataType</key>
<string>NSPrivacyCollectedDataTypePaymentInfo</string>
<key>NSPrivacyCollectedDataTypeLinked</key>
<false/>
<key>NSPrivacyCollectedDataTypeTracking</key>
<false/>
<key>NSPrivacyCollectedDataTypePurposes</key>
<array>
<string>NSPrivacyCollectedDataTypePurposeAppFunctionality</string>
</array>
</dict>
</array>
</dict>
</plist>
21 changes: 21 additions & 0 deletions Sources/BraintreeApplePay/PrivacyInfo.xcprivacy
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>NSPrivacyCollectedDataTypes</key>
<array>
<dict>
<key>NSPrivacyCollectedDataType</key>
<string>NSPrivacyCollectedDataTypePaymentInfo</string>
<key>NSPrivacyCollectedDataTypeLinked</key>
<false/>
<key>NSPrivacyCollectedDataTypeTracking</key>
<false/>
<key>NSPrivacyCollectedDataTypePurposes</key>
<array>
<string>NSPrivacyCollectedDataTypePurposeAppFunctionality</string>
</array>
</dict>
</array>
</dict>
</plist>
33 changes: 33 additions & 0 deletions Sources/BraintreeCard/PrivacyInfo.xcprivacy
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>NSPrivacyCollectedDataTypes</key>
<array>
<dict>
<key>NSPrivacyCollectedDataType</key>
<string>NSPrivacyCollectedDataTypePaymentInfo</string>
<key>NSPrivacyCollectedDataTypeLinked</key>
<false/>
<key>NSPrivacyCollectedDataTypeTracking</key>
<false/>
<key>NSPrivacyCollectedDataTypePurposes</key>
<array>
<string>NSPrivacyCollectedDataTypePurposeAppFunctionality</string>
</array>
</dict>
<dict>
<key>NSPrivacyCollectedDataType</key>
<string>NSPrivacyCollectedDataTypePhysicalAddress</string>
<key>NSPrivacyCollectedDataTypeLinked</key>
<false/>
<key>NSPrivacyCollectedDataTypeTracking</key>
<false/>
<key>NSPrivacyCollectedDataTypePurposes</key>
<array>
<string>NSPrivacyCollectedDataTypePurposeAppFunctionality</string>
</array>
</dict>
</array>
</dict>
</plist>
33 changes: 33 additions & 0 deletions Sources/BraintreeCore/PrivacyInfo.xcprivacy
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>NSPrivacyCollectedDataTypes</key>
<array>
<dict>
<key>NSPrivacyCollectedDataType</key>
<string>NSPrivacyCollectedDataTypeName</string>
<key>NSPrivacyCollectedDataTypeLinked</key>
<false/>
<key>NSPrivacyCollectedDataTypeTracking</key>
<false/>
<key>NSPrivacyCollectedDataTypePurposes</key>
<array>
<string>NSPrivacyCollectedDataTypePurposeAppFunctionality</string>
</array>
</dict>
<dict>
<key>NSPrivacyCollectedDataType</key>
<string>NSPrivacyCollectedDataTypePhysicalAddress</string>
<key>NSPrivacyCollectedDataTypeLinked</key>
<false/>
<key>NSPrivacyCollectedDataTypeTracking</key>
<false/>
<key>NSPrivacyCollectedDataTypePurposes</key>
<array>
<string>NSPrivacyCollectedDataTypePurposeAppFunctionality</string>
</array>
</dict>
</array>
</dict>
</plist>
21 changes: 21 additions & 0 deletions Sources/BraintreeDataCollector/PrivacyInfo.xcprivacy
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>NSPrivacyCollectedDataTypes</key>
<array>
<dict>
<key>NSPrivacyCollectedDataType</key>
<string>NSPrivacyCollectedDataTypeDeviceID</string>
<key>NSPrivacyCollectedDataTypeLinked</key>
<false/>
<key>NSPrivacyCollectedDataTypeTracking</key>
<false/>
<key>NSPrivacyCollectedDataTypePurposes</key>
<array>
<string>NSPrivacyCollectedDataTypePurposeAppFunctionality</string>
</array>
</dict>
</array>
</dict>
</plist>
57 changes: 57 additions & 0 deletions Sources/BraintreeLocalPayment/PrivacyInfo.xcprivacy
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>NSPrivacyCollectedDataTypes</key>
<array>
<dict>
<key>NSPrivacyCollectedDataType</key>
<string>NSPrivacyCollectedDataTypePaymentInfo</string>
<key>NSPrivacyCollectedDataTypeLinked</key>
<false/>
<key>NSPrivacyCollectedDataTypeTracking</key>
<false/>
<key>NSPrivacyCollectedDataTypePurposes</key>
<array>
<string>NSPrivacyCollectedDataTypePurposeAppFunctionality</string>
</array>
</dict>
<dict>
<key>NSPrivacyCollectedDataType</key>
<string>NSPrivacyCollectedDataTypeName</string>
<key>NSPrivacyCollectedDataTypeLinked</key>
<false/>
<key>NSPrivacyCollectedDataTypeTracking</key>
<false/>
<key>NSPrivacyCollectedDataTypePurposes</key>
<array>
<string>NSPrivacyCollectedDataTypePurposeAppFunctionality</string>
</array>
</dict>
<dict>
<key>NSPrivacyCollectedDataType</key>
<string>NSPrivacyCollectedDataTypeEmailAddress</string>
<key>NSPrivacyCollectedDataTypeLinked</key>
<false/>
<key>NSPrivacyCollectedDataTypeTracking</key>
<false/>
<key>NSPrivacyCollectedDataTypePurposes</key>
<array>
<string>NSPrivacyCollectedDataTypePurposeAppFunctionality</string>
</array>
</dict>
<dict>
<key>NSPrivacyCollectedDataType</key>
<string>NSPrivacyCollectedDataTypePhoneNumber</string>
<key>NSPrivacyCollectedDataTypeLinked</key>
<false/>
<key>NSPrivacyCollectedDataTypeTracking</key>
<false/>
<key>NSPrivacyCollectedDataTypePurposes</key>
<array>
<string>NSPrivacyCollectedDataTypePurposeAppFunctionality</string>
</array>
</dict>
</array>
</dict>
</plist>
33 changes: 33 additions & 0 deletions Sources/BraintreePayPal/PrivacyInfo.xcprivacy
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>NSPrivacyCollectedDataTypes</key>
<array>
<dict>
<key>NSPrivacyCollectedDataType</key>
<string>NSPrivacyCollectedDataTypePaymentInfo</string>
<key>NSPrivacyCollectedDataTypeLinked</key>
<false/>
<key>NSPrivacyCollectedDataTypeTracking</key>
<false/>
<key>NSPrivacyCollectedDataTypePurposes</key>
<array>
<string>NSPrivacyCollectedDataTypePurposeAppFunctionality</string>
</array>
</dict>
<dict>
<key>NSPrivacyCollectedDataType</key>
<string>NSPrivacyCollectedDataTypeName</string>
<key>NSPrivacyCollectedDataTypeLinked</key>
<false/>
<key>NSPrivacyCollectedDataTypeTracking</key>
<false/>
<key>NSPrivacyCollectedDataTypePurposes</key>
<array>
<string>NSPrivacyCollectedDataTypePurposeAppFunctionality</string>
</array>
</dict>
</array>
</dict>
</plist>
Loading

0 comments on commit 0aa4c8a

Please sign in to comment.