react-native-zyprotectabio-module 1.1.7 → 1.1.9
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.11', 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.5', 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,8 +65,10 @@ 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("codError", if (zyResponse.codError.isNotEmpty()) zyResponse.codError 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 "")
|
|
70
72
|
putString("coErrorButton", if (zyResponse.coErrorButton.isNotEmpty()) zyResponse.coErrorButton else "")
|
|
71
73
|
putString("deErrorButton", if (zyResponse.deErrorButton.isNotEmpty()) zyResponse.deErrorButton else "")
|
|
72
74
|
putString("idSolicitud", if (zyResponse.bmoNuSolicitud.isNotEmpty()) zyResponse.bmoNuSolicitud else "")
|
|
@@ -82,8 +84,10 @@ class ZyprotectabioModuleModule(reactContext: ReactApplicationContext) : ReactCo
|
|
|
82
84
|
Log.i(TAG, "=====>>> zyError: $zyError")
|
|
83
85
|
|
|
84
86
|
val result: WritableMap = WritableNativeMap().apply {
|
|
85
|
-
putString("
|
|
87
|
+
putString("codError", if (zyError.codError.isNotEmpty()) zyError.codError else "")
|
|
86
88
|
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 "")
|
|
87
91
|
putString("coErrorButton", zyError.coErrorButton?.takeIf { it.isNotEmpty() } ?: "")
|
|
88
92
|
putString("deErrorButton", zyError.deErrorButton?.takeIf { it.isNotEmpty() } ?: "")
|
|
89
93
|
putString("idSolicitud", if (zyError.bmoNuSolicitud.isNotEmpty()) zyError.bmoNuSolicitud else "")
|
|
@@ -98,7 +102,7 @@ class ZyprotectabioModuleModule(reactContext: ReactApplicationContext) : ReactCo
|
|
|
98
102
|
|
|
99
103
|
override fun onRetries(zyError: ZyResponse) {
|
|
100
104
|
Log.i(TAG, "onRetries")
|
|
101
|
-
Log.i(TAG,"
|
|
105
|
+
Log.i(TAG,"codError: " + zyError.codError + " , " + "deError: " + zyError.deError + " , " + "codBioError: " + zyError.codBioError + " , " + "deBioError: " + zyError.deBioError + " , " + "bmoNuSolicitud " + zyError.bmoNuSolicitud
|
|
102
106
|
)
|
|
103
107
|
}
|
|
104
108
|
})
|
|
@@ -32,8 +32,10 @@ RCT_EXPORT_METHOD(onZyBioCapture:(NSDictionary *)opcional
|
|
|
32
32
|
completion:^(ReactResponse *response) {
|
|
33
33
|
|
|
34
34
|
resolve(@{
|
|
35
|
-
@"
|
|
35
|
+
@"codError": response.codError ?: @"",
|
|
36
36
|
@"deError": response.deError ?: @"",
|
|
37
|
+
@"codBioError": response.codBioError ?: @"",
|
|
38
|
+
@"deBioError": response.deBioError ?: @"",
|
|
37
39
|
@"coErrorButton": response.coErrorButton ?: @"",
|
|
38
40
|
@"deErrorButton": response.deErrorButton ?: @"",
|
|
39
41
|
@"idSolicitud": response.bmoNuSolicitud ?: @""
|
package/package.json
CHANGED
|
@@ -14,6 +14,6 @@ Pod::Spec.new do |s|
|
|
|
14
14
|
s.source = { :git => "https://github.com/ZY-PROTECTA/react-native-zyprotectabio-module.git", :tag => "#{s.version}" }
|
|
15
15
|
s.source_files = "ios/**/*.{h,m,mm,swift}"
|
|
16
16
|
|
|
17
|
-
s.dependency 'zy_multicompany_bio_lib_ios_protecta', '1.0.
|
|
17
|
+
s.dependency 'zy_multicompany_bio_lib_ios_protecta', '1.0.4'
|
|
18
18
|
s.dependency "React-Core"
|
|
19
19
|
end
|