Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# browser-switch-android Release Notes

## unreleased
* Add a UUID to `BrowserSwitchActivityRegistryKey` used to start AuthTab flows to allow for multiple instances of
BrowserSwitchClient to have separate keys to deliver results to. Fixes an issue where multiple
BrowserSwitchClient instances are not supported.

## 3.5.0
* Add parameterized constructor `BrowserSwitchClient(ActivityResultRegistry)` for AuthTab support on Jetpack Compose
* Bump `androidx.browser` to `1.10.0-alpha02`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@

import org.json.JSONObject;

import java.util.UUID;

/**
* Client that manages the logic for browser switching.
*/
Expand All @@ -29,7 +31,7 @@ public class BrowserSwitchClient {
private ActivityResultLauncher<Intent> authTabLauncher;
private BrowserSwitchRequest pendingAuthTabRequest;

final String registryKey = "BrowserSwitchActivityRegistryKey";
final String registryKey = "BrowserSwitchActivityRegistryKey"+ UUID.randomUUID();

@Nullable
private BrowserSwitchFinalResult authTabCallbackResult;
Expand Down
Loading