Skip to content

Commit 06935b0

Browse files
authored
Merge pull request #18 from klippa-app/feature/bump-sdks
Bump ios and android sdks.
2 parents ac2e8b1 + 359eb69 commit 06935b0

File tree

9 files changed

+102
-43
lines changed

9 files changed

+102
-43
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## 0.0.16
2+
3+
* Bump Android to 0.7.12
4+
* Bump iOS to 0.6.5
5+
* Added `allowCameraOnNFCTask`, `exitOnRetryThresholdReached` and `nfcTimeoutThreshold` to `IdentityBuilder`.
6+
17
## 0.0.14
28

39
* Bump Android to 0.7.11

README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,25 @@ To configure how often a user can attempt a task before the `contact support` bu
199199
identityBuilder.retryThreshold = 1
200200
```
201201

202+
To configure if the SDK should quit instead of showing the support button you can set the following:
203+
```typescript
204+
identityBuilder.exitOnRetryThresholdReached = true
205+
```
206+
207+
### Allow Camera On NFC Task
208+
209+
To configure whether a user can skip NFC and use OCR instead.
210+
```typescript
211+
identityBuilder.allowCameraOnNFCTask = true
212+
```
213+
214+
### NFC Timeout Threshold
215+
216+
To configure how long the NFC detecting stays active you can set a timeout.
217+
```typescript
218+
identityBuilder.nfcTimeoutThreshold = 5.0
219+
```
220+
202221
### Enable Auto Capture
203222

204223
To configure if the camera should automatically take a photo if the conditions are right.

android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ dependencies {
8989
implementation "com.facebook.react:react-native"
9090
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
9191

92-
def fallbackKlippaVersion = "0.7.11"
92+
def fallbackKlippaVersion = "0.7.12"
9393
def klippaIdentityVerificationVersion = project.hasProperty('klippaIdentityVerificationVersion') ? project.klippaIdentityVerificationVersion : fallbackKlippaVersion
9494
implementation "com.klippa:identity_verification:$klippaIdentityVerificationVersion"
9595
}

android/src/main/java/com/klippaidentityverificationsdk/KlippaIdentityVerificationSdkModule.kt

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,9 @@ class KlippaIdentityVerificationSdkModule(private val reactContext: ReactApplica
5252
IdentitySessionResultCode.DEVICE_NFC_DISABLED,
5353
IdentitySessionResultCode.UNKNOWN_ERROR,
5454
IdentitySessionResultCode.TAKING_PHOTO_FAILED,
55-
IdentitySessionResultCode.INCORRECT_SESSION_SETUP -> identityVerificationCanceled(
55+
IdentitySessionResultCode.INCORRECT_SESSION_SETUP,
56+
IdentitySessionResultCode.ALLOW_PICTURE_FALLBACK_DISABLED,
57+
IdentitySessionResultCode.RETRY_LIMIT_REACHED -> identityVerificationCanceled(
5658
mappedResultCode.message()
5759
)
5860
}
@@ -100,6 +102,18 @@ class KlippaIdentityVerificationSdkModule(private val reactContext: ReactApplica
100102
identitySession.enableAutoCapture = enableAutoCapture
101103
}
102104

105+
(config["nfcTimeoutThreshold"] as? Double)?.let { nfcTimeoutThreshold ->
106+
identitySession.nfcTimeoutThreshold = nfcTimeoutThreshold
107+
}
108+
109+
(config["allowCameraOnNFCTask"] as? Boolean)?.let { allowCameraOnNFCTask ->
110+
identitySession.allowCameraOnNFCTask = allowCameraOnNFCTask
111+
}
112+
113+
(config["exitOnRetryThresholdReached"] as? Boolean)?.let { exitOnRetryThresholdReached ->
114+
identitySession.exitOnRetryThresholdReached = exitOnRetryThresholdReached
115+
}
116+
103117
setVerificationLists(config, identitySession)
104118

105119
setValidationLists(config, identitySession)

example/ios/KlippaIdentityVerificationSdkExample.xcodeproj/project.pbxproj

Lines changed: 37 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; };
1111
4A49FDA12D082FA40072EA23 /* PrivacyInfo.xcprivacy in Resources */ = {isa = PBXBuildFile; fileRef = 4A49FDA02D082FA40072EA23 /* PrivacyInfo.xcprivacy */; };
1212
4AAD27B02DC4DC3A00D3776A /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4AAD27AF2DC4DC3A00D3776A /* AppDelegate.swift */; };
13+
727993B3E7F1B28AB188FE76 /* libPods-KlippaIdentityVerificationSdkExample.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 6EDCAB706C19037AB843EED0 /* libPods-KlippaIdentityVerificationSdkExample.a */; };
1314
81AB9BB82411601600AC10FF /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */; };
14-
E63E3B571324B4AE9B710F39 /* libPods-KlippaIdentityVerificationSdkExample.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 9C02DEE66F5B572D85D758A8 /* libPods-KlippaIdentityVerificationSdkExample.a */; };
1515
/* End PBXBuildFile section */
1616

1717
/* Begin PBXContainerItemProxy section */
@@ -26,16 +26,16 @@
2626

2727
/* Begin PBXFileReference section */
2828
00E356EE1AD99517003FC87E /* KlippaIdentityVerificationSdkExampleTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = KlippaIdentityVerificationSdkExampleTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
29-
08B2D490F7484CA99BEB9222 /* Pods-KlippaIdentityVerificationSdkExample.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-KlippaIdentityVerificationSdkExample.debug.xcconfig"; path = "Target Support Files/Pods-KlippaIdentityVerificationSdkExample/Pods-KlippaIdentityVerificationSdkExample.debug.xcconfig"; sourceTree = "<group>"; };
3029
13B07F961A680F5B00A75B9A /* KlippaIdentityVerificationSdkExample.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = KlippaIdentityVerificationSdkExample.app; sourceTree = BUILT_PRODUCTS_DIR; };
3130
13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = KlippaIdentityVerificationSdkExample/Images.xcassets; sourceTree = "<group>"; };
3231
13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = KlippaIdentityVerificationSdkExample/Info.plist; sourceTree = "<group>"; };
3332
4A49FDA02D082FA40072EA23 /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; lastKnownFileType = text.xml; path = PrivacyInfo.xcprivacy; sourceTree = "<group>"; };
3433
4AAD27AF2DC4DC3A00D3776A /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = AppDelegate.swift; path = KlippaIdentityVerificationSdkExample/AppDelegate.swift; sourceTree = "<group>"; };
3534
4AB32CD72DC4B43E004CBBB5 /* KlippaIdentityVerificationSdkExample-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "KlippaIdentityVerificationSdkExample-Bridging-Header.h"; sourceTree = "<group>"; };
35+
4AF62A9AE6D8DD277F35AA9E /* Pods-KlippaIdentityVerificationSdkExample.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-KlippaIdentityVerificationSdkExample.release.xcconfig"; path = "Target Support Files/Pods-KlippaIdentityVerificationSdkExample/Pods-KlippaIdentityVerificationSdkExample.release.xcconfig"; sourceTree = "<group>"; };
36+
650505F862A03D3270F95C90 /* Pods-KlippaIdentityVerificationSdkExample.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-KlippaIdentityVerificationSdkExample.debug.xcconfig"; path = "Target Support Files/Pods-KlippaIdentityVerificationSdkExample/Pods-KlippaIdentityVerificationSdkExample.debug.xcconfig"; sourceTree = "<group>"; };
37+
6EDCAB706C19037AB843EED0 /* libPods-KlippaIdentityVerificationSdkExample.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-KlippaIdentityVerificationSdkExample.a"; sourceTree = BUILT_PRODUCTS_DIR; };
3638
81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; name = LaunchScreen.storyboard; path = KlippaIdentityVerificationSdkExample/LaunchScreen.storyboard; sourceTree = "<group>"; };
37-
9C02DEE66F5B572D85D758A8 /* libPods-KlippaIdentityVerificationSdkExample.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-KlippaIdentityVerificationSdkExample.a"; sourceTree = BUILT_PRODUCTS_DIR; };
38-
E53BBD849E41C45C0E81A1A3 /* Pods-KlippaIdentityVerificationSdkExample.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-KlippaIdentityVerificationSdkExample.release.xcconfig"; path = "Target Support Files/Pods-KlippaIdentityVerificationSdkExample/Pods-KlippaIdentityVerificationSdkExample.release.xcconfig"; sourceTree = "<group>"; };
3939
ED297162215061F000B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = System/Library/Frameworks/JavaScriptCore.framework; sourceTree = SDKROOT; };
4040
/* End PBXFileReference section */
4141

@@ -51,7 +51,7 @@
5151
isa = PBXFrameworksBuildPhase;
5252
buildActionMask = 2147483647;
5353
files = (
54-
E63E3B571324B4AE9B710F39 /* libPods-KlippaIdentityVerificationSdkExample.a in Frameworks */,
54+
727993B3E7F1B28AB188FE76 /* libPods-KlippaIdentityVerificationSdkExample.a in Frameworks */,
5555
);
5656
runOnlyForDeploymentPostprocessing = 0;
5757
};
@@ -75,7 +75,7 @@
7575
isa = PBXGroup;
7676
children = (
7777
ED297162215061F000B7C4FE /* JavaScriptCore.framework */,
78-
9C02DEE66F5B572D85D758A8 /* libPods-KlippaIdentityVerificationSdkExample.a */,
78+
6EDCAB706C19037AB843EED0 /* libPods-KlippaIdentityVerificationSdkExample.a */,
7979
);
8080
name = Frameworks;
8181
sourceTree = "<group>";
@@ -113,8 +113,8 @@
113113
BBD78D7AC51CEA395F1C20DB /* Pods */ = {
114114
isa = PBXGroup;
115115
children = (
116-
08B2D490F7484CA99BEB9222 /* Pods-KlippaIdentityVerificationSdkExample.debug.xcconfig */,
117-
E53BBD849E41C45C0E81A1A3 /* Pods-KlippaIdentityVerificationSdkExample.release.xcconfig */,
116+
650505F862A03D3270F95C90 /* Pods-KlippaIdentityVerificationSdkExample.debug.xcconfig */,
117+
4AF62A9AE6D8DD277F35AA9E /* Pods-KlippaIdentityVerificationSdkExample.release.xcconfig */,
118118
);
119119
path = Pods;
120120
sourceTree = "<group>";
@@ -144,14 +144,14 @@
144144
isa = PBXNativeTarget;
145145
buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "KlippaIdentityVerificationSdkExample" */;
146146
buildPhases = (
147-
4822D5F83C405A1E1C77B3E7 /* [CP] Check Pods Manifest.lock */,
147+
B253E39838ACF6A56B51CE65 /* [CP] Check Pods Manifest.lock */,
148148
FD10A7F022414F080027D42C /* Start Packager */,
149149
13B07F871A680F5B00A75B9A /* Sources */,
150150
13B07F8C1A680F5B00A75B9A /* Frameworks */,
151151
13B07F8E1A680F5B00A75B9A /* Resources */,
152152
00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */,
153-
0F707EC79471681B7BACC6A2 /* [CP] Embed Pods Frameworks */,
154-
2364C54CAF6AD3BDFECC94AD /* [CP] Copy Pods Resources */,
153+
F7156D152363B3187900BB79 /* [CP] Embed Pods Frameworks */,
154+
29CF2D74C115909A87F56AFC /* [CP] Copy Pods Resources */,
155155
);
156156
buildRules = (
157157
);
@@ -235,68 +235,60 @@
235235
shellPath = /bin/sh;
236236
shellScript = "set -e\n\nWITH_ENVIRONMENT=\"../node_modules/react-native/scripts/xcode/with-environment.sh\"\nREACT_NATIVE_XCODE=\"../node_modules/react-native/scripts/react-native-xcode.sh\"\n\n/bin/sh -c \"$WITH_ENVIRONMENT $REACT_NATIVE_XCODE\"\n";
237237
};
238-
0F707EC79471681B7BACC6A2 /* [CP] Embed Pods Frameworks */ = {
238+
29CF2D74C115909A87F56AFC /* [CP] Copy Pods Resources */ = {
239239
isa = PBXShellScriptBuildPhase;
240240
buildActionMask = 2147483647;
241241
files = (
242242
);
243243
inputFileListPaths = (
244-
"${PODS_ROOT}/Target Support Files/Pods-KlippaIdentityVerificationSdkExample/Pods-KlippaIdentityVerificationSdkExample-frameworks-${CONFIGURATION}-input-files.xcfilelist",
245-
);
246-
inputPaths = (
244+
"${PODS_ROOT}/Target Support Files/Pods-KlippaIdentityVerificationSdkExample/Pods-KlippaIdentityVerificationSdkExample-resources-${CONFIGURATION}-input-files.xcfilelist",
247245
);
248-
name = "[CP] Embed Pods Frameworks";
246+
name = "[CP] Copy Pods Resources";
249247
outputFileListPaths = (
250-
"${PODS_ROOT}/Target Support Files/Pods-KlippaIdentityVerificationSdkExample/Pods-KlippaIdentityVerificationSdkExample-frameworks-${CONFIGURATION}-output-files.xcfilelist",
251-
);
252-
outputPaths = (
248+
"${PODS_ROOT}/Target Support Files/Pods-KlippaIdentityVerificationSdkExample/Pods-KlippaIdentityVerificationSdkExample-resources-${CONFIGURATION}-output-files.xcfilelist",
253249
);
254250
runOnlyForDeploymentPostprocessing = 0;
255251
shellPath = /bin/sh;
256-
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-KlippaIdentityVerificationSdkExample/Pods-KlippaIdentityVerificationSdkExample-frameworks.sh\"\n";
252+
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-KlippaIdentityVerificationSdkExample/Pods-KlippaIdentityVerificationSdkExample-resources.sh\"\n";
257253
showEnvVarsInLog = 0;
258254
};
259-
2364C54CAF6AD3BDFECC94AD /* [CP] Copy Pods Resources */ = {
255+
B253E39838ACF6A56B51CE65 /* [CP] Check Pods Manifest.lock */ = {
260256
isa = PBXShellScriptBuildPhase;
261257
buildActionMask = 2147483647;
262258
files = (
263259
);
264260
inputFileListPaths = (
265-
"${PODS_ROOT}/Target Support Files/Pods-KlippaIdentityVerificationSdkExample/Pods-KlippaIdentityVerificationSdkExample-resources-${CONFIGURATION}-input-files.xcfilelist",
266261
);
267262
inputPaths = (
263+
"${PODS_PODFILE_DIR_PATH}/Podfile.lock",
264+
"${PODS_ROOT}/Manifest.lock",
268265
);
269-
name = "[CP] Copy Pods Resources";
266+
name = "[CP] Check Pods Manifest.lock";
270267
outputFileListPaths = (
271-
"${PODS_ROOT}/Target Support Files/Pods-KlippaIdentityVerificationSdkExample/Pods-KlippaIdentityVerificationSdkExample-resources-${CONFIGURATION}-output-files.xcfilelist",
272268
);
273269
outputPaths = (
270+
"$(DERIVED_FILE_DIR)/Pods-KlippaIdentityVerificationSdkExample-checkManifestLockResult.txt",
274271
);
275272
runOnlyForDeploymentPostprocessing = 0;
276273
shellPath = /bin/sh;
277-
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-KlippaIdentityVerificationSdkExample/Pods-KlippaIdentityVerificationSdkExample-resources.sh\"\n";
274+
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
278275
showEnvVarsInLog = 0;
279276
};
280-
4822D5F83C405A1E1C77B3E7 /* [CP] Check Pods Manifest.lock */ = {
277+
F7156D152363B3187900BB79 /* [CP] Embed Pods Frameworks */ = {
281278
isa = PBXShellScriptBuildPhase;
282279
buildActionMask = 2147483647;
283280
files = (
284281
);
285282
inputFileListPaths = (
283+
"${PODS_ROOT}/Target Support Files/Pods-KlippaIdentityVerificationSdkExample/Pods-KlippaIdentityVerificationSdkExample-frameworks-${CONFIGURATION}-input-files.xcfilelist",
286284
);
287-
inputPaths = (
288-
"${PODS_PODFILE_DIR_PATH}/Podfile.lock",
289-
"${PODS_ROOT}/Manifest.lock",
290-
);
291-
name = "[CP] Check Pods Manifest.lock";
285+
name = "[CP] Embed Pods Frameworks";
292286
outputFileListPaths = (
293-
);
294-
outputPaths = (
295-
"$(DERIVED_FILE_DIR)/Pods-KlippaIdentityVerificationSdkExample-checkManifestLockResult.txt",
287+
"${PODS_ROOT}/Target Support Files/Pods-KlippaIdentityVerificationSdkExample/Pods-KlippaIdentityVerificationSdkExample-frameworks-${CONFIGURATION}-output-files.xcfilelist",
296288
);
297289
runOnlyForDeploymentPostprocessing = 0;
298290
shellPath = /bin/sh;
299-
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
291+
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-KlippaIdentityVerificationSdkExample/Pods-KlippaIdentityVerificationSdkExample-frameworks.sh\"\n";
300292
showEnvVarsInLog = 0;
301293
};
302294
FD10A7F022414F080027D42C /* Start Packager */ = {
@@ -399,7 +391,7 @@
399391
};
400392
13B07F941A680F5B00A75B9A /* Debug */ = {
401393
isa = XCBuildConfiguration;
402-
baseConfigurationReference = 08B2D490F7484CA99BEB9222 /* Pods-KlippaIdentityVerificationSdkExample.debug.xcconfig */;
394+
baseConfigurationReference = 650505F862A03D3270F95C90 /* Pods-KlippaIdentityVerificationSdkExample.debug.xcconfig */;
403395
buildSettings = {
404396
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
405397
CLANG_ENABLE_MODULES = YES;
@@ -435,7 +427,7 @@
435427
};
436428
13B07F951A680F5B00A75B9A /* Release */ = {
437429
isa = XCBuildConfiguration;
438-
baseConfigurationReference = E53BBD849E41C45C0E81A1A3 /* Pods-KlippaIdentityVerificationSdkExample.release.xcconfig */;
430+
baseConfigurationReference = 4AF62A9AE6D8DD277F35AA9E /* Pods-KlippaIdentityVerificationSdkExample.release.xcconfig */;
439431
buildSettings = {
440432
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
441433
CLANG_ENABLE_MODULES = YES;
@@ -534,7 +526,10 @@
534526
"-DFOLLY_MOBILE=1",
535527
"-DFOLLY_USE_LIBCPP=1",
536528
);
537-
OTHER_LDFLAGS = "$(inherited) ";
529+
OTHER_LDFLAGS = (
530+
"$(inherited)",
531+
" ",
532+
);
538533
REACT_NATIVE_PATH = "${PODS_ROOT}/../../node_modules/react-native";
539534
SDKROOT = iphoneos;
540535
SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) DEBUG";
@@ -601,7 +596,10 @@
601596
"-DFOLLY_MOBILE=1",
602597
"-DFOLLY_USE_LIBCPP=1",
603598
);
604-
OTHER_LDFLAGS = "$(inherited) ";
599+
OTHER_LDFLAGS = (
600+
"$(inherited)",
601+
" ",
602+
);
605603
REACT_NATIVE_PATH = "${PODS_ROOT}/../../node_modules/react-native";
606604
SDKROOT = iphoneos;
607605
USE_HERMES = true;

ios/.sdk_version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.6.3
1+
0.6.5

ios/KlippaIdentityVerificationSdk.swift

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,18 @@ class KlippaIdentityVerificationSdk: NSObject {
5151
builder.enableAutoCapture = enableAutoCapture
5252
}
5353

54+
if let allowCameraOnNFCTask = config["allowCameraOnNFCTask"] as? Bool {
55+
builder.allowCameraOnNFCTask = allowCameraOnNFCTask
56+
}
57+
58+
if let exitOnRetryThresholdReached = config["exitOnRetryThresholdReached"] as? Bool {
59+
builder.exitOnRetryThresholdReached = exitOnRetryThresholdReached
60+
}
61+
62+
if let nfcTimeoutThreshold = config["nfcTimeoutThreshold"] as? Double {
63+
builder.nfcTimeoutThreshold = nfcTimeoutThreshold
64+
}
65+
5466
setBuilderColors(config, builder)
5567

5668
setBuilderFonts(config, builder)
@@ -223,6 +235,10 @@ extension KlippaIdentityVerificationSdk: IdentityBuilderDelegate {
223235
return "No internet connection"
224236
case KlippaError.NfcNotSupported:
225237
return "NFC Not supported"
238+
case KlippaError.AllowPictureFallbackDisabled:
239+
return "Allow Picture Fallback Disabled"
240+
case KlippaError.RetryLimitReached:
241+
return "Retry Limit Reached"
226242
}
227243
}()
228244
_reject?(E_CANCELED, errorMessage, nil)

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@klippa/react-native-klippa-identity-verification-sdk",
33
"title": "React Native Klippa Identity Verification SDK",
4-
"version": "0.0.15",
4+
"version": "0.0.16",
55
"description": "A React Native plugin to use the Klippa Identity Verification SDK",
66
"homepage": "https://github.com/klippa-app/react-native-klippa-identity-verification-sdk",
77
"main": "lib/commonjs/index",

src/index.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,5 +62,11 @@ export class IdentityBuilder {
6262
retryThreshold?: number
6363

6464
enableAutoCapture?: boolean
65+
66+
allowCameraOnNFCTask?: boolean
67+
68+
exitOnRetryThresholdReached?: boolean
69+
70+
nfcTimeoutThreshold?: number
6571
}
6672

0 commit comments

Comments
 (0)