Skip to content
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

Added support for recurring events on Android and iOS #142

Closed

Conversation

AhegaHOE
Copy link

@AhegaHOE AhegaHOE commented Sep 27, 2024

This Merge Request adds support for recurring events on the following platforms:

  • Android
  • iOS

Additions

  • deleteEventById (JsDoc needs to be updated with @since)

Important Info

  • The new API endpoint needs to be added to the example app

Contributions

Closes #99

ebarooni and others added 2 commits August 30, 2024 22:25
+ Added new API method to delete recurring or normal events with specified span (needs to be tagged with @SInCE in JsDoc)

Info:
The new API endpoint needs to be added to the example app
@ebarooni ebarooni self-assigned this Sep 27, 2024
@ebarooni ebarooni linked an issue Sep 27, 2024 that may be closed by this pull request
package.json Outdated Show resolved Hide resolved
example/package.json Outdated Show resolved Hide resolved
src/web.ts Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
ios/Plugin/CapacitorCalendarPlugin.m Outdated Show resolved Hide resolved
ios/Plugin/CapacitorCalendarPlugin.swift Show resolved Hide resolved
@@ -381,6 +383,8 @@ export interface CapacitorCalendarPlugin {

/**
* Deletes events from the calendar given their IDs.
* If the event is recurring it will automatically delete this and future events.
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This might lead to unwanted behaviors. Could you add an optional span property for being able to choose between this or all future events to be deleted?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The problem kind of is that this only needs to be supplied for recurring events.
It would be possible to add an EventSpan array but this would have a lot of overhead for the caller of the function.

Maybe we could think of a different approach?

src/definitions.ts Outdated Show resolved Hide resolved
ios/Plugin/CapacitorCalendar.swift Outdated Show resolved Hide resolved
@AhegaHOE AhegaHOE requested a review from ebarooni October 2, 2024 08:13
@AhegaHOE
Copy link
Author

Hey @ebarooni I hope you're doing well! Is there any chance to get this merged?
It would be nice if you could re-review the changes! :D

@ebarooni ebarooni deleted the branch ebarooni:develop January 28, 2025 21:38
@ebarooni ebarooni closed this Jan 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Support recurring events
2 participants