Skip to content

Conversation

noguier
Copy link

@noguier noguier commented Oct 15, 2025

Summary of changes

  • updated default constructor to accept ActivityResultCaller as a parameter
  • updated CHANGELOG.md

Checklist

  • Added a changelog entry

Authors

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

saperi22 and others added 20 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
-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
@noguier noguier requested a review from a team as a code owner October 15, 2025 20:32
@noguier noguier changed the title Ana dev Update CHANGELOG.md and an argument for a parametrized constructor Oct 15, 2025
* @param activity The activity used to initialize the Auth Tab launcher
* @param caller The ActivityResultCaller (Activity or Fragment) used to initialize the Auth Tab launcher
*/
public void initializeAuthTabLauncher(@NonNull Activity activity) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Now that this is called in the constructor, what are your thoughts on making this method private?

* <ul>
* <li>The provided activity MUST implement {@link ActivityResultCaller}, which is true for all
* instances of {@link androidx.activity.ComponentActivity}.
* <li>The caller must be an {@link ActivityResultCaller} to register for activity results.
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we also update or add a point that the constructor must be called in the activity/fragment's onCreate?

* Add AuthTab Support
* Upgrade `androidx.browser:browser` dependency version to 1.9.0
* Upgrade `compileSdkVersion` and `targetSdkVersion` to API 36
* Add `AuthTabCallback` interface
Copy link
Contributor

Choose a reason for hiding this comment

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

Is the AuthTabCallback class still used with the current changes?

Copy link
Author

Choose a reason for hiding this comment

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

Great point!

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.

3 participants