Skip to content

Dev#277

Merged
Ethran merged 2 commits into
mainfrom
dev
Jun 28, 2026
Merged

Dev#277
Ethran merged 2 commits into
mainfrom
dev

Conversation

@Ethran

@Ethran Ethran commented Jun 28, 2026

Copy link
Copy Markdown
Owner

No description provided.

Ethran added 2 commits June 29, 2026 00:30
… update testing dependencies.

### Core & Data
- **DomainError**: Simplified the `plus` operator implementation using safe casts and the elvis operator.
- **Kv (Dao, Repository, Proxy)**:
    - Removed `getLive` and `observeKv` methods to streamline the API towards coroutines.
    - Updated `KvProxy` to explicitly enable `ignoreUnknownKeys` in JSON decoding.
- **FolderSyncService**: Improved readability of update logic with additional parentheses.

### IO & Utils
- **XoppFile**: Refactored `fastParseFloat` to use a more idiomatic `when (val c = ...)` expression and grouped character branches.
- **Formatting**: Added trailing commas and improved line wrapping in `SyncSettings`, `checkPermissions`, and `DomainError` for better maintainability.

### Testing
- **EditorUnsupportedConcurrentChangeTests**:
    - Migrated to `androidx.compose.ui.test.junit4.v2.createComposeRule`.
    - Removed unused coroutine imports (`delay`, `filter`, `first`, `withTimeout`).
    - Standardized line breaks for long log messages and assignments.
…factor UI components for better performance.

### Build
- **Gradle**:
    - Migrated `compose_version` from the root `build.gradle` to the Version Catalog (`libs.versions.toml`).
    - Fixed property access logic for `IS_NEXT` and updated `projectDir` references to use `project.projectDir`.
    - Moved Robolectric `jvmArgs` configuration to a global `tasks.withType(Test)` block.
    - Corrected dependency scopes for `androidx.junit.ktx` and `room.testing.android` from `implementation` to `androidTestImplementation`.

### UI & UX
- **Switch**: Refactored thumb offset to use the lambda-based `Modifier.offset` with `IntOffset` to improve performance by avoiding recomposition during animations.
- **SyncSettingsTab**: Updated the auto-sync label to support pluralized string resources.

### Localization
- **Strings (English & Polish)**: Converted `sync_auto_sync_label` and `sync_clock_skew_warning` into `<plurals>` to correctly handle singular and plural time units (minute/minutes, second/seconds).

### Core & Testing
- **XoppFile**: Refactored bounding box initialization for clarity and updated KDoc references.
- **EditorSelectionThreadSafetyTests**:
    - Updated timeouts and delays to use Kotlin `Duration` APIs (`5.seconds`, `16.milliseconds`).
    - Simplified flow collection logic using `first { ... }` predicates.
    - Improved reflection-based delegate access and added sequence-based filtering.
- **FolderSyncService**: Minor code style and formatting improvements.
@Ethran Ethran merged commit 5ccabd8 into main Jun 28, 2026
4 of 5 checks passed
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