@@ -23,23 +23,23 @@ import Foundation
2323import GemCommonsKit
2424import HealthCardAccess
2525
26- class NFCCard : CardType {
26+ public class NFCCard : CardType {
2727 var tag : NFCISO7816Tag ?
2828 private weak var basicChannel : NFCCardChannel ?
2929
30- init ( isoTag tag: NFCISO7816Tag ) {
30+ public init ( isoTag tag: NFCISO7816Tag ) {
3131 self . tag = tag
3232 }
3333
34- var atr : ATR {
34+ public var atr : ATR {
3535 tag? . historicalBytes ?? Data ( )
3636 }
3737
38- var `protocol` : CardProtocol {
38+ public var `protocol` : CardProtocol {
3939 . t1
4040 }
4141
42- func openBasicChannel( ) throws -> CardChannelType {
42+ public func openBasicChannel( ) throws -> CardChannelType {
4343 if let channel = basicChannel {
4444 return channel
4545 }
@@ -51,7 +51,7 @@ class NFCCard: CardType {
5151 return nfcChannel
5252 }
5353
54- func openLogicChannel( ) throws -> CardChannelType {
54+ public func openLogicChannel( ) throws -> CardChannelType {
5555 guard let tag = tag else {
5656 throw NFCCardError . noCardPresent. illegalState
5757 }
@@ -74,7 +74,7 @@ class NFCCard: CardType {
7474 return NFCCardChannel ( card: self , tag: tag, channelNo: Int ( rspData [ 0 ] ) )
7575 }
7676
77- func openLogicChannelAsync( ) async throws -> CardChannelType {
77+ public func openLogicChannelAsync( ) async throws -> CardChannelType {
7878 guard let tag = tag else {
7979 throw NFCCardError . noCardPresent. illegalState
8080 }
@@ -97,15 +97,15 @@ class NFCCard: CardType {
9797 return NFCCardChannel ( card: self , tag: tag, channelNo: Int ( rspData [ 0 ] ) )
9898 }
9999
100- func initialApplicationIdentifier( ) throws -> Data ? {
100+ public func initialApplicationIdentifier( ) throws -> Data ? {
101101 guard let initialSelectedAID = tag? . initialSelectedAID else {
102102 ALog ( " NFC tag could not deliver initialSelectedAID when expected " )
103103 return nil
104104 }
105105 return try Data ( hex: initialSelectedAID)
106106 }
107107
108- func disconnect( reset _: Bool ) throws {
108+ public func disconnect( reset _: Bool ) throws {
109109 DLog ( " Disconnecting card ... " )
110110 tag = nil
111111 basicChannel = nil
0 commit comments