-
Notifications
You must be signed in to change notification settings - Fork 18
Completed AuthTab Implementation #121
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
browser-switch/src/main/java/com/braintreepayments/api/AuthTabInternalClient.kt
Outdated
Show resolved
Hide resolved
browser-switch/src/main/java/com/braintreepayments/api/AuthTabInternalClient.kt
Outdated
Show resolved
Hide resolved
browser-switch/src/main/java/com/braintreepayments/api/AuthTabInternalClient.kt
Outdated
Show resolved
Hide resolved
browser-switch/src/main/java/com/braintreepayments/api/AuthTabInternalClient.kt
Outdated
Show resolved
Hide resolved
browser-switch/src/main/java/com/braintreepayments/api/AuthTabInternalClient.kt
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
Show resolved
Hide resolved
I was thinking of potential ways to streamline the integration steps for Browser Switch with Auth Tab. What if we removed the exposed This way the caller of the Browser Switch SDK does not need to add additional logic for AuthTab and can use the existing API interface. @noguier @saperi22 - I haven't completely vetted this approach but wanted to get your thoughts! edit: This makes the assumption that the |
Chatted with @noguier on a call regarding my above comment and determined that the changes should be outside of the scope of this PR. We'll create a follow up ticket to investigate. |
I'm not sure if this is always true. Any official documentation on this would be great, but there's also not enough information to be pushing back on this right now. |
@noguier we could probably add detekt in one of our future PRs to catch some styling issues. |
browser-switch/src/main/java/com/braintreepayments/api/BrowserSwitchClient.java
Show resolved
Hide resolved
@saperi22 regarding @tdchow quote here:
Based on this section, specifically :
So, to my understanding as long as we call |
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 good! just had a few non blocking comments.
Thank you for your contribution to Braintree.
Summary of changes
Note: ACTIVITY_NEW_TASK is not supported for AuthTab
Checklist
Authors