-
Notifications
You must be signed in to change notification settings - Fork 3
Event builders: use VEvent instead of deprecated Event as input
#120
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
Event builders: use VEvent instead of deprecated Event as input
#120
Conversation
- Add unknownProperties() method to filter known properties - Update test for unknown properties handling - Refactor KNOWN_PROPERTY_NAMES to include processed properties
VEvent instead of deprecated Event as input
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 pull request refactors the calendar mapping code to work directly with VEvent (ical4j native components) instead of the deprecated Event data class. This is a significant architectural change that modernizes the codebase by removing an abstraction layer and working more directly with the iCalendar library's native types.
Key changes:
- Replace all
Eventusages withVEventin builder classes and tests - Update property access from direct field access to ical4j's property-based API
- Migrate from
Event.exceptionstoAssociatedEventsstructure - Remove deprecated
Eventtest file and move tests to appropriate builder test files
Reviewed Changes
Copilot reviewed 62 out of 62 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
AndroidEventBuilder.kt |
Renamed from LegacyAndroidEventBuilder2, now accepts AssociatedEvents instead of Event |
| Builder classes (20+ files) | Updated build() signatures from Event to VEvent, changed property access patterns |
| Test files (25+ files) | Migrated test data from Event constructor to VEvent with propertyListOf() helper |
ICalendar.kt |
Refactored vAlarmToMin() to accept individual date properties instead of Event/Task objects |
Event.kt |
Removed organizerEmail property, increased deprecation level to WARNING |
EventTest.kt |
Deleted - tests moved to AttendeesBuilderTest.kt |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This PR changes the builders and the tests so that they direclty use the ical4j
VEventclass instead of the deprecatedEventdata class.Also closes #100.