diff --git a/CHANGELOG.md b/CHANGELOG.md index 5449b8887..d53bc5786 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +## 10.0.0-beta05 + +### Changed +- Expose `sourceSdk` and `sourceSdkVersion` initializers and properties + ## 10.0.0-beta04 ### Changed diff --git a/README.md b/README.md index 9bc282615..f3de23118 100644 --- a/README.md +++ b/README.md @@ -36,7 +36,7 @@ You can add SmileID as a dependency by adding it to the `dependencies` value of ```swift dependencies: [ - .package(url: "https://github.com/smileidentity/ios.git", .upToNextMajor(from: "10.0.0-beta04")) + .package(url: "https://github.com/smileidentity/ios.git", .upToNextMajor(from: "10.0.0-beta05")) ] ``` diff --git a/SmileID.podspec b/SmileID.podspec index dbab68e83..439efa4d0 100644 --- a/SmileID.podspec +++ b/SmileID.podspec @@ -1,11 +1,11 @@ Pod::Spec.new do |s| s.name = 'SmileID' - s.version = '10.0.0-beta04' + s.version = '10.0.0-beta05' s.summary = 'The Official Smile Identity iOS SDK.' s.homepage = "https://docs.smileidentity.com/mobile/ios" s.license = { :type => 'MIT', :file => 'LICENSE' } - s.author = { 'Jubril O' => 'jubril@smileidentity.com', 'Japhet' => 'japhet@smileidentity.com'} - s.source = { :git => "https://github.com/smileidentity/ios.git", :tag => "v10.0.0-beta04" } + s.author = { 'Jubril O' => 'jubril@smileidentity.com', 'Japhet' => 'japhet@smileidentity.com', 'Juma Allan' => 'juma@smileidentity.com'} + s.source = { :git => "https://github.com/smileidentity/ios.git", :tag => "v10.0.0-beta05" } s.ios.deployment_target = '13.0' s.dependency 'Zip', '~> 2.1.0' s.swift_version = '5.5' diff --git a/Sources/SmileID/Classes/Networking/Models/EnhancedKyc.swift b/Sources/SmileID/Classes/Networking/Models/EnhancedKyc.swift index da8f21692..6682b9369 100644 --- a/Sources/SmileID/Classes/Networking/Models/EnhancedKyc.swift +++ b/Sources/SmileID/Classes/Networking/Models/EnhancedKyc.swift @@ -15,8 +15,8 @@ public struct EnhancedKycRequest: Codable { public let timestamp: String public let signature: String public let partnerId: String = SmileID.config.partnerId - public let sourceSdk: String = "ios" - public let sourceSdkVersion = SmileID.version + public let sourceSdk: String + public let sourceSdkVersion: String public init( country: String, @@ -30,6 +30,8 @@ public struct EnhancedKycRequest: Codable { bankCode: String? = nil, callbackUrl: String?, partnerParams: PartnerParams, + sourceSdk: String = "ios", + sourceSdkVersion: String = SmileID.version, timestamp: String, signature: String ) { @@ -44,6 +46,8 @@ public struct EnhancedKycRequest: Codable { self.bankCode = bankCode self.callbackUrl = callbackUrl self.partnerParams = partnerParams + self.sourceSdk = sourceSdk + self.sourceSdkVersion = sourceSdkVersion self.timestamp = timestamp self.signature = signature } diff --git a/Sources/SmileID/Classes/SmileID.swift b/Sources/SmileID/Classes/SmileID.swift index b7413a432..4610b1334 100644 --- a/Sources/SmileID/Classes/SmileID.swift +++ b/Sources/SmileID/Classes/SmileID.swift @@ -23,7 +23,7 @@ public class SmileID { }() private init() {} - public static let version = "10.0.0-beta04" + public static let version = "10.0.0-beta05" public private(set) static var config: Config! public private(set) static var useSandbox = true public private(set) static var theme: SmileIdTheme = DefaultTheme() diff --git a/Tests/Networking/EnhancedKycTest.swift b/Tests/Networking/EnhancedKycTest.swift index 0a898665e..ec2b616ce 100644 --- a/Tests/Networking/EnhancedKycTest.swift +++ b/Tests/Networking/EnhancedKycTest.swift @@ -25,6 +25,8 @@ class EnhancedKycTest: BaseTestCase { idNumber: "idNumber", callbackUrl: "callbackUrl", partnerParams: PartnerParams(jobId: "", userId: "", jobType: .enhancedKyc), + sourceSdk: "ios", + sourceSdkVersion: "10.0.0-beta05", timestamp: "timestamp", signature: "signature" )