mirror of
https://github.com/bitfireAT/davx5-ose.git
synced 2025-12-23 23:17:50 -05:00
* Define interfaces * [WIP] Refactor sequence and UID handling in event uploads - Refactor `generateUpload` method to return `GeneratedResource`. - Update `SyncManager` to handle `GeneratedResource`. - Implement sequence and UID management in `CalendarSyncManager`. - Remove redundant `prepareForUpload` method from `LocalEvent`. * Refactor sequence handling in uploads - Move UID validation to `DavUtils.isGoodFileBaseName` - Update sequence directly in iCalendar for group-scheduled events - Rename `resourceBaseName` to `suggestedBaseName` for clarity * Refactor sequence / UID handling in contact uploads - Update `LocalAddress` interface to include `updateUid` method - Modify `ContactsSyncManager` to handle UID generation and update - Remove redundant UID handling in `LocalContact` and `LocalGroup` - Adjust code style settings for right margin * Remove redundant UID update from `ContactsSyncManager` and `CalendarSyncManager` * Implement UID handling in `TasksSyncManager` for uploads * Update JtxSyncManager - Update `JtxSyncManager.kt` to implement the `generateUpload` function. - Update `LocalJtxICalObject.kt` to include the `updateUid` method for updating UIDs in the collection. * Remove deprecated `prepareForUpload` method from `LocalResource` - Remove `prepareForUpload` implementations from `LocalContact`, `LocalEvent`, `LocalGroup`, and `LocalTask` * Rename `isGoodFileBaseName` to `isGoodFileName` in `DavUtils` * Fix tests * Move UID generation logic to `DavUtils.generateUidIfNecessary` - Use `DavUtils.fileNameFromUid` for generating file names - Update `ContactsSyncManager`, `CalendarSyncManager`, `TasksSyncManager`, and `JtxSyncManager` to use new utility methods * Add tests for DavUtils * Some tests * Refactor onSuccessfulUpload * Update KDoc * Logging * Remove unnecessary LocalEvent method * KDoc