uqudosdk-react-native 2.7.0 → 2.7.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,35 @@
1
+ ## 2.7.2
2
+
3
+ * Added scan support for Iraqi ID.
4
+ * Added two new session status codes:
5
+ - SESSION_INVALIDATED_CAMERA_NOT_AVAILABLE: If the camera is not available, the SDK drops the session with this status. Possible reasons for the camera not being available include:
6
+ - Hardware Failure: Hardware issues or malfunctions can render the camera module inoperable.
7
+ - Privacy Settings: The user may have disabled the camera functionality through privacy settings or restrictions on the device.
8
+ - Camera in Use by Another App: If another application is actively using the camera, attempts to access it from a different app may fail. Possible scenarios:
9
+ - Camera is in Use by System Process: System-level processes or services may temporarily take control of the camera (e.g., on iOS, the camera might be used by the system camera app, FaceTime, or other built-in features).
10
+ - Background Camera Use: Some apps may continue to use the camera even when in the background (e.g., video conferencing apps might continue to stream video).
11
+ - Camera Hardware Limitations: Certain devices or hardware configurations may impose limitations on camera access (e.g., restricting access to the camera when certain power-saving features are enabled).
12
+ - Device-Specific Behavior: Device manufacturers and operating system providers may implement different policies or behaviors regarding camera access, leading to variations across devices and platforms.
13
+ - SESSION_INVALIDATED_CAMERA_PERMISSION_NOT_GRANTED: If the end user denies camera access, the SDK drops the session with this status.
14
+ In both cases, it's necessary to manage the error codes and interact with the end user accordingly.
15
+ * In Android, fixed a bug where, in rare cases during the scanning step, if the application was put in the background and subsequently killed by the OS, the session ID was lost, and the user wasn't able to proceed with the KYC session.
16
+ * Improved the quality detection during scanning and fixed a bug where the back side of the Rwand ID was hard to scan.
17
+ * Improved HTTP retry mechanism when interacting with the server during sudden and temporary connection failures.
18
+ * Minor bug fixes and improvements.
19
+
20
+ ## 2.7.1
21
+
22
+ * We have introduced a new document type called MRZ. This document type allows you to scan documents with MRZ type TD1 or TD3. Additionally, you can enable the reading module, and if the issuer is supported, the SDK will guide the user to the reading/NFC step. Please note that no additional features are available for the MRZ document type
23
+ * Added full support for Qatari ID scanning
24
+
25
+ ## 2.7.0-2
26
+
27
+ * Fixed incorrect property in UQFacialRecognitionConfig.
28
+
29
+ ## 2.7.0-1
30
+
31
+ * Fixed syntax error in the DocumentType enum.
32
+
1
33
  ## 2.7.0
2
34
 
3
35
  * In this latest release, we've revamped the facial recognition step. We've eliminated the nodding step, transforming facial recognition into a straightforward process easy as capturing a selfie. Under the hood, numerous enhancements have been implemented to ensure speed, simplicity, and enhanced accuracy. There are no changes in terms of business logic for your integration process
@@ -7,10 +39,6 @@
7
39
  * Added support for Lebanon ID and Driving License
8
40
  * Minor improvements and minor bug fixes
9
41
 
10
- ## 2.6.0-1
11
-
12
- * Fixed bug in the flutter plugin that prevent ios app to build successfully. The bug was introduced in version 2.6.0.
13
-
14
42
  ## 2.6.0
15
43
 
16
44
  * Added new feature "Lookup Flow". The "Lookp Flow" it's the same as the "Enrollment Flow" with the only difference that the first step is not the automatic scanning of a document through the camera phone but the user is asked to manually type in some information of the document that can be used to perform the lookup on the government database. Only one document at the time is supported. Other features like facial recognition and background check can be enabled in the same way as per the "Enrollment Flow". Please check the integration documentation https://docs.uqudo.com/docs/uqudo-sdk/integration for details
@@ -33,5 +33,5 @@ android {
33
33
 
34
34
  dependencies {
35
35
  implementation 'com.facebook.react:react-native:+'
36
- implementation 'io.uqudo.sdk:Uqudo:2.7.0'
36
+ implementation 'io.uqudo.sdk:Uqudo:2.7.2'
37
37
  }
package/ios/UqudoId.m CHANGED
@@ -78,7 +78,7 @@ RCT_EXPORT_METHOD(enroll:(NSString *)enrollObj resolver:(RCTPromiseResolveBlock)
78
78
  if (facialRecognitionSpecification[@"maxAttempts"]) {
79
79
  int maxAttempts = [[facialRecognitionSpecification valueForKey:@"maxAttempts"] intValue];
80
80
  if (maxAttempts > 0) {
81
- config.facialRecognitionMaxAttempts = maxAttempts;
81
+ config.maxAttempts = maxAttempts;
82
82
  }
83
83
  }
84
84
  if (facialRecognitionSpecification[@"allowClosedEyes"]) {
@@ -631,6 +631,12 @@ RCT_EXPORT_METHOD(isLookupFacialRecognitionSupported:(NSString *)documentType re
631
631
  case SESSION_INVALIDATED_OTP_TOO_MANY_ATTEMPTS:
632
632
  code = @"SESSION_INVALIDATED_OTP_TOO_MANY_ATTEMPTS";
633
633
  break;
634
+ case SESSION_INVALIDATED_CAMERA_NOT_AVAILABLE:
635
+ code = @"SESSION_INVALIDATED_CAMERA_NOT_AVAILABLE";
636
+ break;
637
+ case SESSION_INVALIDATED_CAMERA_PERMISSION_NOT_GRANTED:
638
+ code = @"SESSION_INVALIDATED_CAMERA_PERMISSION_NOT_GRANTED";
639
+ break;
634
640
  }
635
641
  NSString *task = nil;
636
642
  switch (status.statusTask) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "uqudosdk-react-native",
3
3
  "title": "React Native UqudoId",
4
- "version": "2.7.0",
4
+ "version": "2.7.2",
5
5
  "description": "Uqudo SDK react native module",
6
6
  "main": "index.js",
7
7
  "author": {
@@ -108,9 +108,11 @@ export const DocumentType = Object.freeze(
108
108
  IND_PAN: 'IND_PAN',
109
109
  SAU_ID_NATIONAL: 'SAU_ID_NATIONAL',
110
110
  SAU_ID_RESIDENT: 'SAU_ID_RESIDENT',
111
- NGA_BVN: 'NGA_BVN'
111
+ NGA_BVN: 'NGA_BVN',
112
112
  LBN_ID: 'LBN_ID',
113
113
  LBN_DL: 'LBN_DL',
114
+ MRZ: 'MRZ',
115
+ IRQ_ID: 'IRQ_ID',
114
116
  }
115
117
  );
116
118
 
@@ -13,5 +13,5 @@ Pod::Spec.new do |s|
13
13
  s.source = { :http => 'https://uqudo.com' }
14
14
  s.header_dir = 'UqudoSDK'
15
15
  s.dependency 'React'
16
- s.dependency 'UqudoSDK', '2.7.0'
16
+ s.dependency 'UqudoSDK', '2.7.2'
17
17
  end