Skip to content

Refactor: Introduce BrowserHelper and ClipboardHelper#16

Merged
rainxchzed merged 1 commit into
mainfrom
android-context-lack-fix
Dec 8, 2025
Merged

Refactor: Introduce BrowserHelper and ClipboardHelper#16
rainxchzed merged 1 commit into
mainfrom
android-context-lack-fix

Conversation

@rainxchzed
Copy link
Copy Markdown
Member

Refactored browser and clipboard interactions by introducing BrowserHelper and ClipboardHelper interfaces. This change decouples the functionality from specific views and improves dependency injection.

  • Implemented platform-specific BrowserHelper and ClipboardHelper for Android and JVM.
  • Removed expect/actual functions for openBrowser and copyToClipboard.
  • Injected helpers into ViewModels (AuthenticationViewModel, DetailsViewModel, SettingsViewModel) to handle browser opening and clipboard actions.
  • Moved TokenDataSource to a data_source subpackage.

Refactored browser and clipboard interactions by introducing `BrowserHelper` and `ClipboardHelper` interfaces. This change decouples the functionality from specific views and improves dependency injection.

- Implemented platform-specific `BrowserHelper` and `ClipboardHelper` for Android and JVM.
- Removed expect/actual functions for `openBrowser` and `copyToClipboard`.
- Injected helpers into ViewModels (`AuthenticationViewModel`, `DetailsViewModel`, `SettingsViewModel`) to handle browser opening and clipboard actions.
- Moved `TokenDataSource` to a `data_source` subpackage.
@rainxchzed rainxchzed merged commit 6b9cea5 into main Dec 8, 2025
1 check passed
@rainxchzed rainxchzed deleted the android-context-lack-fix branch December 17, 2025 05:06
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.

1 participant