-
Notifications
You must be signed in to change notification settings - Fork 18
Update CHANGELOG.md and an argument for a parametrized constructor #123
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
base: auth-tab-feature
Are you sure you want to change the base?
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
-removed toast pop-ups
…completeRequest() function
…ameter updated `CHANGELOG.md`
* @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) { |
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.
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. |
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.
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 |
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.
Is the AuthTabCallback class still used with the current changes?
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.
Great point!
Summary of changes
ActivityResultCaller
as a parameterCHANGELOG.md
Checklist
Authors