Skip to content

desktop/5.0.0

Choose a tag to compare

@github-actions github-actions released this 04 Nov 05:30
· 8 commits to master since this release
Refactor: Decouple Snackbar logic and implement OPFS for Web

- Introduce `SnackbarInteractor` to decouple Snackbar logic from ViewModels and Composables.
- Create a `GlobalSnackbarHost` to provide a single, app-wide `SnackbarHostState`.
- Make the `App` composable parameterless by using `koinInject()` for dependencies.
- Remove `SnackbarHostState` passing from all screens and dialogs.
- Update ViewModels to use `SnackbarInteractor` for showing messages, removing direct state manipulation.
- Move `AdaptiveInteractor` to the presentation layer and `SnackbarInteractor` to a new `interactorModule`.

- feat(web): Implement OPFS (Origin-Private FileSystem) for persistent database storage, replacing the previous in-memory solution.
- Add a Gradle task to download the official SQLite WASM build.
- Configure webpack and a custom service worker (`coi-serviceworker.js`) to set required cross-origin headers.
- Update `WebDatabaseHolder` to use a custom worker (`sqlite.worker.js`) that initializes the database with the OPFS VFS.

- build: Upgrade various dependencies, including Compose, Firebase, and Gradle wrapper.