From ffdaf23a8f28bdfb1cf5b8cd25c8bdb7ca3d51bc Mon Sep 17 00:00:00 2001 From: Robin Farmer Date: Mon, 27 May 2024 14:09:17 +0200 Subject: [PATCH 1/6] bump sdk versions + add support for new features. --- CHANGELOG.md | 8 +++++ README.md | 32 ++++++++++++++++++- android/build.gradle | 2 +- .../KlippaIdentityVerificationSdkModule.kt | 22 +++++++++++++ ios/.sdk_version | 2 +- ios/KlippaIdentityVerificationSdk.swift | 24 ++++++++++++-- package.json | 2 +- src/index.tsx | 10 +++++- 8 files changed, 95 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 11f8cdd..db1475f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,11 @@ +## 0.0.10 + +* Bump Android to 0.7.4 +* Bump iOS to 0.5.16 +* Added `German` and `French` support. +* Added `enableAutoCapture` to `IdentityBuilder`. +* Added `validationIncludeList` and `validationExcludeList` to `IdentityBuilder`. + ## 0.0.9 * Bump Android to 0.7.3 diff --git a/README.md b/README.md index 9694834..2df42c5 100644 --- a/README.md +++ b/README.md @@ -184,12 +184,20 @@ To configure how often a user can attempt a task before the `contact support` bu identityBuilder.retryThreshold = 1 ``` +### Enable Auto Capture + +To configure if the camera should automatically take a photo if the conditions are right. + +```typescript +identityBuilder.enableAutoCapture = true +``` + ### Language Add the following to the builder: ``` typescript -// We support English, Dutch and Spanish +// We support English, Dutch, Spanish, German and French identityBuilder.language = KIVLanguage.Dutch ``` @@ -223,6 +231,28 @@ identityBuilder.verifyIncludeList = [ identityBuilder.verifyExcludeList = [] ``` +### Validation Include & Exclude lists + +You can edit the validation include list: the failed validations that are shown to the user Or the validation exclude list: the failed validations that are hidden from the user. +For more information regarding validations check out the [API documentation](https://custom-ocr.klippa.com/docs#tag/IdentityVerification/operation/createIdentityVerificationSession). + +```typescript +identityBuilder.validationIncludeList = [ + "DetectFace", + "CompareFace", + "DetectSignature", + "CompareSignature", + "CheckRequiredField", + "MatchSidesFront", + "MatchSidesBack", + "FieldValidation", + "MatchVizMrz", + "MrzChecksum" +] + +identityBuilder.validationExcludeList = [] +``` + ### Colors #### Android diff --git a/android/build.gradle b/android/build.gradle index db16ea2..7b983db 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -89,7 +89,7 @@ dependencies { implementation "com.facebook.react:react-native" implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" - def fallbackKlippaVersion = "0.7.3" + def fallbackKlippaVersion = "0.7.4" def klippaIdentityVerificationVersion = project.hasProperty('klippaIdentityVerificationVersion') ? project.klippaIdentityVerificationVersion : fallbackKlippaVersion implementation "com.klippa:identity_verification:$klippaIdentityVerificationVersion" } diff --git a/android/src/main/java/com/klippaidentityverificationsdk/KlippaIdentityVerificationSdkModule.kt b/android/src/main/java/com/klippaidentityverificationsdk/KlippaIdentityVerificationSdkModule.kt index 96c3d8e..c49c79b 100644 --- a/android/src/main/java/com/klippaidentityverificationsdk/KlippaIdentityVerificationSdkModule.kt +++ b/android/src/main/java/com/klippaidentityverificationsdk/KlippaIdentityVerificationSdkModule.kt @@ -95,8 +95,13 @@ class KlippaIdentityVerificationSdkModule(private val reactContext: ReactApplica identitySession.retryThreshold = retryThreshold.toInt() } + (config["enableAutoCapture"] as? Boolean)?.let { enableAutoCapture -> + identitySession.enableAutoCapture = enableAutoCapture + } + setVerificationLists(config, identitySession) + setValidationLists(config, identitySession) return identitySession } @@ -116,6 +121,21 @@ class KlippaIdentityVerificationSdkModule(private val reactContext: ReactApplica } } + private fun setValidationLists( + config: Map, + identitySession: IdentitySession + ) { + @Suppress("UNCHECKED_CAST") + (config["validationIncludeList"] as? List)?.also { validationIncludeList -> + identitySession.kivValidationIncludeList = validationIncludeList + } + + @Suppress("UNCHECKED_CAST") + (config["validationExcludeList"] as? List)?.also { validationExcludeList -> + identitySession.kivValidationExcludeList = validationExcludeList + } + } + private fun setBuilderOptionalScreens( config: Map, identitySession: IdentitySession @@ -138,6 +158,8 @@ class KlippaIdentityVerificationSdkModule(private val reactContext: ReactApplica "English" -> identitySession.language = IdentitySession.KIVLanguage.English "Dutch" -> identitySession.language = IdentitySession.KIVLanguage.Dutch "Spanish" -> identitySession.language = IdentitySession.KIVLanguage.Spanish + "German" -> identitySession.language = IdentitySession.KIVLanguage.German + "French" -> identitySession.language = IdentitySession.KIVLanguage.French } } } diff --git a/ios/.sdk_version b/ios/.sdk_version index 63df075..a6db491 100644 --- a/ios/.sdk_version +++ b/ios/.sdk_version @@ -1 +1 @@ -0.5.14 \ No newline at end of file +0.5.16 \ No newline at end of file diff --git a/ios/KlippaIdentityVerificationSdk.swift b/ios/KlippaIdentityVerificationSdk.swift index 6adacfc..612dabe 100644 --- a/ios/KlippaIdentityVerificationSdk.swift +++ b/ios/KlippaIdentityVerificationSdk.swift @@ -47,12 +47,18 @@ class KlippaIdentityVerificationSdk: NSObject { builder.retryThreshold = Int(retryThreshold) } + if let enableAutoCapture = config["enableAutoCapture"] as? Bool { + builder.enableAutoCapture = enableAutoCapture + } + setBuilderColors(config, builder) setBuilderFonts(config, builder) setVerificationLists(config, builder) + setValidationLists(config, builder) + return builder } @@ -105,6 +111,10 @@ class KlippaIdentityVerificationSdk: NSObject { builder.kivLanguage = .Dutch } else if language == "Spanish" { builder.kivLanguage = .Spanish + } else if language == "German" { + builder.kivLanguage = .German + } else if language == "French" { + builder.kivLanguage = .French } } } @@ -112,8 +122,8 @@ class KlippaIdentityVerificationSdk: NSObject { // MARK: Customize Optional Screens fileprivate func setBuilderOptionalScreens(_ config: [String : Any], _ builder: IdentityBuilder) { - if let hasInstroScreen = config["hasIntroScreen"] as? Bool { - builder.hasIntroScreen = hasInstroScreen + if let hasIntroScreen = config["hasIntroScreen"] as? Bool { + builder.hasIntroScreen = hasIntroScreen } if let hasSuccessScreen = config["hasSuccessScreen"] as? Bool { @@ -133,6 +143,16 @@ class KlippaIdentityVerificationSdk: NSObject { } } + fileprivate func setValidationLists(_ config: [String : Any], _ builder: IdentityBuilder) { + if let validationIncludeList = config["validationIncludeList"] as? [String] { + builder.kivValidationIncludeList = validationIncludeList + } + + if let validationExcludeList = config["validationExcludeList"] as? [String] { + builder.kivValidationExcludeList = validationExcludeList + } + } + // MARK: Customize Fonts fileprivate func setBuilderFonts(_ config: [String : Any], _ builder: IdentityBuilder) { diff --git a/package.json b/package.json index 26504f8..c7c0bf4 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@klippa/react-native-klippa-identity-verification-sdk", "title": "React Native Klippa Identity Verification SDK", - "version": "0.0.9", + "version": "0.0.10", "description": "A React Native plugin to use the Klippa Identity Verification SDK", "homepage": "https://github.com/klippa-app/react-native-klippa-identity-verification-sdk", "main": "lib/commonjs/index", diff --git a/src/index.tsx b/src/index.tsx index 5959d52..6abf3be 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -11,7 +11,9 @@ export function startSession(builder: IdentityBuilder, sessionToken: string): Pr export enum KIVLanguage { English = "English", Dutch = "Dutch", - Spanish = "Spanish" + Spanish = "Spanish", + German = "German", + French = "French" } export class KIVFonts { @@ -47,6 +49,10 @@ export class IdentityBuilder { verifyExcludeList?: Array + validationIncludeList?: Array + + validationExcludeList?: Array + hasIntroScreen?: boolean hasSuccessScreen?: boolean @@ -54,5 +60,7 @@ export class IdentityBuilder { isDebug?: boolean retryThreshold?: number + + enableAutoCapture?: boolean } From 4605ff2c7aa086ed3ed9168684541140b8ba50cc Mon Sep 17 00:00:00 2001 From: Robin Farmer Date: Mon, 27 May 2024 14:11:10 +0200 Subject: [PATCH 2/6] bump android to 0.7.5 --- CHANGELOG.md | 2 +- android/build.gradle | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index db1475f..769413c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ ## 0.0.10 -* Bump Android to 0.7.4 +* Bump Android to 0.7.5 * Bump iOS to 0.5.16 * Added `German` and `French` support. * Added `enableAutoCapture` to `IdentityBuilder`. diff --git a/android/build.gradle b/android/build.gradle index 7b983db..ee3613d 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -89,7 +89,7 @@ dependencies { implementation "com.facebook.react:react-native" implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" - def fallbackKlippaVersion = "0.7.4" + def fallbackKlippaVersion = "0.7.5" def klippaIdentityVerificationVersion = project.hasProperty('klippaIdentityVerificationVersion') ? project.klippaIdentityVerificationVersion : fallbackKlippaVersion implementation "com.klippa:identity_verification:$klippaIdentityVerificationVersion" } From 845146bf993db0b124842c5618e5ba198e4acf82 Mon Sep 17 00:00:00 2001 From: Robin Farmer Date: Mon, 27 May 2024 14:26:41 +0200 Subject: [PATCH 3/6] make result exhaustive. --- .../KlippaIdentityVerificationSdkModule.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/android/src/main/java/com/klippaidentityverificationsdk/KlippaIdentityVerificationSdkModule.kt b/android/src/main/java/com/klippaidentityverificationsdk/KlippaIdentityVerificationSdkModule.kt index c49c79b..af41529 100644 --- a/android/src/main/java/com/klippaidentityverificationsdk/KlippaIdentityVerificationSdkModule.kt +++ b/android/src/main/java/com/klippaidentityverificationsdk/KlippaIdentityVerificationSdkModule.kt @@ -51,7 +51,8 @@ class KlippaIdentityVerificationSdkModule(private val reactContext: ReactApplica IdentitySessionResultCode.DEVICE_DOES_NOT_SUPPORT_NFC, IdentitySessionResultCode.DEVICE_NFC_DISABLED, IdentitySessionResultCode.UNKNOWN_ERROR, - IdentitySessionResultCode.TAKING_PHOTO_FAILED -> identityVerificationCanceled( + IdentitySessionResultCode.TAKING_PHOTO_FAILED, + IdentitySessionResultCode.INCORRECT_SESSION_SETUP -> identityVerificationCanceled( mappedResultCode.message() ) } From 26e8fb630bda0d3ef11382a8b400b3bfbb5ece18 Mon Sep 17 00:00:00 2001 From: Robin Farmer Date: Tue, 28 May 2024 11:13:49 +0200 Subject: [PATCH 4/6] bump iOS version. --- CHANGELOG.md | 2 +- ios/.sdk_version | 2 +- ios/KlippaIdentityVerificationSdk.swift | 59 ++++++++++++++----------- 3 files changed, 34 insertions(+), 29 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 769413c..4177364 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,7 @@ ## 0.0.10 * Bump Android to 0.7.5 -* Bump iOS to 0.5.16 +* Bump iOS to 0.5.17 * Added `German` and `French` support. * Added `enableAutoCapture` to `IdentityBuilder`. * Added `validationIncludeList` and `validationExcludeList` to `IdentityBuilder`. diff --git a/ios/.sdk_version b/ios/.sdk_version index a6db491..0d240c6 100644 --- a/ios/.sdk_version +++ b/ios/.sdk_version @@ -1 +1 @@ -0.5.16 \ No newline at end of file +0.5.17 \ No newline at end of file diff --git a/ios/KlippaIdentityVerificationSdk.swift b/ios/KlippaIdentityVerificationSdk.swift index 612dabe..88a8223 100644 --- a/ios/KlippaIdentityVerificationSdk.swift +++ b/ios/KlippaIdentityVerificationSdk.swift @@ -72,32 +72,32 @@ class KlippaIdentityVerificationSdk: NSObject { } if let textColor = colors["textColor"] { - let txtColor = hexStringToUIColor(hex: textColor) + let txtColor = UIColor(kivHexString: textColor) builder.kivColors.textColor = txtColor } if let backgroundColor = colors["backgroundColor"] { - builder.kivColors.backgroundColor = hexStringToUIColor(hex: backgroundColor) + builder.kivColors.backgroundColor = UIColor(kivHexString: backgroundColor) } if let buttonSuccessColor = colors["buttonSuccessColor"] { - builder.kivColors.buttonSuccessColor = hexStringToUIColor(hex: buttonSuccessColor) + builder.kivColors.buttonSuccessColor = UIColor(kivHexString: buttonSuccessColor) } if let buttonErrorColor = colors["buttonErrorColor"] { - builder.kivColors.buttonErrorColor = hexStringToUIColor(hex: buttonErrorColor) + builder.kivColors.buttonErrorColor = UIColor(kivHexString: buttonErrorColor) } if let buttonOtherColor = colors["buttonOtherColor"] { - builder.kivColors.buttonOtherColor = hexStringToUIColor(hex: buttonOtherColor) + builder.kivColors.buttonOtherColor = UIColor(kivHexString: buttonOtherColor) } if let progressBarBackground = colors["progressBarBackground"] { - builder.kivColors.progressBarBackground = hexStringToUIColor(hex: progressBarBackground) + builder.kivColors.progressBarBackground = UIColor(kivHexString: progressBarBackground) } if let progressBarForeground = colors["progressBarForeground"] { - builder.kivColors.progressBarForeground = hexStringToUIColor(hex: progressBarForeground) + builder.kivColors.progressBarForeground = UIColor(kivHexString: progressBarForeground) } } @@ -168,30 +168,35 @@ class KlippaIdentityVerificationSdk: NSObject { builder.kivFonts.boldFontName = boldFontName } } +} - func hexStringToUIColor(hex:String) -> UIColor? { - var cString:String = hex.trimmingCharacters(in: .whitespacesAndNewlines).uppercased() - - if (cString.hasPrefix("#")) { - cString.remove(at: cString.startIndex) - } - - if ((cString.count) != 6) { - return nil +extension UIColor { + convenience init(hexString: String) { + var newString = hexString + if newString.first != "#" { + newString.insert("#", at: newString.startIndex) + } + let hex = newString.trimmingCharacters(in: CharacterSet.alphanumerics.inverted) + var int = UInt64() + Scanner(string: hex).scanHexInt64(&int) + let a, r, g, b: UInt64 + switch hex.count { + case 3: // RGB (12-bit) + (a, r, g, b) = (255, (int >> 8) * 17, (int >> 4 & 0xF) * 17, (int & 0xF) * 17) + case 6: // RGB (24-bit) + (a, r, g, b) = (255, int >> 16, int >> 8 & 0xFF, int & 0xFF) + case 8: // ARGB (32-bit) + (a, r, g, b) = (int >> 24, int >> 16 & 0xFF, int >> 8 & 0xFF, int & 0xFF) + default: + (a, r, g, b) = (255, 0, 0, 0) } - - var rgbValue:UInt64 = 0 - Scanner(string: cString).scanHexInt64(&rgbValue) - - return UIColor( - red: CGFloat((rgbValue & 0xFF0000) >> 16) / 255.0, - green: CGFloat((rgbValue & 0x00FF00) >> 8) / 255.0, - blue: CGFloat(rgbValue & 0x0000FF) / 255.0, - alpha: CGFloat(1.0) + self.init( + red: CGFloat(r) / 255, + green: CGFloat(g) / 255, + blue: CGFloat(b) / 255, + alpha: CGFloat(a) / 255 ) } - - } extension KlippaIdentityVerificationSdk: IdentityBuilderDelegate { From 573e178b52cd59c17f3ca4e56d250f1f4b716329 Mon Sep 17 00:00:00 2001 From: Robin Farmer Date: Tue, 28 May 2024 14:09:56 +0200 Subject: [PATCH 5/6] update iOS version to prevent privacy conflicts --- example/ios/Podfile | 79 ++++++++++++++----------- ios/.sdk_version | 2 +- ios/KlippaIdentityVerificationSdk.swift | 14 ++--- 3 files changed, 53 insertions(+), 42 deletions(-) diff --git a/example/ios/Podfile b/example/ios/Podfile index b86bb4f..e02a6ce 100644 --- a/example/ios/Podfile +++ b/example/ios/Podfile @@ -24,50 +24,61 @@ target 'KlippaIdentityVerificationSdkExample' do flags = get_default_flags() use_react_native!( - :path => config[:reactNativePath], - # Hermes is now enabled by default. Disable by setting this flag to false. - # Upcoming versions of React Native may rely on get_default_flags(), but - # we make it explicit here to aid in the React Native upgrade process. - :hermes_enabled => true, - :fabric_enabled => flags[:fabric_enabled], - # Enables Flipper. - # - # Note that if you have use_frameworks! enabled, Flipper will not work and - # you should disable the next line. - :flipper_configuration => FlipperConfiguration.enabled, - # An absolute path to your application root. - :app_path => "#{Pod::Config.instance.installation_root}/.." - ) - - if "#{ENV['KLIPPA_IDENTITY_VERIFICATION_SDK_URL']}" == "" - file_path = File.expand_path('../../ios/.sdk_repo', __dir__) - ENV['KLIPPA_IDENTITY_VERIFICATION_SDK_URL'] = File.read(file_path).strip - end - - if "#{ENV['KLIPPA_IDENTITY_VERIFICATION_SDK_VERSION']}" == "" - file_path = File.expand_path('../../ios/.sdk_version', __dir__) - ENV['KLIPPA_IDENTITY_VERIFICATION_SDK_VERSION'] = File.read(file_path).strip - end - - pod 'Klippa-Identity-Verification', podspec: "#{ENV['KLIPPA_IDENTITY_VERIFICATION_SDK_URL']}/#{ENV['KLIPPA_IDENTITY_VERIFICATION_SDK_USERNAME']}/#{ENV['KLIPPA_IDENTITY_VERIFICATION_SDK_PASSWORD']}/KlippaIdentityVerification/#{ENV['KLIPPA_IDENTITY_VERIFICATION_SDK_VERSION']}.podspec" + :path => config[:reactNativePath], + # Hermes is now enabled by default. Disable by setting this flag to false. + # Upcoming versions of React Native may rely on get_default_flags(), but + # we make it explicit here to aid in the React Native upgrade process. + :hermes_enabled => true, + :fabric_enabled => flags[:fabric_enabled], + # Enables Flipper. + # + # Note that if you have use_frameworks! enabled, Flipper will not work and + # you should disable the next line. + :flipper_configuration => FlipperConfiguration.enabled, + # An absolute path to your application root. + :app_path => "#{Pod::Config.instance.installation_root}/.." + ) + + if "#{ENV['KLIPPA_IDENTITY_VERIFICATION_SDK_URL']}" == "" + file_path = File.expand_path('../../ios/.sdk_repo', __dir__) + ENV['KLIPPA_IDENTITY_VERIFICATION_SDK_URL'] = File.read(file_path).strip + end + + if "#{ENV['KLIPPA_IDENTITY_VERIFICATION_SDK_VERSION']}" == "" + file_path = File.expand_path('../../ios/.sdk_version', __dir__) + ENV['KLIPPA_IDENTITY_VERIFICATION_SDK_VERSION'] = File.read(file_path).strip + end + + pod 'Klippa-Identity-Verification', podspec: "#{ENV['KLIPPA_IDENTITY_VERIFICATION_SDK_URL']}/#{ENV['KLIPPA_IDENTITY_VERIFICATION_SDK_USERNAME']}/#{ENV['KLIPPA_IDENTITY_VERIFICATION_SDK_PASSWORD']}/KlippaIdentityVerification/#{ENV['KLIPPA_IDENTITY_VERIFICATION_SDK_VERSION']}.podspec" end post_install do |installer| installer.pods_project.targets.each do |target| target.build_configurations.each do |config| - config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '12.0' - config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= ['$(inherited)', '_LIBCPP_ENABLE_CXX17_REMOVED_UNARY_BINARY_FUNCTION'] + config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '12.0' + config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= ['$(inherited)', '_LIBCPP_ENABLE_CXX17_REMOVED_UNARY_BINARY_FUNCTION'] + end + if target.name == 'Flipper' + file_path = 'Pods/Flipper/xplat/Flipper/FlipperTransportTypes.h' + contents = File.read(file_path) + unless contents.include?('#include ') + File.chmod(0755, file_path) + File.open(file_path, 'w') do |file| + file.puts('#include ') + file.puts(contents) + end + end end end react_native_post_install( - installer, - # Set `mac_catalyst_enabled` to `true` in order to apply patches - # necessary for Mac Catalyst builds - :mac_catalyst_enabled => false - ) - __apply_Xcode_12_5_M1_post_install_workaround(installer) + installer, + # Set `mac_catalyst_enabled` to `true` in order to apply patches + # necessary for Mac Catalyst builds + :mac_catalyst_enabled => false + ) + __apply_Xcode_12_5_M1_post_install_workaround(installer) end diff --git a/ios/.sdk_version b/ios/.sdk_version index 0d240c6..d2d81b7 100644 --- a/ios/.sdk_version +++ b/ios/.sdk_version @@ -1 +1 @@ -0.5.17 \ No newline at end of file +0.5.18 \ No newline at end of file diff --git a/ios/KlippaIdentityVerificationSdk.swift b/ios/KlippaIdentityVerificationSdk.swift index 88a8223..6b8fbb1 100644 --- a/ios/KlippaIdentityVerificationSdk.swift +++ b/ios/KlippaIdentityVerificationSdk.swift @@ -72,32 +72,32 @@ class KlippaIdentityVerificationSdk: NSObject { } if let textColor = colors["textColor"] { - let txtColor = UIColor(kivHexString: textColor) + let txtColor = UIColor(hexString: textColor) builder.kivColors.textColor = txtColor } if let backgroundColor = colors["backgroundColor"] { - builder.kivColors.backgroundColor = UIColor(kivHexString: backgroundColor) + builder.kivColors.backgroundColor = UIColor(hexString: backgroundColor) } if let buttonSuccessColor = colors["buttonSuccessColor"] { - builder.kivColors.buttonSuccessColor = UIColor(kivHexString: buttonSuccessColor) + builder.kivColors.successColor = UIColor(hexString: buttonSuccessColor) } if let buttonErrorColor = colors["buttonErrorColor"] { - builder.kivColors.buttonErrorColor = UIColor(kivHexString: buttonErrorColor) + builder.kivColors.errorColor = UIColor(hexString: buttonErrorColor) } if let buttonOtherColor = colors["buttonOtherColor"] { - builder.kivColors.buttonOtherColor = UIColor(kivHexString: buttonOtherColor) + builder.kivColors.otherColor = UIColor(hexString: buttonOtherColor) } if let progressBarBackground = colors["progressBarBackground"] { - builder.kivColors.progressBarBackground = UIColor(kivHexString: progressBarBackground) + builder.kivColors.progressBarBackground = UIColor(hexString: progressBarBackground) } if let progressBarForeground = colors["progressBarForeground"] { - builder.kivColors.progressBarForeground = UIColor(kivHexString: progressBarForeground) + builder.kivColors.progressBarForeground = UIColor(hexString: progressBarForeground) } } From fcddbafa6f4ef0b87fa911676b9f8700d04d3813 Mon Sep 17 00:00:00 2001 From: RobinFarmer <80266735+RobinFarmer@users.noreply.github.com> Date: Tue, 28 May 2024 14:11:16 +0200 Subject: [PATCH 6/6] Update CHANGELOG.md --- CHANGELOG.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4177364..4807f04 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,7 @@ ## 0.0.10 * Bump Android to 0.7.5 -* Bump iOS to 0.5.17 +* Bump iOS to 0.5.18 * Added `German` and `French` support. * Added `enableAutoCapture` to `IdentityBuilder`. * Added `validationIncludeList` and `validationExcludeList` to `IdentityBuilder`. @@ -48,4 +48,4 @@ ## 0.0.1 -* First release of Klippa Scanner SDK on react native. \ No newline at end of file +* First release of Klippa Scanner SDK on react native.