From c189aa842259aa2eeed6925761f87aac33089f4d Mon Sep 17 00:00:00 2001 From: Rolf Bjarne Kvinge Date: Mon, 4 Aug 2025 18:53:54 +0200 Subject: [PATCH 1/2] [CoreNFC] Update to Xcode 26 beta 1-4. --- src/corenfc.cs | 12 ++++++++++++ .../api-annotations-dotnet/MacCatalyst-CoreNFC.todo | 4 ---- .../api-annotations-dotnet/iOS-CoreNFC.todo | 4 ---- 3 files changed, 12 insertions(+), 8 deletions(-) delete mode 100644 tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-CoreNFC.todo delete mode 100644 tests/xtro-sharpie/api-annotations-dotnet/iOS-CoreNFC.todo diff --git a/src/corenfc.cs b/src/corenfc.cs index 3b0c344ca8e2..c01ec4f296f5 100644 --- a/src/corenfc.cs +++ b/src/corenfc.cs @@ -27,6 +27,8 @@ public enum NFCReaderError : long { InvalidParameterLength, ParameterOutOfBound, RadioDisabled = 6, + Ineligible = 7, + AccessNotAccepted = 8, /// The connection to the tag was lost. ReaderTransceiveErrorTagConnectionLost = 100, @@ -1230,4 +1232,14 @@ interface NFCVasReaderSession { [DesignatedInitializer] NativeHandle Constructor (NFCVasCommandConfiguration [] commandConfigurations, INFCVasReaderSessionDelegate @delegate, [NullAllowed] DispatchQueue queue); } + + [MacCatalyst (26, 0), NoTV, NoMac, iOS (26,0)] + [BaseType (typeof (NFCTagReaderSession))] + [DisableDefaultCtor] + interface NFCPaymentTagReaderSession + { + [Export ("initWithDelegate:queue:")] + NativeHandle Constructor (INFCTagReaderSessionDelegate @delegate, [NullAllowed] DispatchQueue queue); + } + } diff --git a/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-CoreNFC.todo b/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-CoreNFC.todo deleted file mode 100644 index 1f2ea94a5c94..000000000000 --- a/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-CoreNFC.todo +++ /dev/null @@ -1,4 +0,0 @@ -!missing-enum-value! NFCReaderError native value NFCReaderErrorIneligible = 7 not bound -!missing-selector! NFCPaymentTagReaderSession::initWithDelegate:queue: not bound -!missing-type! NFCPaymentTagReaderSession not bound -!missing-enum-value! NFCReaderError native value NFCReaderErrorAccessNotAccepted = 8 not bound diff --git a/tests/xtro-sharpie/api-annotations-dotnet/iOS-CoreNFC.todo b/tests/xtro-sharpie/api-annotations-dotnet/iOS-CoreNFC.todo deleted file mode 100644 index 1f2ea94a5c94..000000000000 --- a/tests/xtro-sharpie/api-annotations-dotnet/iOS-CoreNFC.todo +++ /dev/null @@ -1,4 +0,0 @@ -!missing-enum-value! NFCReaderError native value NFCReaderErrorIneligible = 7 not bound -!missing-selector! NFCPaymentTagReaderSession::initWithDelegate:queue: not bound -!missing-type! NFCPaymentTagReaderSession not bound -!missing-enum-value! NFCReaderError native value NFCReaderErrorAccessNotAccepted = 8 not bound From 37f640555d0c12706f1646e2e2ee5425ae5abdf5 Mon Sep 17 00:00:00 2001 From: GitHub Actions Autoformatter Date: Tue, 5 Aug 2025 08:40:00 +0000 Subject: [PATCH 2/2] Auto-format source code --- src/corenfc.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/corenfc.cs b/src/corenfc.cs index c01ec4f296f5..1e3177b9cdf8 100644 --- a/src/corenfc.cs +++ b/src/corenfc.cs @@ -1233,11 +1233,10 @@ interface NFCVasReaderSession { NativeHandle Constructor (NFCVasCommandConfiguration [] commandConfigurations, INFCVasReaderSessionDelegate @delegate, [NullAllowed] DispatchQueue queue); } - [MacCatalyst (26, 0), NoTV, NoMac, iOS (26,0)] + [MacCatalyst (26, 0), NoTV, NoMac, iOS (26, 0)] [BaseType (typeof (NFCTagReaderSession))] [DisableDefaultCtor] - interface NFCPaymentTagReaderSession - { + interface NFCPaymentTagReaderSession { [Export ("initWithDelegate:queue:")] NativeHandle Constructor (INFCTagReaderSessionDelegate @delegate, [NullAllowed] DispatchQueue queue); }