Skip to content

Commit

Permalink
Release 5.11.0
Browse files Browse the repository at this point in the history
  • Loading branch information
sigabrtz committed Nov 25, 2024
1 parent 99214a1 commit 26320c7
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 9 deletions.
10 changes: 5 additions & 5 deletions .github/README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ In the next example we use a `HealthCard` object representing an eGK (elektronis
as one kind of a `HealthCardType` implementing the `CardType` protocol and then send the command to the card (or card's channel):
[source,swift]
----
let healthCardResponse = try await selectEsignCommand.transmitAsync(to: Self.healthCard)
let healthCardResponse = try await selectEsignCommand.transmit(to: Self.healthCard)
guard healthCardResponse.responseStatus == ResponseStatus.success else {
throw HealthCard.Error.operational // TO-DO: handle this or throw a meaningful Error
}
Expand Down Expand Up @@ -234,7 +234,7 @@ Take the necessary preparatory steps for signing a challenge on the Health Card,
----
let challenge = Data([0x0, 0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, 0x8])
let format2Pin = try Format2Pin(pincode: "123456")
_ = try await Self.healthCard.verify(pin: format2Pin, type: EgkFileSystem.Pin.mrpinHome)
_ = try await Self.healthCard.verifyAsync(pin: format2Pin, type: EgkFileSystem.Pin.mrpinHome)
let signResponse = try await Self.healthCard.signAsync(data: challenge)
expect(signResponse.responseStatus) == ResponseStatus.success
----
Expand Down Expand Up @@ -277,11 +277,11 @@ guard let nfcHealthCardSession = NFCHealthCardSession(messages: messages, can: c
type: EgkFileSystem.Pin.mrpinHome
)
if case let VerifyPinResponse.wrongSecretWarning(retryCount: count) = verifyPinResponse {
throw NFCLoginController.Error.wrongPin(retryCount: count)
throw NFCSigningFunctionController.Error.wrongPin(retryCount: count)
} else if case VerifyPinResponse.passwordBlocked = verifyPinResponse {
throw NFCLoginController.Error.passwordBlocked
throw NFCSigningFunctionController.Error.passwordBlocked
} else if VerifyPinResponse.success != verifyPinResponse {
throw NFCLoginController.Error.verifyPinResponse
throw NFCSigningFunctionController.Error.verifyPinResponse
}
session.updateAlert(message: NSLocalizedString("nfc_txt_msg_signing", comment: ""))
Expand Down
6 changes: 6 additions & 0 deletions ReleaseNotes.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# 5.11.0

- Add "Read personal data" use case to DemoApp
- Change label of Signing function button in DemoApp
- Soft deprecate public API using Combine.Publisher in favour of async/await

# 5.10.1

- Increase Package.swift iOS version
Expand Down
2 changes: 1 addition & 1 deletion Sources/NFCDemo/Resources/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<key>CFBundlePackageType</key>
<string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string>
<key>CFBundleShortVersionString</key>
<string>1.2.8</string>
<string>1.2.9</string>
<key>CFBundleVersion</key>
<string>$(GEMATIK_BUNDLE_VERSION)</string>
<key>GEMATIKSourceVersion</key>
Expand Down
6 changes: 3 additions & 3 deletions doc/userguide/OHCKIT_NFCCardReaderProvider.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,20 @@ The initializer takes some NFC-Display messages, the CAN (card access number) an

[source,swift]
----
include::{sourcedir}/NFCDemo/NFC/NFCLoginController.swift[tags=nfcHealthCardSession_init,indent=0]
include::{sourcedir}/NFCDemo/NFC/NFCSigningFunctionController.swift[tags=nfcHealthCardSession_init,indent=0]
----

Execute the operation on the NFC HealthCard. The secure channel (PACE) is established initially before executing the operation.

[source,swift]
----
include::{sourcedir}/NFCDemo/NFC/NFCLoginController.swift[tags=nfcHealthCardSession_execute,indent=0]
include::{sourcedir}/NFCDemo/NFC/NFCSigningFunctionController.swift[tags=nfcHealthCardSession_execute,indent=0]
----

The thrown error will be of type `NFCHealthCardSessionError`.
The `NFCHealthCardSession` also gives you an endpoint to invalidate the underlying `TagReaderSession`.

[source,swift]
----
include::{sourcedir}/NFCDemo/NFC/NFCLoginController.swift[tags=nfcHealthCardSession_errorHandling,indent=0]
include::{sourcedir}/NFCDemo/NFC/NFCSigningFunctionController.swift[tags=nfcHealthCardSession_errorHandling,indent=0]
----

0 comments on commit 26320c7

Please sign in to comment.