From 73b7ecd8ae72bccad0f8a912370587ec9fcf5f03 Mon Sep 17 00:00:00 2001 From: Tyler VanZanten Date: Wed, 31 May 2023 15:03:12 -0400 Subject: [PATCH] Make plugin compatible with Xcode 14.3 and iOS 16.4 - https://github.com/chariotsolutions/phonegap-nfc/pull/486 --- src/ios/NfcPlugin.m | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/ios/NfcPlugin.m b/src/ios/NfcPlugin.m index a530cd99..822440d5 100644 --- a/src/ios/NfcPlugin.m +++ b/src/ios/NfcPlugin.m @@ -5,6 +5,7 @@ // (c) 2107-2020 Don Coleman #import "NfcPlugin.h" +#import @interface NfcPlugin() { NSString* sessionCallbackId; @@ -124,14 +125,13 @@ - (void)writeTag:(CDVInvokedUrlCommand*)command API_AVAILABLE(ios(13.0)){ } else { // create a new session if (self.shouldUseTagReaderSession) { NSLog(@"Using NFCTagReaderSession"); - - self.nfcSession = [[NFCTagReaderSession alloc] - initWithPollingOption:(NFCPollingISO14443 | NFCPollingISO15693) - delegate:self queue:dispatch_get_main_queue()]; + self.nfcSession = [[NFCTagReaderSession alloc] initWithPollingOption: (NFCPollingISO14443 | NFCPollingISO15693) + delegate: self + queue: dispatch_get_main_queue()]; } else { NSLog(@"Using NFCTagReaderSession"); - self.nfcSession = [[NFCNDEFReaderSession alloc]initWithDelegate:self queue:nil invalidateAfterFirstRead:FALSE]; + self.nfcSession = [[NFCNDEFReaderSession alloc] initWithDelegate:self queue:nil invalidateAfterFirstRead:FALSE]; } }