Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Braintree Core to 4.48.0 #478

Merged
merged 4 commits into from
Jul 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Braintree Android Drop-In Release Notes

## unreleased

* Bump braintree_android module dependency versions to `4.48.0`

## 6.16.0

* Bump braintree_android module dependency versions to `4.45.0`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,15 @@ private static DropInClientParams createDefaultParams(Context context, String au
customUrlScheme = dropInRequest.getCustomUrlScheme();
}

BraintreeOptions braintreeOptions =
new BraintreeOptions(context, null, customUrlScheme, authorization, clientTokenProvider, IntegrationType.DROP_IN);
BraintreeOptions braintreeOptions = new BraintreeOptions(
context,
null,
customUrlScheme,
null,
authorization,
clientTokenProvider,
IntegrationType.DROP_IN
);

BraintreeClient braintreeClient = new BraintreeClient(braintreeOptions);
return new DropInClientParams()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,15 @@ class DropInInternalClient {
private static DropInInternalClientParams createDefaultParams(Context context, String authorization, DropInRequest dropInRequest, String sessionId) {

String customUrlScheme = dropInRequest.getCustomUrlScheme();
BraintreeOptions braintreeOptions =
new BraintreeOptions(context, sessionId, customUrlScheme, authorization, null, IntegrationType.DROP_IN);
BraintreeOptions braintreeOptions = new BraintreeOptions(
context,
sessionId,
customUrlScheme,
null,
authorization,
null,
IntegrationType.DROP_IN
);

BraintreeClient braintreeClient = new BraintreeClient(braintreeOptions);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1200,7 +1200,7 @@ class DropInActivityUnitTest {
val metadata = JSONObject()
val returnUrlScheme = "sample-scheme"
val browserSwitchRequest =
BrowserSwitchRequest(requestCode, url, metadata, returnUrlScheme, true)
BrowserSwitchRequest(requestCode, url, metadata, returnUrlScheme, null, true)
return BrowserSwitchResult(BrowserSwitchStatus.SUCCESS, browserSwitchRequest)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1591,7 +1591,7 @@ private static BrowserSwitchResult createSuccessfulBrowserSwitchResult() {
Uri url = Uri.parse("www.example.com");
String returnUrlScheme = "sample-scheme";
BrowserSwitchRequest browserSwitchRequest = new BrowserSwitchRequest(
requestCode, url, new JSONObject(), returnUrlScheme, true);
requestCode, url, new JSONObject(), returnUrlScheme, null, true);
return new BrowserSwitchResult(BrowserSwitchStatus.SUCCESS, browserSwitchRequest);
}
}
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ buildscript {
}
}

ext.brainTreeVersion = "4.45.0"
ext.brainTreeVersion = "4.48.0"

ext.deps = [
"braintreeCore" : "com.braintreepayments.api:braintree-core:$brainTreeVersion",
Expand Down
Loading