From 66a28266a4f55d9eb3fdfb1fd5332f8993a30c1c Mon Sep 17 00:00:00 2001 From: Rachel Kang Date: Fri, 10 Sep 2021 17:57:35 -0400 Subject: [PATCH] Add missing changes --- src/generator-filters.cs | 6 +++++ tests/xtro-sharpie/Helpers.cs | 1 + .../xtro-sharpie/MacCatalyst-CoreImage.ignore | 14 ++++++++++ tests/xtro-sharpie/MacCatalyst-CoreImage.todo | 26 +++++++++++++++++++ tests/xtro-sharpie/common-CoreImage.ignore | 12 +++++++++ 5 files changed, 59 insertions(+) create mode 100644 tests/xtro-sharpie/MacCatalyst-CoreImage.ignore create mode 100644 tests/xtro-sharpie/MacCatalyst-CoreImage.todo diff --git a/src/generator-filters.cs b/src/generator-filters.cs index f4f958fc9c..9a13e73d3a 100644 --- a/src/generator-filters.cs +++ b/src/generator-filters.cs @@ -295,6 +295,9 @@ public partial class Generator { case "nint": print ("return GetNInt (\"{0}\");", propertyName); break; + case "nuint": + print ("return GetNUInt (\"{0}\");", propertyName); + break; case "string": // NSString should not be added - it should be bound as a string print ("return (string) (ValueForKey (\"{0}\") as NSString);", propertyName); @@ -332,6 +335,9 @@ public partial class Generator { case "nint": print ("SetNInt (\"{0}\", value);", propertyName); break; + case "nuint": + print ("SetNUInt (\"{0}\", value);", propertyName); + break; // NSObject should not be added case "AVCameraCalibrationData": case "CGColorSpace": diff --git a/tests/xtro-sharpie/Helpers.cs b/tests/xtro-sharpie/Helpers.cs index ddac099569..bf77185f1a 100644 --- a/tests/xtro-sharpie/Helpers.cs +++ b/tests/xtro-sharpie/Helpers.cs @@ -23,6 +23,7 @@ namespace Extrospection { // the original name can be lost and, if not registered (e.g. enums), might not be available static Dictionary map = new Dictionary () { { "AudioChannelBitmap", "AudioChannelBit" }, + { "CIRAWDecoderVersion", "CIRawDecoderVersion" }, { "EABluetoothAccessoryPickerErrorCode", "EABluetoothAccessoryPickerError" }, { "EKCalendarEventAvailabilityMask", "EKCalendarEventAvailability" }, { "GKErrorCode", "GKError" }, diff --git a/tests/xtro-sharpie/MacCatalyst-CoreImage.ignore b/tests/xtro-sharpie/MacCatalyst-CoreImage.ignore new file mode 100644 index 0000000000..cde6f4ce78 --- /dev/null +++ b/tests/xtro-sharpie/MacCatalyst-CoreImage.ignore @@ -0,0 +1,14 @@ +## not bound in macOS or catalyst +!missing-field! kCIImageTextureFormat not bound +!missing-field! kCIImageTextureTarget not bound +!missing-selector! +CIImage::imageWithTexture:size:flipped:options: not bound +!missing-selector! CIFilter::apply: not bound +!missing-selector! CIFilter::isEnabled not bound +!missing-selector! CIFilter::setEnabled: not bound +!missing-selector! CIImage::initWithTexture:size:flipped:options: not bound + +## deprecated and not used in catalyst +!missing-selector! CIImage::initWithCGLayer: not bound +!missing-selector! CIImage::initWithCGLayer:options: not bound +!missing-selector! +CIImage::imageWithCGLayer: not bound +!missing-selector! +CIImage::imageWithCGLayer:options: not bound diff --git a/tests/xtro-sharpie/MacCatalyst-CoreImage.todo b/tests/xtro-sharpie/MacCatalyst-CoreImage.todo new file mode 100644 index 0000000000..f5543d6837 --- /dev/null +++ b/tests/xtro-sharpie/MacCatalyst-CoreImage.todo @@ -0,0 +1,26 @@ +!missing-field! kCIApplyOptionColorSpace not bound +!missing-field! kCIApplyOptionDefinition not bound +!missing-field! kCIApplyOptionExtent not bound +!missing-field! kCIApplyOptionUserInfo not bound +!missing-field! kCIFilterGeneratorExportedKey not bound +!missing-field! kCIFilterGeneratorExportedKeyName not bound +!missing-field! kCIFilterGeneratorExportedKeyTargetObject not bound +!missing-selector! +CIContext::offlineGPUCount not bound +!missing-selector! +CIFilterGenerator::filterGenerator not bound +!missing-selector! +CIFilterGenerator::filterGeneratorWithContentsOfURL: not bound +!missing-selector! CIContext::reclaimResources not bound +!missing-selector! CIFilter::apply:arguments:options: not bound +!missing-selector! CIFilterGenerator::classAttributes not bound +!missing-selector! CIFilterGenerator::connectObject:withKey:toObject:withKey: not bound +!missing-selector! CIFilterGenerator::disconnectObject:withKey:toObject:withKey: not bound +!missing-selector! CIFilterGenerator::exportedKeys not bound +!missing-selector! CIFilterGenerator::exportKey:fromObject:withName: not bound +!missing-selector! CIFilterGenerator::filter not bound +!missing-selector! CIFilterGenerator::initWithContentsOfURL: not bound +!missing-selector! CIFilterGenerator::registerFilterName: not bound +!missing-selector! CIFilterGenerator::removeExportedKey: not bound +!missing-selector! CIFilterGenerator::setAttributes:forExportedKey: not bound +!missing-selector! CIFilterGenerator::setClassAttributes: not bound +!missing-selector! CIFilterGenerator::writeToURL:atomically: not bound +!missing-selector! CIImage::definition not bound +!missing-type! CIFilterGenerator not bound diff --git a/tests/xtro-sharpie/common-CoreImage.ignore b/tests/xtro-sharpie/common-CoreImage.ignore index 9e4a9241d8..232c632ebd 100644 --- a/tests/xtro-sharpie/common-CoreImage.ignore +++ b/tests/xtro-sharpie/common-CoreImage.ignore @@ -233,3 +233,15 @@ !missing-selector! +CIFilter::torusLensDistortionFilter not bound !missing-selector! +CIFilter::twirlDistortionFilter not bound !missing-selector! +CIFilter::vortexDistortionFilter not bound +## xcode 13 +!missing-selector! +CIFilter::convolutionRGB3X3Filter not bound +!missing-selector! +CIFilter::convolutionRGB5X5Filter not bound +!missing-selector! +CIFilter::convolutionRGB7X7Filter not bound +!missing-selector! +CIFilter::convolutionRGB9HorizontalFilter not bound +!missing-selector! +CIFilter::convolutionRGB9VerticalFilter not bound +!missing-selector! +CIFilter::linearLightBlendModeFilter not bound +!missing-selector! +CIFilter::personSegmentationFilter not bound +!missing-selector! +CIFilter::vividLightBlendModeFilter not bound + +## API introduced and deprecated at the same time in Xcode 13 +!missing-field! kCIPropertiesKey not bound