-
Notifications
You must be signed in to change notification settings - Fork 505
Calendars Read-Only API #1010
Calendars Read-Only API #1010
Conversation
This comment has been minimized.
This comment has been minimized.
@mattleibow / @jamesmontemagno any suggestions on how to fix the failing build - afaik the test cases should be passing but fails during the build. Any assistance and/or feedback would be greatly appreciated. |
I am happy with this overall. I think we should pull in @Redth's permissions and merge with some changes that were needed here for calendar and then would be good to go. |
My main thoughts are on naming...
I understand not using just "Calendar" as that is the class name to access things, however you could make it "Calendars" for the class? lol and have "Calendar" :) |
I wouldn't worry about the android test failing it is something with the build server. |
Docs Build status updates of commit a4958d9: ✅ Validation status: passed
For more details, please refer to the build report. Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report. |
@jamesmontemagno we've updated the class names based on your suggestions. |
@nickrandolph the new permissions are in there. If you want to integrate with the new permissions that would be great! |
* Calendar Read-Only API * Return exceptions that match test case System.NotImplementedException --> Xamarin.Essentials.NotImplementedInReferenceAssemblyException (#45)
a4958d9
to
dcc9697
Compare
@jamesmontemagno / @Redth I've rebased onto the dev/calendar branch and have fixed up the usage for permissions. Let me know what else we need to adjust/work on. |
Awesome, that sounds great! Thanks for doing that. It is on the teams list to review and get in :) I am thinking we are doing 1.4.0 pretty soon so may get this in under a feature flag or put in right after to get into an early beta. |
I'd suggest going with the later option of early beta. Not sure how feature flagging would work since the calendar is pretty self contained, so feature flag wouldn't have much effect and just adds work to add/remove the flag. |
@jamesmontemagno do you need anything more from us on this PR? |
Hi @jamesmontemagno, I've brought some naming convention changes across as listed below: DeviceCalendar --> Calendar Which shouldn't cause any issues. But I noticed that since the permissions update that uwp was no longer working for the calendars API, this was due to UWP appointments. Not using x:Capability/x:DeviceCapability but instead uap:Capability. (See: Appointments Because of this please note the changes I've made to Permissions.uwp.cs, let me know if this poses any problems or requires any changes. Thanks! |
@jamesmontemagno @Redth this PR is currently targetting the dev/calendar branch which is from back in December. Any chance you can either update that branch or switch this PR to target a more recent branch. We're keen to rebase and test our read-only work before we start pushing the write functionality |
@Redth is the plan still to get this merged for the 1.5 release? If so, can you instruct what you need us to do. |
@nickrandolph no it will likely go into a 1.6.0. We had to rush 1.5 preview out to align with Forms’ AndroidX strategy. |
@Redth no probs. We're pretty close to pushing the write functionality. Would you be able to update the target branch for this PR so that we can rebase it? I would actually suggest keeping the target branch as master until you're close to being able to merge it. That way we can rebase and update it as necessary. |
@nickrandolph sure, just updated it to target develop (which is as good as master right now). |
Merging this into a local branch for better CI and so we can start the merge on this in #1384 . Looking pretty good so far. |
Calendars Read-Only API
Calendars API for reading calendar/event information seamlessly across uwp, iOS and Android
(Issue #996)
API
Calendars
Methods
Task<IEnumerable<Calendar>> GetCalendarsAsync()
Task<IEnumerable<CalendarEvent>> GetEventsAsync( string calendarId = null, DateTimeOffset? startDate = null, DateTimeOffset? endDate = null)
Task<CalendarEvent> GetEventByIdAsync(string eventId)
Classes
Scenarios
Platform Compatibility
Backward Compatibility
(https://docs.microsoft.com/en-us/uwp/api/windows.applicationmodel.appointments.appointment)
(https://developer.android.com/reference/android/provider/CalendarContract)
(https://developer.apple.com/documentation/eventkit/ekeventstore)
Contributors
@ScottBTR
@mkieres
@nickrandolph