From 9f4c45a49f527354545105bea4dae284669132bf Mon Sep 17 00:00:00 2001 From: Haritha Mohan Date: Wed, 6 Sep 2023 00:16:52 -0400 Subject: [PATCH 1/3] [UniformTypeIdentifiers] Add support for Xcode 15 beta 8 --- src/uniformtypeidentifiers.cs | 4 ++++ .../MacCatalyst-UniformTypeIdentifiers.todo | 8 -------- .../iOS-UniformTypeIdentifiers.todo | 1 - .../macOS-UniformTypeIdentifiers.todo | 1 - .../tvOS-UniformTypeIdentifiers.todo | 1 - tests/xtro-sharpie/iOS-UniformTypeIdentifiers.todo | 1 - tests/xtro-sharpie/macOS-UniformTypeIdentifiers.todo | 1 - tests/xtro-sharpie/tvOS-UniformTypeIdentifiers.todo | 1 - tests/xtro-sharpie/watchOS-UniformTypeIdentifiers.todo | 1 - 9 files changed, 4 insertions(+), 15 deletions(-) delete mode 100644 tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-UniformTypeIdentifiers.todo delete mode 100644 tests/xtro-sharpie/api-annotations-dotnet/iOS-UniformTypeIdentifiers.todo delete mode 100644 tests/xtro-sharpie/api-annotations-dotnet/macOS-UniformTypeIdentifiers.todo delete mode 100644 tests/xtro-sharpie/api-annotations-dotnet/tvOS-UniformTypeIdentifiers.todo delete mode 100644 tests/xtro-sharpie/iOS-UniformTypeIdentifiers.todo delete mode 100644 tests/xtro-sharpie/macOS-UniformTypeIdentifiers.todo delete mode 100644 tests/xtro-sharpie/tvOS-UniformTypeIdentifiers.todo delete mode 100644 tests/xtro-sharpie/watchOS-UniformTypeIdentifiers.todo diff --git a/src/uniformtypeidentifiers.cs b/src/uniformtypeidentifiers.cs index 62c0c4f90cae..6b36de01b6ac 100644 --- a/src/uniformtypeidentifiers.cs +++ b/src/uniformtypeidentifiers.cs @@ -542,6 +542,10 @@ interface UTTypes { [Field ("UTTypeLog")] UTType Log { get; } + + [Watch(10, 0), TV(17, 0), MacCatalyst(17, 0), Mac(14, 0), iOS(17, 0)] + [Field("UTTypeAHAP")] + UTType UTTypeAHAP { get; } } [Introduced (PlatformName.MacCatalyst, 14, 0)] diff --git a/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-UniformTypeIdentifiers.todo b/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-UniformTypeIdentifiers.todo deleted file mode 100644 index 1c969785eaa3..000000000000 --- a/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-UniformTypeIdentifiers.todo +++ /dev/null @@ -1,8 +0,0 @@ -!missing-selector! NSItemProvider::initWithContentsOfURL:contentType:openInPlace:coordinated:visibility: not bound -!missing-selector! NSItemProvider::loadDataRepresentationForContentType:completionHandler: not bound -!missing-selector! NSItemProvider::loadFileRepresentationForContentType:openInPlace:completionHandler: not bound -!missing-selector! NSItemProvider::registerDataRepresentationForContentType:visibility:loadHandler: not bound -!missing-selector! NSItemProvider::registeredContentTypes not bound -!missing-selector! NSItemProvider::registeredContentTypesConformingToContentType: not bound -!missing-selector! NSItemProvider::registeredContentTypesForOpenInPlace not bound -!missing-selector! NSItemProvider::registerFileRepresentationForContentType:visibility:openInPlace:loadHandler: not bound diff --git a/tests/xtro-sharpie/api-annotations-dotnet/iOS-UniformTypeIdentifiers.todo b/tests/xtro-sharpie/api-annotations-dotnet/iOS-UniformTypeIdentifiers.todo deleted file mode 100644 index 446bda96d578..000000000000 --- a/tests/xtro-sharpie/api-annotations-dotnet/iOS-UniformTypeIdentifiers.todo +++ /dev/null @@ -1 +0,0 @@ -!missing-field! UTTypeAHAP not bound diff --git a/tests/xtro-sharpie/api-annotations-dotnet/macOS-UniformTypeIdentifiers.todo b/tests/xtro-sharpie/api-annotations-dotnet/macOS-UniformTypeIdentifiers.todo deleted file mode 100644 index 446bda96d578..000000000000 --- a/tests/xtro-sharpie/api-annotations-dotnet/macOS-UniformTypeIdentifiers.todo +++ /dev/null @@ -1 +0,0 @@ -!missing-field! UTTypeAHAP not bound diff --git a/tests/xtro-sharpie/api-annotations-dotnet/tvOS-UniformTypeIdentifiers.todo b/tests/xtro-sharpie/api-annotations-dotnet/tvOS-UniformTypeIdentifiers.todo deleted file mode 100644 index 446bda96d578..000000000000 --- a/tests/xtro-sharpie/api-annotations-dotnet/tvOS-UniformTypeIdentifiers.todo +++ /dev/null @@ -1 +0,0 @@ -!missing-field! UTTypeAHAP not bound diff --git a/tests/xtro-sharpie/iOS-UniformTypeIdentifiers.todo b/tests/xtro-sharpie/iOS-UniformTypeIdentifiers.todo deleted file mode 100644 index 446bda96d578..000000000000 --- a/tests/xtro-sharpie/iOS-UniformTypeIdentifiers.todo +++ /dev/null @@ -1 +0,0 @@ -!missing-field! UTTypeAHAP not bound diff --git a/tests/xtro-sharpie/macOS-UniformTypeIdentifiers.todo b/tests/xtro-sharpie/macOS-UniformTypeIdentifiers.todo deleted file mode 100644 index 446bda96d578..000000000000 --- a/tests/xtro-sharpie/macOS-UniformTypeIdentifiers.todo +++ /dev/null @@ -1 +0,0 @@ -!missing-field! UTTypeAHAP not bound diff --git a/tests/xtro-sharpie/tvOS-UniformTypeIdentifiers.todo b/tests/xtro-sharpie/tvOS-UniformTypeIdentifiers.todo deleted file mode 100644 index 446bda96d578..000000000000 --- a/tests/xtro-sharpie/tvOS-UniformTypeIdentifiers.todo +++ /dev/null @@ -1 +0,0 @@ -!missing-field! UTTypeAHAP not bound diff --git a/tests/xtro-sharpie/watchOS-UniformTypeIdentifiers.todo b/tests/xtro-sharpie/watchOS-UniformTypeIdentifiers.todo deleted file mode 100644 index 446bda96d578..000000000000 --- a/tests/xtro-sharpie/watchOS-UniformTypeIdentifiers.todo +++ /dev/null @@ -1 +0,0 @@ -!missing-field! UTTypeAHAP not bound From 20ee497f92f3ea2172ad706fdb1c31b9b4c27f4f Mon Sep 17 00:00:00 2001 From: GitHub Actions Autoformatter Date: Wed, 6 Sep 2023 13:22:45 +0000 Subject: [PATCH 2/3] Auto-format source code --- src/uniformtypeidentifiers.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/uniformtypeidentifiers.cs b/src/uniformtypeidentifiers.cs index 6b36de01b6ac..508464f6a861 100644 --- a/src/uniformtypeidentifiers.cs +++ b/src/uniformtypeidentifiers.cs @@ -543,8 +543,8 @@ interface UTTypes { [Field ("UTTypeLog")] UTType Log { get; } - [Watch(10, 0), TV(17, 0), MacCatalyst(17, 0), Mac(14, 0), iOS(17, 0)] - [Field("UTTypeAHAP")] + [Watch (10, 0), TV (17, 0), MacCatalyst (17, 0), Mac (14, 0), iOS (17, 0)] + [Field ("UTTypeAHAP")] UTType UTTypeAHAP { get; } } From 0d9a64830c75950dee263b96c8d862a3a68bcc5f Mon Sep 17 00:00:00 2001 From: Haritha Mohan Date: Wed, 6 Sep 2023 09:55:52 -0400 Subject: [PATCH 3/3] Update src/uniformtypeidentifiers.cs --- src/uniformtypeidentifiers.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/uniformtypeidentifiers.cs b/src/uniformtypeidentifiers.cs index 508464f6a861..20ea17762757 100644 --- a/src/uniformtypeidentifiers.cs +++ b/src/uniformtypeidentifiers.cs @@ -545,7 +545,7 @@ interface UTTypes { [Watch (10, 0), TV (17, 0), MacCatalyst (17, 0), Mac (14, 0), iOS (17, 0)] [Field ("UTTypeAHAP")] - UTType UTTypeAHAP { get; } + UTType Ahap { get; } } [Introduced (PlatformName.MacCatalyst, 14, 0)]