react-native-zyprotectabio-module 0.1.12 → 0.1.15

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/README.md CHANGED
@@ -16,7 +16,7 @@ Ninguna
16
16
  ## Installation
17
17
 
18
18
  ```sh
19
- npm install react-native-zyprotectabio-module@0.1.12 --legacy-peer-deps
19
+ npm install react-native-zyprotectabio-module@0.1.13 --legacy-peer-deps
20
20
  ```
21
21
 
22
22
  ## Usage
@@ -34,6 +34,7 @@ npm install react-native-zyprotectabio-module@0.1.12 --legacy-peer-deps
34
34
  bioPais: "PE", //Pais de verificacion (siempre PE)
35
35
  tiOperacion: "FLUJO_FACIAL_MANUAL", //Operacion debe ser FLUJO_FACIAL_MANUAL
36
36
  urlSource: "DEV2", // Ambiente a la conexion DEV2 , POC , DEVX , SIGN (PRODUCCION)
37
+ flujoExterno,
37
38
  };
38
39
  const result = await ZyprotectabioModule.onZyBioCapture(opciones);
39
40
 
@@ -139,7 +139,7 @@ dependencies {
139
139
  //INICIO_ZY_ZYTRUST
140
140
  implementation 'androidx.appcompat:appcompat:1.4.0'
141
141
  implementation 'com.google.android.material:material:1.5.0'
142
- implementation(group: 'com.zy.multiempresa.android.lib.protecta', name: 'sdk', version: '1.0.18', ext: 'aar'){
142
+ implementation(group: 'com.zy.multiempresa.android.lib.protecta', name: 'sdk', version: '1.0.20', ext: 'aar'){
143
143
  transitive = true
144
144
  }
145
145
 
@@ -110,13 +110,11 @@ class ZyprotectabioModuleModule(reactContext: ReactApplicationContext) : ReactCo
110
110
  zyRequest.bmoNuOperacionEmps = "PROTECTA-ANDROID"
111
111
 
112
112
  zyRequest.token = zyRequestApi?.token ?: ""
113
- zyRequest.bioPais = zyRequestApi?.bioPais ?: "PE"
114
- zyRequest.bioOperacion = zyRequestApi?.bioOperacion ?: "FLUJO_FACIAL_MANUAL"
113
+ zyRequest.bioPais = zyRequestApi?.bioPais?.takeIf { it.isNotBlank() } ?: "PE"
114
+ zyRequest.bioOperacion = zyRequestApi?.bioOperacion?.takeIf { it.isNotBlank() } ?: "FLUJO_FACIAL_MANUAL"
115
115
  zyRequest.isDialogActivated = true
116
- zyRequest.url = zyRequestApi?.url ?: "DEV2"
116
+ zyRequest.url = zyRequestApi?.url?.takeIf { it.isNotBlank() } ?: "DEV2"
117
117
  zyRequest.flujoExterno = zyRequest.flujoExterno?.takeIf { it.isNotBlank() } ?: "ONBOARDING"
118
- zyRequest.stepper = zyRequestApi?.stepper
119
- zyRequest.errores = zyRequestApi?.errores
120
118
 
121
119
  iZyApiCapturaFacial.zyCapturaFacial(zyRequest)
122
120
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-zyprotectabio-module",
3
- "version": "0.1.12",
3
+ "version": "0.1.15",
4
4
  "description": "React Native native module for ZyProtecta biometric integration",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",