From 56c821f7b641d12e4164d7529cf19020fdd18718 Mon Sep 17 00:00:00 2001 From: Haritha Mohan Date: Wed, 30 Aug 2023 15:53:42 -0400 Subject: [PATCH 1/2] [HomeKit] Add support for Xcode 15 beta 7 --- src/homekit.cs | 5 +++++ .../api-annotations-dotnet/MacCatalyst-HomeKit.todo | 1 - tests/xtro-sharpie/api-annotations-dotnet/iOS-HomeKit.todo | 1 - tests/xtro-sharpie/api-annotations-dotnet/tvOS-HomeKit.todo | 1 - tests/xtro-sharpie/iOS-HomeKit.todo | 1 - tests/xtro-sharpie/tvOS-HomeKit.todo | 1 - tests/xtro-sharpie/watchOS-HomeKit.todo | 1 - 7 files changed, 5 insertions(+), 6 deletions(-) delete mode 100644 tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-HomeKit.todo delete mode 100644 tests/xtro-sharpie/api-annotations-dotnet/iOS-HomeKit.todo delete mode 100644 tests/xtro-sharpie/api-annotations-dotnet/tvOS-HomeKit.todo delete mode 100644 tests/xtro-sharpie/iOS-HomeKit.todo delete mode 100644 tests/xtro-sharpie/tvOS-HomeKit.todo delete mode 100644 tests/xtro-sharpie/watchOS-HomeKit.todo diff --git a/src/homekit.cs b/src/homekit.cs index dfaf0badaa8a..255e2893e0a7 100644 --- a/src/homekit.cs +++ b/src/homekit.cs @@ -1120,6 +1120,11 @@ partial interface HMTrigger { [Export ("actionSets", ArgumentSemantic.Copy)] HMActionSet [] ActionSets { get; } + [Deprecated(PlatformName.MacOSX, 14, 0, message: "No longer supported.")] + [Deprecated(PlatformName.iOS, 17, 0, message: "No longer supported.")] + [Deprecated(PlatformName.WatchOS, 10, 0, message: "No longer supported.")] + [Deprecated(PlatformName.TvOS, 17, 0, message: "No longer supported.")] + [Deprecated(PlatformName.MacCatalyst, 17, 0, message: "No longer supported.")] [NullAllowed, Export ("lastFireDate", ArgumentSemantic.Copy)] NSDate LastFireDate { get; } diff --git a/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-HomeKit.todo b/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-HomeKit.todo deleted file mode 100644 index 76447e8bedbb..000000000000 --- a/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-HomeKit.todo +++ /dev/null @@ -1 +0,0 @@ -!missing-protocol-member! HMAccessoryDelegate::accessory:didUpdateWifiNetworkInfo: not found diff --git a/tests/xtro-sharpie/api-annotations-dotnet/iOS-HomeKit.todo b/tests/xtro-sharpie/api-annotations-dotnet/iOS-HomeKit.todo deleted file mode 100644 index 4c7da807a81d..000000000000 --- a/tests/xtro-sharpie/api-annotations-dotnet/iOS-HomeKit.todo +++ /dev/null @@ -1 +0,0 @@ -!deprecated-attribute-missing! HMTrigger::lastFireDate missing a [Deprecated] attribute diff --git a/tests/xtro-sharpie/api-annotations-dotnet/tvOS-HomeKit.todo b/tests/xtro-sharpie/api-annotations-dotnet/tvOS-HomeKit.todo deleted file mode 100644 index 4c7da807a81d..000000000000 --- a/tests/xtro-sharpie/api-annotations-dotnet/tvOS-HomeKit.todo +++ /dev/null @@ -1 +0,0 @@ -!deprecated-attribute-missing! HMTrigger::lastFireDate missing a [Deprecated] attribute diff --git a/tests/xtro-sharpie/iOS-HomeKit.todo b/tests/xtro-sharpie/iOS-HomeKit.todo deleted file mode 100644 index 4c7da807a81d..000000000000 --- a/tests/xtro-sharpie/iOS-HomeKit.todo +++ /dev/null @@ -1 +0,0 @@ -!deprecated-attribute-missing! HMTrigger::lastFireDate missing a [Deprecated] attribute diff --git a/tests/xtro-sharpie/tvOS-HomeKit.todo b/tests/xtro-sharpie/tvOS-HomeKit.todo deleted file mode 100644 index 4c7da807a81d..000000000000 --- a/tests/xtro-sharpie/tvOS-HomeKit.todo +++ /dev/null @@ -1 +0,0 @@ -!deprecated-attribute-missing! HMTrigger::lastFireDate missing a [Deprecated] attribute diff --git a/tests/xtro-sharpie/watchOS-HomeKit.todo b/tests/xtro-sharpie/watchOS-HomeKit.todo deleted file mode 100644 index 4c7da807a81d..000000000000 --- a/tests/xtro-sharpie/watchOS-HomeKit.todo +++ /dev/null @@ -1 +0,0 @@ -!deprecated-attribute-missing! HMTrigger::lastFireDate missing a [Deprecated] attribute From a20d1d2d90df408c344afa7db86bd8edb44dcb4e Mon Sep 17 00:00:00 2001 From: GitHub Actions Autoformatter Date: Wed, 30 Aug 2023 19:58:08 +0000 Subject: [PATCH 2/2] Auto-format source code --- src/homekit.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/homekit.cs b/src/homekit.cs index 255e2893e0a7..fe8f2cfcee82 100644 --- a/src/homekit.cs +++ b/src/homekit.cs @@ -1120,11 +1120,11 @@ partial interface HMTrigger { [Export ("actionSets", ArgumentSemantic.Copy)] HMActionSet [] ActionSets { get; } - [Deprecated(PlatformName.MacOSX, 14, 0, message: "No longer supported.")] - [Deprecated(PlatformName.iOS, 17, 0, message: "No longer supported.")] - [Deprecated(PlatformName.WatchOS, 10, 0, message: "No longer supported.")] - [Deprecated(PlatformName.TvOS, 17, 0, message: "No longer supported.")] - [Deprecated(PlatformName.MacCatalyst, 17, 0, message: "No longer supported.")] + [Deprecated (PlatformName.MacOSX, 14, 0, message: "No longer supported.")] + [Deprecated (PlatformName.iOS, 17, 0, message: "No longer supported.")] + [Deprecated (PlatformName.WatchOS, 10, 0, message: "No longer supported.")] + [Deprecated (PlatformName.TvOS, 17, 0, message: "No longer supported.")] + [Deprecated (PlatformName.MacCatalyst, 17, 0, message: "No longer supported.")] [NullAllowed, Export ("lastFireDate", ArgumentSemantic.Copy)] NSDate LastFireDate { get; }