From ee0d3b5fa6e607dfffb08b7850288dd9031725c7 Mon Sep 17 00:00:00 2001 From: Israel Soto Date: Mon, 18 Jul 2022 18:10:42 -0500 Subject: [PATCH] [EventKit] Add support for Xcode 14 beta 1 --- src/eventkit.cs | 7 ++++++- .../xtro-sharpie/api-annotations-dotnet/iOS-EventKit.todo | 2 -- .../api-annotations-dotnet/macOS-EventKit.todo | 1 - tests/xtro-sharpie/iOS-EventKit.todo | 2 -- tests/xtro-sharpie/macOS-EventKit.todo | 1 - tests/xtro-sharpie/watchOS-EventKit.todo | 2 -- 6 files changed, 6 insertions(+), 9 deletions(-) delete mode 100644 tests/xtro-sharpie/api-annotations-dotnet/iOS-EventKit.todo delete mode 100644 tests/xtro-sharpie/api-annotations-dotnet/macOS-EventKit.todo delete mode 100644 tests/xtro-sharpie/iOS-EventKit.todo delete mode 100644 tests/xtro-sharpie/macOS-EventKit.todo delete mode 100644 tests/xtro-sharpie/watchOS-EventKit.todo diff --git a/src/eventkit.cs b/src/eventkit.cs index 1bde2e17fc9e..00bcc81f4f63 100644 --- a/src/eventkit.cs +++ b/src/eventkit.cs @@ -40,6 +40,7 @@ namespace EventKit { + [Mac (10,8), iOS (13,0), MacCatalyst (13,1), Watch (6,0), NoTV] [BaseType (typeof (NSObject))] [Abstract] interface EKObject { @@ -162,6 +163,10 @@ interface EKSource { [Export ("calendarsForEntityType:")] NSSet GetCalendars (EKEntityType entityType); + + [Mac (13,0), iOS (16,0), MacCatalyst (16,0), Watch (9,0), NoTV] + [Export ("isDelegate", ArgumentSemantic.Assign)] + bool IsDelegate { get; } } [BaseType (typeof (EKObject))] @@ -498,7 +503,7 @@ NativeHandle Constructor (EKRecurrenceFrequency type, nint interval, [NullAllowe [BaseType (typeof (NSObject))] interface EKEventStore { - [NoiOS, Mac (10,11), NoWatch, NoMacCatalyst] + [Mac (10,11), iOS (16,0), MacCatalyst (16,0), Watch (9,0), NoTV] [Export ("initWithSources:")] NativeHandle Constructor (EKSource[] sources); diff --git a/tests/xtro-sharpie/api-annotations-dotnet/iOS-EventKit.todo b/tests/xtro-sharpie/api-annotations-dotnet/iOS-EventKit.todo deleted file mode 100644 index 0a68ddde7e58..000000000000 --- a/tests/xtro-sharpie/api-annotations-dotnet/iOS-EventKit.todo +++ /dev/null @@ -1,2 +0,0 @@ -!missing-selector! EKEventStore::initWithSources: not bound -!missing-selector! EKSource::isDelegate not bound diff --git a/tests/xtro-sharpie/api-annotations-dotnet/macOS-EventKit.todo b/tests/xtro-sharpie/api-annotations-dotnet/macOS-EventKit.todo deleted file mode 100644 index 3c56b6903ec1..000000000000 --- a/tests/xtro-sharpie/api-annotations-dotnet/macOS-EventKit.todo +++ /dev/null @@ -1 +0,0 @@ -!missing-selector! EKSource::isDelegate not bound diff --git a/tests/xtro-sharpie/iOS-EventKit.todo b/tests/xtro-sharpie/iOS-EventKit.todo deleted file mode 100644 index 0a68ddde7e58..000000000000 --- a/tests/xtro-sharpie/iOS-EventKit.todo +++ /dev/null @@ -1,2 +0,0 @@ -!missing-selector! EKEventStore::initWithSources: not bound -!missing-selector! EKSource::isDelegate not bound diff --git a/tests/xtro-sharpie/macOS-EventKit.todo b/tests/xtro-sharpie/macOS-EventKit.todo deleted file mode 100644 index 3c56b6903ec1..000000000000 --- a/tests/xtro-sharpie/macOS-EventKit.todo +++ /dev/null @@ -1 +0,0 @@ -!missing-selector! EKSource::isDelegate not bound diff --git a/tests/xtro-sharpie/watchOS-EventKit.todo b/tests/xtro-sharpie/watchOS-EventKit.todo deleted file mode 100644 index 0a68ddde7e58..000000000000 --- a/tests/xtro-sharpie/watchOS-EventKit.todo +++ /dev/null @@ -1,2 +0,0 @@ -!missing-selector! EKEventStore::initWithSources: not bound -!missing-selector! EKSource::isDelegate not bound