-
Notifications
You must be signed in to change notification settings - Fork 3
LocalCalendar/LocalEvent: provide all fields for DAVx5 #15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
16e0d65 to
87f9b76
Compare
95455ce to
a4fd57f
Compare
2878edf to
6530bba
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR refactors the DAVx5 LocalCalendar/LocalEvent functionality by moving field handling (such as organizer status, sync metadata, and event sequencing) into the library, eliminating the need for client-side overrides of populate/build functions.
- Added a new isOrganizer field in Event
- Refactored AndroidEvent constructors and methods to support library-managed fields
- Updated AndroidCalendar and test cases to align with these changes
Reviewed Changes
Copilot reviewed 6 out of 7 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| lib/src/main/kotlin/at/bitfire/ical4android/Event.kt | Added isOrganizer field to the Event data class |
| lib/src/main/kotlin/at/bitfire/ical4android/AndroidEvent.kt | Made AndroidEvent an open class, introduced sync metadata fields, and refactored populate/build methods |
| lib/src/main/kotlin/at/bitfire/ical4android/AndroidCalendar.kt | Updated calendar handling and integrated new sync state methods |
| lib/src/androidTest/kotlin/at/bitfire/ical4android/impl/TestEvent.kt | Updated TestEvent constructor to match the new AndroidEvent structure |
| lib/src/androidTest/kotlin/at/bitfire/ical4android/AndroidEventTest.kt | Added tests for the new sync metadata and isOrganizer handling |
| lib/src/androidTest/kotlin/at/bitfire/ical4android/AndroidCalendarTest.kt | Adjusted color insertion tests to use the updated Css3Color.entries |
sunkup
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I find it hard to spot errors here. Maybe we should move all the companion objects to the end of their class. I think it looks good otherwise.
Yes, me too … I think it's because the architecture is far too bad yet. But it has to start somehow. |
Moves functionality from DAVx5
LocalCalendarandLocalEventto the library so that there's no need to overridepopulate…andbuild…anymore.To be combined with bitfireAT/davx5-ose#1544