react-native-zyprotectabio-module 1.1.9 → 1.1.11
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/android/build.gradle
CHANGED
|
@@ -139,11 +139,11 @@ 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.1.
|
|
142
|
+
implementation(group: 'com.zy.multiempresa.android.lib.protecta', name: 'sdk', version: '1.1.13', ext: 'aar'){
|
|
143
143
|
transitive = true
|
|
144
144
|
}
|
|
145
145
|
|
|
146
|
-
implementation(group: 'com.zy.identy.face.protecta', name: 'sdk', version: '6.7.
|
|
146
|
+
implementation(group: 'com.zy.identy.face.protecta', name: 'sdk', version: '6.7.4', ext: 'aar'){
|
|
147
147
|
transitive = true
|
|
148
148
|
}
|
|
149
149
|
debugImplementation(group: 'com.identy.face', name: 'face', version: '6.3.3-develop', ext: 'aar')
|
package/android/src/main/java/com/reactnativezyprotectabiomodule/ZyprotectabioModuleModule.kt
CHANGED
|
@@ -65,10 +65,8 @@ class ZyprotectabioModuleModule(reactContext: ReactApplicationContext) : ReactCo
|
|
|
65
65
|
Log.i(TAG, "onSuccess")
|
|
66
66
|
Log.i(TAG, "=====>>> zyResponse: $zyResponse")
|
|
67
67
|
val result: WritableMap = WritableNativeMap().apply {
|
|
68
|
-
putString("
|
|
68
|
+
putString("coError", if (zyResponse.coError.isNotEmpty()) zyResponse.coError else "")
|
|
69
69
|
putString("deError", if (zyResponse.deError.isNotEmpty()) zyResponse.deError else "")
|
|
70
|
-
putString("codBioError", if (zyResponse.codBioError.isNotEmpty()) zyResponse.codBioError else "")
|
|
71
|
-
putString("deBioError", if (zyResponse.deBioError.isNotEmpty()) zyResponse.deBioError else "")
|
|
72
70
|
putString("coErrorButton", if (zyResponse.coErrorButton.isNotEmpty()) zyResponse.coErrorButton else "")
|
|
73
71
|
putString("deErrorButton", if (zyResponse.deErrorButton.isNotEmpty()) zyResponse.deErrorButton else "")
|
|
74
72
|
putString("idSolicitud", if (zyResponse.bmoNuSolicitud.isNotEmpty()) zyResponse.bmoNuSolicitud else "")
|
|
@@ -84,10 +82,8 @@ class ZyprotectabioModuleModule(reactContext: ReactApplicationContext) : ReactCo
|
|
|
84
82
|
Log.i(TAG, "=====>>> zyError: $zyError")
|
|
85
83
|
|
|
86
84
|
val result: WritableMap = WritableNativeMap().apply {
|
|
87
|
-
putString("
|
|
85
|
+
putString("coError", if (zyError.coError.isNotEmpty()) zyError.coError else "")
|
|
88
86
|
putString("deError", if (zyError.deError.isNotEmpty()) zyError.deError else "")
|
|
89
|
-
putString("codBioError", if (zyError.codBioError.isNotEmpty()) zyError.codBioError else "")
|
|
90
|
-
putString("deBioError", if (zyError.deBioError.isNotEmpty()) zyError.deBioError else "")
|
|
91
87
|
putString("coErrorButton", zyError.coErrorButton?.takeIf { it.isNotEmpty() } ?: "")
|
|
92
88
|
putString("deErrorButton", zyError.deErrorButton?.takeIf { it.isNotEmpty() } ?: "")
|
|
93
89
|
putString("idSolicitud", if (zyError.bmoNuSolicitud.isNotEmpty()) zyError.bmoNuSolicitud else "")
|
|
@@ -102,7 +98,7 @@ class ZyprotectabioModuleModule(reactContext: ReactApplicationContext) : ReactCo
|
|
|
102
98
|
|
|
103
99
|
override fun onRetries(zyError: ZyResponse) {
|
|
104
100
|
Log.i(TAG, "onRetries")
|
|
105
|
-
Log.i(TAG,"
|
|
101
|
+
Log.i(TAG,"coError: " + zyError.coError + " , " + "deError: " + zyError.deError + " , " + "bmoNuSolicitud " + zyError.bmoNuSolicitud
|
|
106
102
|
)
|
|
107
103
|
}
|
|
108
104
|
})
|
package/package.json
CHANGED