Skip to content

Conversation

@noguier
Copy link
Contributor

@noguier noguier commented Oct 10, 2025

Thank you for your contribution to Braintree.

Summary of changes

-added the ability to store a callback internally without exposing it
-modified BrowserSwitchClient's constructor to only accept Activity as a parameter
-rerouted the flow to always call completeRequest and check for the callback result within the function
-added a call to completeRequest in DemoActivitySingleTop.java onResume
-added the tests to support the new flow

Checklist

  • Added a changelog entry

Authors

List GitHub usernames for everyone who contributed to this pull request.

saperi22 and others added 14 commits September 25, 2025 12:18
- Update AGP version to 8.9.1 -- requires update to gradle wrapper 8.11.1
- Update compile and target sdk to 36
added AuthTabInternalClient,
removed ChromeCustomTabsInternalClient,
modified ComposeActivity & DemoActivitySingleTop to accept the above changes,
added toast visuals to see whether or not the AuthTab is supported
rewrote AuthTabInternalClient to Kotlin and added a ClearTop Flag,
wrote new AuthTabInternalClientUnitTest,
removed ChromeCustomTabsInternalClientUnitTest,
modified BrowserSwitchClientUnitTest to accept the AuthTab changes
removed CustomTabIntentBuilder,
removed tests associated with CustomTabs from AuthTabInternalClientUnitTest,,
modified BrowserSwitchClientUnitTest to accept the AuthTab launchURL signature
-Testing the authtab flow on older devices without intents
This reverts commit e27cfa1.
This reverts commit 9803e43. Branching still needed to provide support for older devices.
 - added AuthTabInternalClient,
 -  removed ChromeCustomTabsInternalClient,
 -  modified ComposeActivity & DemoActivitySingleTop to accept the above changes,
 - added toast visuals to see whether or not the AuthTab is supported
@noguier noguier requested a review from a team as a code owner October 10, 2025 21:36
-modified BrowserSwitchClient's constructor to only accept Activity as a parameter
-rerouted the flow to always call completeRequest and check for the callback result withing the function
-added a call to completeRequest in DemoActivitySingleTop.java onResume
-added the tests to support the new flow
-removed toast pop-ups
Copy link
Contributor

@tdchow tdchow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes look great!

@tdchow
Copy link
Contributor

tdchow commented Oct 14, 2025

I just tested on my physical device that has the correct Chrome version for AuthTab and an emulator that falls back to the CCT. Everything is working as expected!

@saperi22
Copy link
Contributor

@noguier since we are adding a new touch point for the merchants, we should consider adding a CHANGELOG.md entry. Would you mind doing that?

@noguier noguier merged commit 6ddac0d into auth-tab-feature Oct 15, 2025
2 checks passed
@noguier noguier deleted the ana-dev branch October 15, 2025 16:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants