Skip to content

Commit

Permalink
Merge branch 'v7' of https://github.com/braintree/braintree_ios into …
Browse files Browse the repository at this point in the history
…v7-venmo-universal-link

# Conflicts:
#	CHANGELOG.md
  • Loading branch information
stechiu committed Nov 12, 2024
2 parents ab02597 + 9001cc4 commit dae4473
Show file tree
Hide file tree
Showing 66 changed files with 186 additions and 2,932 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@ jobs:
# run sourcekitten on each Swift module individually
sourcekitten doc -- -workspace Braintree.xcworkspace -scheme BraintreeCore -destination 'name=iPhone 14,platform=iOS Simulator' > braintree-core.json
sourcekitten doc -- -workspace Braintree.xcworkspace -scheme BraintreePayPalNativeCheckout -destination 'name=iPhone 14,platform=iOS Simulator' > braintree-pay-pal-native-checkout.json
sourcekitten doc -- -workspace Braintree.xcworkspace -scheme BraintreeSEPADirectDebit -destination 'name=iPhone 14,platform=iOS Simulator' > braintree-sepa-direct-debit.json
sourcekitten doc -- -workspace Braintree.xcworkspace -scheme BraintreeAmericanExpress -destination 'name=iPhone 14,platform=iOS Simulator' > braintree-american-express.json
sourcekitten doc -- -workspace Braintree.xcworkspace -scheme BraintreeDataCollector -destination 'name=iPhone 14,platform=iOS Simulator' > braintree-data-collector.json
Expand All @@ -114,7 +113,7 @@ jobs:
sourcekitten doc -- -workspace Braintree.xcworkspace -scheme BraintreeShopperInsights -destination 'name=iPhone 14,platform=iOS Simulator' > braintree-shopper-insights.json
# merge sourcekitten output
jq -s '.[0] + .[1] + .[2] + .[3] + .[4] + .[5] + .[6] + .[7] + .[8] + .[9] + .[10] + .[11] + .[12]' braintree-core.json braintree-pay-pal-native-checkout.json braintree-sepa-direct-debit.json braintree-american-express.json braintree-data-collector.json braintree-apple-pay.json braintree-local-payment.json braintree-three-d-secure.json braintree-card.json braintree-paypal.json braintree-venmo.json braintree-paypal-messaging.json braintree-shopper-insights.json > swiftDoc.json
jq -s '.[0] + .[1] + .[2] + .[3] + .[4] + .[5] + .[6] + .[7] + .[8] + .[9] + .[10] + .[11] + .[12]' braintree-core.json braintree-sepa-direct-debit.json braintree-american-express.json braintree-data-collector.json braintree-apple-pay.json braintree-local-payment.json braintree-three-d-secure.json braintree-card.json braintree-paypal.json braintree-venmo.json braintree-paypal-messaging.json braintree-shopper-insights.json > swiftDoc.json
jazzy \
--sourcekitten-sourcefile swiftDoc.json \
Expand Down
8 changes: 0 additions & 8 deletions Braintree.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -79,14 +79,6 @@ Pod::Spec.new do |s|
s.resource_bundle = { "BraintreeShopperInsights_PrivacyInfo" => "Sources/BraintreeShopperInsights/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.3.0'
s.resource_bundle = { "BraintreePayPalNativeCheckout_PrivacyInfo" => "Sources/BraintreePayPalNativeCheckout/PrivacyInfo.xcprivacy" }
end

s.subspec "PayPalMessaging" do |s|
s.source_files = "Sources/BraintreePayPalMessaging/**/*.{swift}"
s.dependency "Braintree/Core"
Expand Down
574 changes: 24 additions & 550 deletions Braintree.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

This file was deleted.

15 changes: 10 additions & 5 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,16 @@
## unreleased (v7)
* Breaking Changes
* Bump minimum supported deployment target to iOS 16+
* BraintreeVenmo
* Update `BTVenmoRequest` to make all properties accessible on the initializer only vs via the dot syntax.
* Remove `fallbacktoWeb` property from `BTVenmoRequest`. All Venmo flows will now use universal links to switch to the Venmo app or fallback to the web flow if the Venmo app is not installed
* BraintreeSEPADirectDebit
* Update `BTSEPADirectDebitRequest` to make all properties accessible on the initializer only vs via the dot syntax.
* `countryCodeAlpha2` now returns a 2 character country code instead of a 3 character country code
* BraintreePayPalNativeCheckout
* Remove entire PayPal Native Checkout module
* BraintreeVenmo
* Update `BTVenmoRequest` to make all properties accessible on the initializer only vs via the dot syntax.
* Remove `fallbacktoWeb` property from `BTVenmoRequest`. All Venmo flows will now use universal links to switch to the Venmo app or fallback to the web flow if the Venmo app is not installed
* BraintreeSEPADirectDebit
* Update `BTSEPADirectDebitRequest` to make all properties accessible on the initializer only vs via the dot syntax.
* BraintreeLocalPayment
* Update `BTLocalPaymentRequest` to make all properties accessible on the initializer only vs via the dot syntax.

## unreleased
* BraintreePayPal
Expand Down
1 change: 0 additions & 1 deletion Cartfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
binary "https://assets.braintreegateway.com/mobile/ios/carthage-frameworks/cardinal-mobile/CardinalMobile.json" == 2.2.5-9
binary "https://assets.braintreegateway.com/mobile/ios/carthage-frameworks/pp-risk-magnes/PPRiskMagnes.json" == 5.5.0-static-Xcode15-MinOSVersion100
binary "https://github.com/paypal/paypalcheckout-ios/raw/main/Carthage/PayPalCheckout.json" == 1.3.0
binary "https://github.com/paypal/paypal-messages-ios/raw/main/Carthage/PayPalMessages.json" == 1.0.0
2 changes: 0 additions & 2 deletions Demo/Application/Base/ContainmentViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -231,8 +231,6 @@ class ContainmentViewController: UIViewController {
return DataCollectorViewController(authorization: authorization)
case "IdealViewController":
return IdealViewController(authorization: authorization)
case "PayPalNativeCheckoutViewController":
return PayPalNativeCheckoutViewController(authorization: authorization)
case "PayPalWebCheckoutViewController":
return PayPalWebCheckoutViewController(authorization: authorization)
case "SEPADirectDebitViewController":
Expand Down
4 changes: 2 additions & 2 deletions Demo/Application/Base/Settings/BraintreeDemoSettings.swift
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ class BraintreeDemoSettings: NSObject {
static var currentEnvironmentURLString: String {
switch currentEnvironment {
case .sandbox, .custom:
return "https://braintree-sample-merchant.herokuapp.com"
return "https://braintree-demo-merchant-63b7a2204f6e.herokuapp.com/"
case .production:
return "https://executive-sample-merchant.herokuapp.com"
return "https://braintree-production-merchant-455d21469113.herokuapp.com/"
}
}

Expand Down
2 changes: 0 additions & 2 deletions Demo/Application/Base/Settings/Settings.bundle/Root.plist
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
<string>BraintreeDemoCardTokenizationViewController</string>
<key>Titles</key>
<array>
<string>PayPal - Native Checkout</string>
<string>PayPal - Web Checkout</string>
<string>Credit Card Tokenization</string>
<string>Venmo - Custom Button</string>
Expand All @@ -32,7 +31,6 @@
</array>
<key>Values</key>
<array>
<string>PayPalNativeCheckoutViewController</string>
<string>PayPalWebCheckoutViewController</string>
<string>CardTokenizationViewController</string>
<string>VenmoViewController</string>
Expand Down
25 changes: 12 additions & 13 deletions Demo/Application/Features/IdealViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -51,24 +51,23 @@ class IdealViewController: PaymentButtonBaseViewController {
let apiClient = BTAPIClient(authorization: "sandbox_f252zhq7_hh4cpc39zq4rgjcg")!
localPaymentClient = BTLocalPaymentClient(apiClient: apiClient)

let request = BTLocalPaymentRequest()
request.paymentType = "ideal"
request.paymentTypeCountryCode = "NL"
request.currencyCode = "EUR"
request.amount = "1.01"
request.givenName = "Linh"
request.surname = "Ngo"
request.phone = "639847934"
request.email = "[email protected]"
request.isShippingAddressRequired = false

let postalAddress = BTPostalAddress()
postalAddress.countryCodeAlpha2 = "NL"
postalAddress.postalCode = "2585 GJ"
postalAddress.streetAddress = "836486 of 22321 Park Lake"
postalAddress.locality = "Den Haag"

request.address = postalAddress

let request = BTLocalPaymentRequest(
paymentType: "ideal",
amount: "1.01",
currencyCode: "EUR",
paymentTypeCountryCode: "NL",
address: postalAddress,
email: "[email protected]",
givenName: "Linh",
surname: "Ngo",
phone: "639847934"
)
request.localPaymentFlowDelegate = self

localPaymentClient.startPaymentFlow(request) { result, error in
Expand Down
80 changes: 0 additions & 80 deletions Demo/Application/Features/PayPalNativeCheckoutViewController.swift

This file was deleted.

Loading

0 comments on commit dae4473

Please sign in to comment.