You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Changed
hasPermissions and requestPermissions throw a StateError on a status
this version doesn't recognise (a null or an unknown string, which only a
mismatched platform package sends), instead of silently reading it as denied (#127).
Fixed
iOS: updateEvent with isAllDay: false and new dates on one occurrence
of an all-day series no longer reads back hours off on an iCloud calendar
(09:00–10:00 in Los Angeles came back as 02:00–03:00: the hours taken as
UTC). EventKit's iCloud store got the hours wrong when it detached and
flipped the occurrence in one save, so the plugin now detaches first and
flips second, as it already did for the all-day flip (#210); the local
store, and so the simulator, got it right (#212). Either flip now checks
that its first save detached the occurrence and throws DeviceCalendarException(operationFailed), the occurrence unchanged, when
it did not, rather than flipping an attached occurrence in one save.
updateRecurring with EventSpan.thisAndFollowing and a start on
another day the kept rule generates (the Wednesday of a Mon/Wed/Fri series
moved to its Friday) now splits the series there: the old series ends
before that occurrence, and the new one starts on the new day and
continues on the rule. It used to throw DeviceCalendarException(invalidArguments) whenever the rule pins days
(#194).
iOS: updateRecurring with EventSpan.allEvents and a start on another
day of a rule that pins days (the Monday of a Mon/Wed series moved to its
Wednesday) moves the series itself and returns its ID. It left the series
where it was, detached the first occurrence onto the new day beside it,
and returned that occurrence's /RID= ID (#206).
Android: hasPermissions without an Activity (a background context)
reports denied when the plugin has recorded a denial, instead of notDetermined (#127). CalendarPermissionStatus.notDetermined now also
documents that a denial made via another library isn't seen until one
request goes through this plugin.
Android: updateRecurring with EventSpan.thisAndFollowing on a CountEnd series that started more than five years before the split no
longer gives the new series too many occurrences (#124).
Android: updateRecurring with isAllDay: true and no start or duration keeps each occurrence on its own calendar day, spanning every
day it touched, as on iOS. The series used to read back as a single
occurrence, or on the wrong date (#124).
Android: a thisAndFollowing split that fails part-way no longer leaves a DELETED=1 tombstone of the new series on a local calendar (#124).
Android: updateEvent with isAllDay: true and no startDate or endDate on a timed event, or on one occurrence of a timed series, keeps
it on its own calendar day, spanning every day it touched, as on iOS. It
used to read back on the wrong date where the event's UTC date isn't its
local one.
iOS: updateEvent with isAllDay: true on one occurrence of a timed
series no longer reads back a day too long on an iCloud calendar. EventKit's
iCloud store put the detached occurrence's end a day late when it detached
and flipped the occurrence in one save, so the plugin now detaches first
and flips second; the local store, and so the simulator, got it right.
With no startDate or endDate, on a one-off or an occurrence, the
all-day span is now written explicitly, as Android does, rather than left
to EventKit to derive.