Skip to content

Commit

Permalink
Update IdInfo in BiometricKYC (#152)
Browse files Browse the repository at this point in the history
* added update IdInfo in BiometricKYC

* Update UploadRequest.swift

* Prepare v10.0.10 release

* Update Changelog

---------

Co-authored-by: Vansh Gandhi <[email protected]>
  • Loading branch information
jumaallan and vanshg authored Feb 22, 2024
1 parent 01be0de commit b353e5a
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 6 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# Release Notes
## 10.0.10
* Set `IdInfo.entered` to true for Biometric KYC Jobs

## 10.0.9
* Carthage support

Expand Down
4 changes: 2 additions & 2 deletions Example/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -33,7 +33,7 @@ SPEC CHECKSUMS:
netfox: 9d5cc727fe7576c4c7688a2504618a156b7d44b7
Sentry: a8d7b373b9f9868442b02a0c425192f693103cbf
SentryPrivate: 006b24af16828441f70e2ab6adf241bd0a8ad130
SmileID: 164fe8d29a0fe1c66d720fca9ead314d0bf7a0aa
SmileID: ffaa1eab202cb9c402ade1cc66ceaf5a2c99c686
SwiftLint: c1de071d9d08c8aba837545f6254315bc900e211
Zip: b3fef584b147b6e582b2256a9815c897d60ddc67

Expand Down
4 changes: 2 additions & 2 deletions SmileID.podspec
Original file line number Diff line number Diff line change
@@ -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' => '[email protected]', 'Juma Allan' => '[email protected]', 'Vansh Gandhi' => '[email protected]'}
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'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
15 changes: 15 additions & 0 deletions Sources/SmileID/Classes/Networking/Models/UploadRequest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion Sources/SmileID/Classes/SmileID.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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 }

Expand Down

0 comments on commit b353e5a

Please sign in to comment.