From 2740aefda490d38d7d1cf674393879fcad84db05 Mon Sep 17 00:00:00 2001 From: Filippos Sakellaropoulos Date: Wed, 16 Oct 2024 12:20:23 +0300 Subject: [PATCH] Update Package.resolved and Package.swift with new versions for openid4vci, openid4vp --- Package.resolved | 14 +++++++------- Package.swift | 4 ++-- .../EudiWalletKit/Services/OpenId4VciService.swift | 2 +- changelog.md | 6 ++++++ 4 files changed, 16 insertions(+), 10 deletions(-) diff --git a/Package.resolved b/Package.resolved index 2278257..e6a8139 100644 --- a/Package.resolved +++ b/Package.resolved @@ -1,5 +1,5 @@ { - "originHash" : "b5a574ae9a5a190e024df6467d5fb5bcb9df780cacf6d2096ac36b48f0041542", + "originHash" : "b67feccbd1f8993b7daae2734ce787ff627abb69b550179cbe226a9574f98dda", "pins" : [ { "identity" : "blueecc", @@ -51,8 +51,8 @@ "kind" : "remoteSourceControl", "location" : "https://github.com/eu-digital-identity-wallet/eudi-lib-ios-openid4vci-swift.git", "state" : { - "revision" : "aa315bc7c81e0ac6b82f3825f45e4401c65a0e41", - "version" : "0.6.0" + "revision" : "5483f37046bcd5607af5b817cea3147257b3f3c6", + "version" : "0.7.0" } }, { @@ -60,8 +60,8 @@ "kind" : "remoteSourceControl", "location" : "https://github.com/eu-digital-identity-wallet/eudi-lib-ios-presentation-exchange-swift.git", "state" : { - "revision" : "2c5486e3c3e38dab5018445af545677b62e9a712", - "version" : "0.0.43" + "revision" : "bf9396b3bc9ed27a3b740759b045c31d10b0eb62", + "version" : "0.1.1" } }, { @@ -69,8 +69,8 @@ "kind" : "remoteSourceControl", "location" : "https://github.com/eu-digital-identity-wallet/eudi-lib-ios-siop-openid4vp-swift.git", "state" : { - "revision" : "294e198eb9daf7fbed1b6f6cac27b2ca86a38f50", - "version" : "0.4.0" + "revision" : "1a6912fb79646dfaad393625e71aef427e4635b6", + "version" : "0.5.0" } }, { diff --git a/Package.swift b/Package.swift index 61406cb..373ff09 100644 --- a/Package.swift +++ b/Package.swift @@ -17,8 +17,8 @@ let package = Package( .package(url: "https://github.com/crspybits/swift-log-file", from: "0.1.0"), .package(url: "https://github.com/eu-digital-identity-wallet/eudi-lib-ios-iso18013-data-transfer.git", exact: "0.3.3"), .package(url: "https://github.com/eu-digital-identity-wallet/eudi-lib-ios-wallet-storage.git", exact: "0.3.0"), - .package(url: "https://github.com/eu-digital-identity-wallet/eudi-lib-ios-siop-openid4vp-swift.git", exact: "0.4.0"), - .package(url: "https://github.com/eu-digital-identity-wallet/eudi-lib-ios-openid4vci-swift.git", exact: "0.6.0"), + .package(url: "https://github.com/eu-digital-identity-wallet/eudi-lib-ios-siop-openid4vp-swift.git", exact: "0.5.0"), + .package(url: "https://github.com/eu-digital-identity-wallet/eudi-lib-ios-openid4vci-swift.git", exact: "0.7.0"), ], targets: [ // Targets are the basic building blocks of a package, defining a module or a test suite. diff --git a/Sources/EudiWalletKit/Services/OpenId4VciService.swift b/Sources/EudiWalletKit/Services/OpenId4VciService.swift index 556237b..243266a 100644 --- a/Sources/EudiWalletKit/Services/OpenId4VciService.swift +++ b/Sources/EudiWalletKit/Services/OpenId4VciService.swift @@ -143,7 +143,7 @@ public class OpenId4VCIService: NSObject, @unchecked Sendable, ASWebAuthenticati let issuerMetadata = await CredentialIssuerMetadataResolver(fetcher: Fetcher(session: urlSession)).resolve(source: .credentialIssuer(credentialIssuerIdentifier)) switch issuerMetadata { case .success(let metaData): - if let authorizationServer = metaData?.authorizationServers?.first, let metaData { + if let authorizationServer = metaData.authorizationServers?.first { let authServerMetadata = await AuthorizationServerMetadataResolver(oidcFetcher: Fetcher(session: urlSession), oauthFetcher: Fetcher(session: urlSession)).resolve(url: authorizationServer) let (credentialConfigurationIdentifier, _, displayName) = try getCredentialIdentifier(credentialsSupported: metaData.credentialsSupported, docType: docType, format: format) let offer = try CredentialOffer(credentialIssuerIdentifier: credentialIssuerIdentifier, credentialIssuerMetadata: metaData, credentialConfigurationIdentifiers: [credentialConfigurationIdentifier], grants: nil, authorizationServerMetadata: try authServerMetadata.get()) diff --git a/changelog.md b/changelog.md index 3fbe442..682ce36 100644 --- a/changelog.md +++ b/changelog.md @@ -1,3 +1,9 @@ +## v0.7.4 +- Update Package.resolved and Package.swift with new versions for openid4vci, openid4vp + +## v0.7.3 +- Bug fix + ## v0.7.2 - Removed `@MainActor` annotation from class definitions