-
Notifications
You must be signed in to change notification settings - Fork 18
Add support for parametrized constructor #122
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
Conversation
- 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
…to use AuthTab or not
-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
browser-switch/src/main/java/com/braintreepayments/api/BrowserSwitchClient.java
Outdated
Show resolved
Hide resolved
browser-switch/src/main/java/com/braintreepayments/api/BrowserSwitchClient.java
Outdated
Show resolved
Hide resolved
browser-switch/src/main/java/com/braintreepayments/api/BrowserSwitchClient.java
Outdated
Show resolved
Hide resolved
-removed toast pop-ups
browser-switch/src/main/java/com/braintreepayments/api/BrowserSwitchClient.java
Show resolved
Hide resolved
…completeRequest() function
tdchow
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes look great!
|
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! |
|
@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? |
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
Authors