@finos_sdk/sdk-ekyc 1.5.4 → 1.5.6

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.
@@ -65,7 +65,7 @@ dependencies {
65
65
  implementation 'com.facebook.react:react-android'
66
66
 
67
67
  // Finos eKYC SDK dependencies from GitHub Packages Maven repository
68
- def sdkVersion = "1.5.4"
68
+ def sdkVersion = "1.5.5.3"
69
69
  implementation("finos.sdk.ekyc:ekyc:$sdkVersion")
70
70
  implementation("finos.sdk.ekyc:ekycui:$sdkVersion")
71
71
  implementation("finos.sdk.ekyc:nfc:$sdkVersion")
@@ -28,6 +28,7 @@ import finos.sdk.core.define.SDKType
28
28
  import finos.sdk.core.define.SDKFaceDetectStatus
29
29
  import finos.sdk.core.model.response.SDKEkycResult
30
30
  import finos.sdk.core.model.sdk.config.AppKeyConfig
31
+ import finos.sdk.core.model.sdk.config.AppKeyLivenessConfig
31
32
  import finos.sdk.core.model.sdk.config.C06Config
32
33
  import finos.sdk.core.model.sdk.config.EKYCConfigSDK
33
34
  import finos.sdk.core.model.sdk.config.ExitConfirmConfig
@@ -1174,7 +1175,7 @@ class EKYCModule(reactContext: ReactApplicationContext) : ReactContextBaseJavaMo
1174
1175
  // FaceService cần appKeyFaceService. Trước đây RN chỉ truyền 1 key string,
1175
1176
  // nên map key này vào appKeyFaceService (và set appKey luôn để tương thích).
1176
1177
  val ekycConfig = EKYCConfigSDK(
1177
- appKey = AppKeyConfig(appKey = appKey, appKeyFaceService = appKey),
1178
+ appKey = AppKeyConfig(appKey = appKey),
1178
1179
  faceServiceConfig = faceServiceConfig
1179
1180
  )
1180
1181
 
@@ -1635,19 +1636,30 @@ class EKYCModule(reactContext: ReactApplicationContext) : ReactContextBaseJavaMo
1635
1636
  val appKeyOcr = extractStringValue(appKeyConfigJson, "appKeyOcr")
1636
1637
  ?: throw IllegalArgumentException("appKeyOcr is required in appKeyConfig")
1637
1638
  val appKeyLiveness = extractStringValue(appKeyConfigJson, "appKeyLiveness")
1638
- ?: throw IllegalArgumentException("appKeyLiveness is required in appKeyConfig")
1639
+ ?: ""
1639
1640
  val appKeyC06 = extractStringValue(appKeyConfigJson, "appKeyC06")
1640
1641
  ?: throw IllegalArgumentException("appKeyC06 is required in appKeyConfig")
1641
1642
  val appKeyFaceService = extractStringValue(appKeyConfigJson, "appKeyFaceService")
1642
- ?: throw IllegalArgumentException("appKeyFaceService is required in appKeyConfig")
1643
+ ?: ""
1644
+ val appKeyESign = extractStringValue(appKeyConfigJson, "appKeyESign")
1645
+ ?: ""
1646
+
1647
+ val appKeyLivenessActive = extractStringValue(appKeyConfigJson, "appKeyLivenessActive")
1648
+ ?: appKeyLiveness
1649
+ val appKeyLivenessPassive = extractStringValue(appKeyConfigJson, "appKeyLivenessPassive")
1650
+ ?: appKeyLiveness
1643
1651
 
1644
1652
  AppKeyConfig(
1645
1653
  appKey = appKey,
1646
1654
  appKeyNfc = appKeyNfc,
1647
- appKeyOcr = appKeyOcr,
1648
- appKeyLiveness = appKeyLiveness,
1649
1655
  appKeyC06 = appKeyC06,
1650
- appKeyFaceService = appKeyFaceService
1656
+ appKeyOcr = appKeyOcr,
1657
+ appKeyLiveness = AppKeyLivenessConfig(
1658
+ appKeyLivenessActive = appKeyLivenessActive,
1659
+ appKeyLivenessPassive = appKeyLivenessPassive,
1660
+ appKeyFaceService = appKeyFaceService
1661
+ ),
1662
+ appKeyESign = appKeyESign
1651
1663
  )
1652
1664
  } catch (e: Exception) {
1653
1665
  Log.e(TAG, "Error parsing appKeyConfig: ${e.message}", e)
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finos_sdk/sdk-ekyc",
3
- "version": "1.5.4",
3
+ "version": "1.5.6",
4
4
  "description": "React Native SDK for eKYC - Vietnamese CCCD NFC reading, OCR, Liveness detection, Face matching, and C06, eSign, SmsOTP residence verification",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finos_sdk/sdk-ekyc",
3
- "version": "1.5.4",
3
+ "version": "1.5.6",
4
4
  "description": "React Native SDK for eKYC - Vietnamese CCCD NFC reading, OCR, Liveness detection, Face matching, and C06, eSign, SmsOTP residence verification",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",