From 7002c47beeb7581db65ec8a8391e99213ce5876b Mon Sep 17 00:00:00 2001 From: JNdhlovu Date: Wed, 2 Oct 2024 14:38:05 +0200 Subject: [PATCH] Feature/smilescreens (#240) * feat: optional confirmation on docv * feat: confirm optional * modify access for needed utis methos in wrappers * feat: changelog * chore: undo signing * feat: lint warnings * chore: lint * chore: lint * chore: bump version for release * chore: bump version for release * chore: bump version for release * chore: bump version for release * feat: make selfie instruction screen accessible to wrappers * feat: more util methos * feat: more util methos * feat: podspec --- CHANGELOG.md | 5 +++++ Example/Podfile.lock | 4 ++-- SmileID.podspec | 4 ++-- Sources/SmileID/Classes/Helpers/LocalStorage.swift | 8 ++++---- 4 files changed, 13 insertions(+), 8 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7ca45d25..ac3c4b8b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,9 @@ # Release Notes +## 10.2.13 + +### Added +* Modified access selfie and liveness images util functions + ## 10.2.12 ### Added diff --git a/Example/Podfile.lock b/Example/Podfile.lock index 957f5944..cda8300d 100644 --- a/Example/Podfile.lock +++ b/Example/Podfile.lock @@ -12,7 +12,7 @@ PODS: - Sentry (8.36.0): - Sentry/Core (= 8.36.0) - Sentry/Core (8.36.0) - - SmileID (10.2.12): + - SmileID (10.2.13): - FingerprintJS - lottie-ios (~> 4.4.2) - ZIPFoundation (~> 0.9) @@ -51,7 +51,7 @@ SPEC CHECKSUMS: lottie-ios: fcb5e73e17ba4c983140b7d21095c834b3087418 netfox: 9d5cc727fe7576c4c7688a2504618a156b7d44b7 Sentry: f8374b5415bc38dfb5645941b3ae31230fbeae57 - SmileID: 6a7309335dafa915a23a6c4e8bfa4742aa483fc8 + SmileID: 5c847978928cf6f31a5bcf423570dfc27d8a0dbf SwiftLint: 3fe909719babe5537c552ee8181c0031392be933 ZIPFoundation: b8c29ea7ae353b309bc810586181fd073cb3312c diff --git a/SmileID.podspec b/SmileID.podspec index 14b37180..8cfa2dc1 100644 --- a/SmileID.podspec +++ b/SmileID.podspec @@ -1,11 +1,11 @@ Pod::Spec.new do |s| s.name = 'SmileID' - s.version = '10.2.12' + s.version = '10.2.13' 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.2.12" } + s.source = { :git => "https://github.com/smileidentity/ios.git", :tag => "v10.2.13" } s.ios.deployment_target = '13.0' s.dependency 'ZIPFoundation', '~> 0.9' s.dependency 'FingerprintJS' diff --git a/Sources/SmileID/Classes/Helpers/LocalStorage.swift b/Sources/SmileID/Classes/Helpers/LocalStorage.swift index 811716fa..ad8b4d9d 100644 --- a/Sources/SmileID/Classes/Helpers/LocalStorage.swift +++ b/Sources/SmileID/Classes/Helpers/LocalStorage.swift @@ -48,14 +48,14 @@ public class LocalStorage { "\(name)_\(Date().millisecondsSince1970).jpg" } - static func createSelfieFile( + public static func createSelfieFile( jobId: String, selfieFile data: Data ) throws -> URL { try createSmileFile(to: jobId, name: filename(for: FileType.selfie.name), file: data) } - static func createLivenessFile( + public static func createLivenessFile( jobId: String, livenessFile data: Data ) throws -> URL { @@ -70,7 +70,7 @@ public class LocalStorage { try createSmileFile(to: jobId, name: filename(for: fileType.name), file: data) } - static func getFileByType( + public static func getFileByType( jobId: String, fileType: FileType, submitted: Bool = false @@ -79,7 +79,7 @@ public class LocalStorage { return contents.first(where: { $0.lastPathComponent.contains(fileType.name) }) } - static func getFilesByType( + public static func getFilesByType( jobId: String, fileType: FileType, submitted: Bool = false