Skip to content

Commit 73b7ecd

Browse files
committed
Make plugin compatible with Xcode 14.3 and iOS 16.4
- chariotsolutions#486
1 parent e12e90e commit 73b7ecd

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

src/ios/NfcPlugin.m

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
// (c) 2107-2020 Don Coleman
66

77
#import "NfcPlugin.h"
8+
#import <CoreNFC/CoreNFC.h>
89

910
@interface NfcPlugin() {
1011
NSString* sessionCallbackId;
@@ -124,14 +125,13 @@ - (void)writeTag:(CDVInvokedUrlCommand*)command API_AVAILABLE(ios(13.0)){
124125
} else { // create a new session
125126
if (self.shouldUseTagReaderSession) {
126127
NSLog(@"Using NFCTagReaderSession");
127-
128-
self.nfcSession = [[NFCTagReaderSession alloc]
129-
initWithPollingOption:(NFCPollingISO14443 | NFCPollingISO15693)
130-
delegate:self queue:dispatch_get_main_queue()];
128+
self.nfcSession = [[NFCTagReaderSession alloc] initWithPollingOption: (NFCPollingISO14443 | NFCPollingISO15693)
129+
delegate: self
130+
queue: dispatch_get_main_queue()];
131131

132132
} else {
133133
NSLog(@"Using NFCTagReaderSession");
134-
self.nfcSession = [[NFCNDEFReaderSession alloc]initWithDelegate:self queue:nil invalidateAfterFirstRead:FALSE];
134+
self.nfcSession = [[NFCNDEFReaderSession alloc] initWithDelegate:self queue:nil invalidateAfterFirstRead:FALSE];
135135
}
136136
}
137137

0 commit comments

Comments
 (0)