From 26320c77e13c336a013e17355412d62911d24496 Mon Sep 17 00:00:00 2001 From: Gerald Bartz Date: Mon, 25 Nov 2024 10:31:27 +0100 Subject: [PATCH] Release 5.11.0 --- .github/README.adoc | 10 +++++----- ReleaseNotes.md | 6 ++++++ Sources/NFCDemo/Resources/Info.plist | 2 +- doc/userguide/OHCKIT_NFCCardReaderProvider.adoc | 6 +++--- 4 files changed, 15 insertions(+), 9 deletions(-) diff --git a/.github/README.adoc b/.github/README.adoc index 8baabc1..11983d5 100644 --- a/.github/README.adoc +++ b/.github/README.adoc @@ -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 } @@ -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 ---- @@ -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: "")) diff --git a/ReleaseNotes.md b/ReleaseNotes.md index d4ea4a0..40b58ef 100644 --- a/ReleaseNotes.md +++ b/ReleaseNotes.md @@ -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 diff --git a/Sources/NFCDemo/Resources/Info.plist b/Sources/NFCDemo/Resources/Info.plist index fddffd4..799a1f9 100644 --- a/Sources/NFCDemo/Resources/Info.plist +++ b/Sources/NFCDemo/Resources/Info.plist @@ -17,7 +17,7 @@ CFBundlePackageType $(PRODUCT_BUNDLE_PACKAGE_TYPE) CFBundleShortVersionString - 1.2.8 + 1.2.9 CFBundleVersion $(GEMATIK_BUNDLE_VERSION) GEMATIKSourceVersion diff --git a/doc/userguide/OHCKIT_NFCCardReaderProvider.adoc b/doc/userguide/OHCKIT_NFCCardReaderProvider.adoc index ff55f28..a87f2f5 100644 --- a/doc/userguide/OHCKIT_NFCCardReaderProvider.adoc +++ b/doc/userguide/OHCKIT_NFCCardReaderProvider.adoc @@ -12,14 +12,14 @@ 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`. @@ -27,5 +27,5 @@ The `NFCHealthCardSession` also gives you an endpoint to invalidate the underlyi [source,swift] ---- -include::{sourcedir}/NFCDemo/NFC/NFCLoginController.swift[tags=nfcHealthCardSession_errorHandling,indent=0] +include::{sourcedir}/NFCDemo/NFC/NFCSigningFunctionController.swift[tags=nfcHealthCardSession_errorHandling,indent=0] ---- \ No newline at end of file