diff --git a/CHANGELOG.md b/CHANGELOG.md index 4d3b45ff4..8f7ee3d0b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,7 @@ # Release Notes +## 10.0.10 +* Set `IdInfo.entered` to true for Biometric KYC Jobs + ## 10.0.9 * Carthage support diff --git a/Example/Podfile.lock b/Example/Podfile.lock index 0e07a8ac8..e479a5d29 100644 --- a/Example/Podfile.lock +++ b/Example/Podfile.lock @@ -6,7 +6,7 @@ PODS: - Sentry/Core (8.20.0): - SentryPrivate (= 8.20.0) - SentryPrivate (8.20.0) - - SmileID (10.0.9): + - SmileID (10.0.10): - Zip (~> 2.1.0) - SwiftLint (0.54.0) - Zip (2.1.2) @@ -33,7 +33,7 @@ SPEC CHECKSUMS: netfox: 9d5cc727fe7576c4c7688a2504618a156b7d44b7 Sentry: a8d7b373b9f9868442b02a0c425192f693103cbf SentryPrivate: 006b24af16828441f70e2ab6adf241bd0a8ad130 - SmileID: 164fe8d29a0fe1c66d720fca9ead314d0bf7a0aa + SmileID: ffaa1eab202cb9c402ade1cc66ceaf5a2c99c686 SwiftLint: c1de071d9d08c8aba837545f6254315bc900e211 Zip: b3fef584b147b6e582b2256a9815c897d60ddc67 diff --git a/SmileID.podspec b/SmileID.podspec index 9c83f02a0..e488fa84c 100644 --- a/SmileID.podspec +++ b/SmileID.podspec @@ -1,11 +1,11 @@ Pod::Spec.new do |s| s.name = 'SmileID' - s.version = '10.0.9' + s.version = '10.0.10' s.summary = 'The Official Smile Identity iOS SDK.' s.homepage = 'https://docs.usesmileid.com/integration-options/mobile/ios-v10-beta' s.license = { :type => 'MIT', :file => 'LICENSE' } s.author = { 'Japhet' => 'japhet@usesmileid.com', 'Juma Allan' => 'juma@usesmileid.com', 'Vansh Gandhi' => 'vansh@usesmileid.com'} - s.source = { :git => "https://github.com/smileidentity/ios.git", :tag => "v10.0.9" } + s.source = { :git => "https://github.com/smileidentity/ios.git", :tag => "v10.0.10" } s.ios.deployment_target = '13.0' s.dependency 'Zip', '~> 2.1.0' s.swift_version = '5.5' diff --git a/Sources/SmileID/Classes/BiometricKYC/OrchestratedBiometricKycViewModel.swift b/Sources/SmileID/Classes/BiometricKYC/OrchestratedBiometricKycViewModel.swift index 347ba2566..959494f46 100644 --- a/Sources/SmileID/Classes/BiometricKYC/OrchestratedBiometricKycViewModel.swift +++ b/Sources/SmileID/Classes/BiometricKYC/OrchestratedBiometricKycViewModel.swift @@ -68,7 +68,7 @@ internal class OrchestratedBiometricKycViewModel: ObservableObject { let infoJson = try LocalStorage.createInfoJson( selfie: selfieImage, livenessImages: livenessImages, - idInfo: idInfo + idInfo: idInfo.copy(entered: true) ) let zipUrl = try LocalStorage.zipFiles( at: livenessImages + [selfieImage] + [infoJson] diff --git a/Sources/SmileID/Classes/Networking/Models/UploadRequest.swift b/Sources/SmileID/Classes/Networking/Models/UploadRequest.swift index 456059c39..b7fb74736 100644 --- a/Sources/SmileID/Classes/Networking/Models/UploadRequest.swift +++ b/Sources/SmileID/Classes/Networking/Models/UploadRequest.swift @@ -62,6 +62,21 @@ public struct IdInfo: Codable { case bankCode = "bank_code" case entered = "entered" } + + // Method for copying with modified properties + func copy(entered: Bool?) -> IdInfo { + IdInfo( + country: country, + idType: idType, + idNumber: idNumber, + firstName: firstName, + middleName: middleName, + lastName: lastName, + dob: dob, + bankCode: bankCode, + entered: entered + ) + } } public struct UploadImageInfo: Codable { diff --git a/Sources/SmileID/Classes/SmileID.swift b/Sources/SmileID/Classes/SmileID.swift index 17cf7397d..a4f13e976 100644 --- a/Sources/SmileID/Classes/SmileID.swift +++ b/Sources/SmileID/Classes/SmileID.swift @@ -3,7 +3,7 @@ import SwiftUI import UIKit public class SmileID { - public static let version = "10.0.9" + public static let version = "10.0.10" @Injected var injectedApi: SmileIDServiceable public static var configuration: Config { config }