From 6ebf6698aa2764f5b2a63d07df471c5afd546b3a Mon Sep 17 00:00:00 2001 From: Haritha Mohan Date: Thu, 21 Sep 2023 09:22:40 -0700 Subject: [PATCH 1/3] [PushToTalk] Add support for Xcode 15 --- src/pushtotalk.cs | 5 +++++ .../xtro-sharpie/api-annotations-dotnet/iOS-PushToTalk.todo | 1 - tests/xtro-sharpie/iOS-PushToTalk.todo | 1 - 3 files changed, 5 insertions(+), 2 deletions(-) delete mode 100644 tests/xtro-sharpie/api-annotations-dotnet/iOS-PushToTalk.todo delete mode 100644 tests/xtro-sharpie/iOS-PushToTalk.todo diff --git a/src/pushtotalk.cs b/src/pushtotalk.cs index 5c00ef52b80..f6331f2a6c6 100644 --- a/src/pushtotalk.cs +++ b/src/pushtotalk.cs @@ -252,6 +252,11 @@ interface PTChannelManager { [Async] [Export ("setTransmissionMode:forChannelUUID:completionHandler:")] void SetTransmissionMode (PTTransmissionMode transmissionMode, NSUuid channelUuid, [NullAllowed] Action completionHandler); + + [NoWatch, NoTV, NoMacCatalyst, NoMac, iOS(17, 0)] + [Async] + [Export("setAccessoryButtonEventsEnabled:forChannelUUID:completionHandler:")] + void SetAccessoryButtonEventsEnabled(bool enabled, NSUuid channelUUID, [NullAllowed] Action completionHandler); } } diff --git a/tests/xtro-sharpie/api-annotations-dotnet/iOS-PushToTalk.todo b/tests/xtro-sharpie/api-annotations-dotnet/iOS-PushToTalk.todo deleted file mode 100644 index a8488638f4d..00000000000 --- a/tests/xtro-sharpie/api-annotations-dotnet/iOS-PushToTalk.todo +++ /dev/null @@ -1 +0,0 @@ -!missing-selector! PTChannelManager::setAccessoryButtonEventsEnabled:forChannelUUID:completionHandler: not bound diff --git a/tests/xtro-sharpie/iOS-PushToTalk.todo b/tests/xtro-sharpie/iOS-PushToTalk.todo deleted file mode 100644 index a8488638f4d..00000000000 --- a/tests/xtro-sharpie/iOS-PushToTalk.todo +++ /dev/null @@ -1 +0,0 @@ -!missing-selector! PTChannelManager::setAccessoryButtonEventsEnabled:forChannelUUID:completionHandler: not bound From c4278b00b669a6e84f09b53e519d7c1e39b1b110 Mon Sep 17 00:00:00 2001 From: GitHub Actions Autoformatter Date: Thu, 21 Sep 2023 16:27:34 +0000 Subject: [PATCH 2/3] Auto-format source code --- src/pushtotalk.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pushtotalk.cs b/src/pushtotalk.cs index f6331f2a6c6..f02d835dac4 100644 --- a/src/pushtotalk.cs +++ b/src/pushtotalk.cs @@ -253,10 +253,10 @@ interface PTChannelManager { [Export ("setTransmissionMode:forChannelUUID:completionHandler:")] void SetTransmissionMode (PTTransmissionMode transmissionMode, NSUuid channelUuid, [NullAllowed] Action completionHandler); - [NoWatch, NoTV, NoMacCatalyst, NoMac, iOS(17, 0)] + [NoWatch, NoTV, NoMacCatalyst, NoMac, iOS (17, 0)] [Async] - [Export("setAccessoryButtonEventsEnabled:forChannelUUID:completionHandler:")] - void SetAccessoryButtonEventsEnabled(bool enabled, NSUuid channelUUID, [NullAllowed] Action completionHandler); + [Export ("setAccessoryButtonEventsEnabled:forChannelUUID:completionHandler:")] + void SetAccessoryButtonEventsEnabled (bool enabled, NSUuid channelUUID, [NullAllowed] Action completionHandler); } } From 1cadf275af96ae2a180301dd45a8315ab7fb7901 Mon Sep 17 00:00:00 2001 From: Haritha Mohan Date: Thu, 21 Sep 2023 11:40:57 -0700 Subject: [PATCH 3/3] Update src/pushtotalk.cs Co-authored-by: Alex Soto --- src/pushtotalk.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pushtotalk.cs b/src/pushtotalk.cs index f02d835dac4..ef2d998dc1e 100644 --- a/src/pushtotalk.cs +++ b/src/pushtotalk.cs @@ -256,7 +256,7 @@ interface PTChannelManager { [NoWatch, NoTV, NoMacCatalyst, NoMac, iOS (17, 0)] [Async] [Export ("setAccessoryButtonEventsEnabled:forChannelUUID:completionHandler:")] - void SetAccessoryButtonEventsEnabled (bool enabled, NSUuid channelUUID, [NullAllowed] Action completionHandler); + void SetAccessoryButtonEvents (bool enabled, NSUuid channelUuid, [NullAllowed] Action completionHandler); } }