react-native-zyprotectabio-module 0.1.8 → 0.1.12

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
@@ -1,27 +1,171 @@
1
- # react-native-zybanbifbio-module
1
+ # react_native_zy_protectabio_module
2
2
 
3
- react-native-zybanbifbio-module
3
+ Libreria la cual es encargada de verificación biométrica de personas peruanas.
4
+ Esta libreria esta diseñada especificamente para le empresa Protecta.
5
+
6
+ ## NOTAS:
7
+ ```
8
+ Ninguna
9
+ ```
10
+
11
+ ## Anotaciones
12
+
13
+ ### Android: version minima de android es 24, version compilada con compileSDK 34, se recomienda usar compileSDK 34 o superior
14
+ ### iOS: aun en desarrollo
4
15
 
5
16
  ## Installation
6
17
 
7
18
  ```sh
8
- npm install react-native-zybanbifbio-module
19
+ npm install react-native-zyprotectabio-module@0.1.12 --legacy-peer-deps
9
20
  ```
10
21
 
11
22
  ## Usage
12
23
 
24
+ ### MÉTODO
13
25
  ```js
14
- import ZybanbifbioModule from "react-native-zybanbifbio-module";
26
+ const { ZyprotectabioModule } = NativeModules;
15
27
 
16
28
  // ...
17
29
 
18
- const result = await ZybanbifbioModule.multiply(3, 7);
30
+ const opciones = {
31
+ tiDocumento: "1", // tipo Documento : DNI: 1 nuDocumento: documentNumber, // Numero de documento
32
+ nuDocumento: "00112233", // Número de documento
33
+ accessToken: "abcdfghi12345", // Access token generado por ambiente
34
+ bioPais: "PE", //Pais de verificacion (siempre PE)
35
+ tiOperacion: "FLUJO_FACIAL_MANUAL", //Operacion debe ser FLUJO_FACIAL_MANUAL
36
+ urlSource: "DEV2", // Ambiente a la conexion DEV2 , POC , DEVX , SIGN (PRODUCCION)
37
+ };
38
+ const result = await ZyprotectabioModule.onZyBioCapture(opciones);
39
+
40
+ //..
41
+
42
+ //para mas información revisar el documento de especificación.
43
+ ```
44
+ ## ANDROID FIRMA
45
+ - Para esta version, para su funcionamiento es necesario correr el app con la firma(SHA-1) compartida a ZyTrust, tanto en debug/release porque la licencia esta vinculada al applicationId y SHA-1 de la firma
46
+
47
+ - EJEMPLO:
48
+ A nivel del build.gradle(App)
49
+ ```
50
+ android {
51
+ ...
52
+
53
+ signingConfigs {
54
+ debug {
55
+ keyAlias 'miFirma'
56
+ keyPassword 'miFirma'
57
+ storeFile file('../miFirma.jks')
58
+ storePassword 'miFirma'
59
+ }
60
+ release {
61
+ keyAlias 'miFirma'
62
+ keyPassword 'miFirma'
63
+ storeFile file('../miFirma.jks')
64
+ storePassword 'miFirma'
65
+ }
66
+ }
67
+ defaultConfig {
68
+ ...
69
+ }
70
+ ...
71
+ }
72
+
73
+ ```
74
+ ## ANDROID REGLAS OFUSCAMIENTO
19
75
  ```
20
76
 
77
+ ####################### INICIO Zy Lib #################################
78
+ -dontwarn org.bouncycastle.jce.provider.BouncyCastleProvider
79
+ -dontwarn com.google.gson.**
80
+ -dontwarn com.facebook.jni.**
81
+ -dontwarn com.facebook.react.**
82
+
83
+ # Mantener Zytrust
84
+ -keep class com.zy.multicompany.android.lib.sdk.validacionfacial.** { *; }
85
+ -keep interface com.zy.multicompany.android.lib.sdk.validacionfacial.** { *; }
86
+
87
+ # Mantener auth0
88
+ -keep class com.auth0.** { *; }
89
+
90
+ # Mantener FACE IDENTY
91
+ -keep class com.identy.face.** { *; }
92
+ -keep enum * {*;}
93
+
94
+ # Mantener Regula OCR
95
+ -keep class com.regula.documentreader.** { *; }
96
+ -keep class com.regula.common.** { *; }
97
+ -keep class androidx.appcompat.widget.FitWindowsLinearLayout { *; }
98
+
99
+
100
+ # Mantener todo React Native
101
+ -keep class com.facebook.react.** { *; }
102
+ -keep class com.zymulticompanybiomodule.** { *; }
103
+ -keep class com.testmulticompany_new.** { *; } # es del app test no es necesario incluirlo
104
+
105
+ # Mantener todos los managers y eventos nativos
106
+ -keep class com.facebook.react.uimanager.** { *; }
107
+ -keep class com.facebook.react.bridge.** { *; }
108
+
109
+ # Mantener componentes que usan reflexión (ViewManagers, NativeModules)
110
+ -keepclassmembers class * {
111
+ @com.facebook.react.uimanager.annotations.ReactProp <methods>;
112
+ }
113
+
114
+ # Mantener clases usadas por JavaScriptCore
115
+ -keep class com.facebook.jni.** { *; }
116
+
117
+ # Mantener atributos de anotaciones (ReactProp, ReactModule, etc.)
118
+ -keepattributes *Annotation*
119
+
120
+
121
+ # Mantener Retrofit interfaces y métodos
122
+ -keep interface retrofit2.** { *; }
123
+ -keep class retrofit2.** { *; }
124
+ -dontwarn retrofit2.**
125
+
126
+ # Mantener métodos anotados de Retrofit
127
+ -keepclassmembers class * {
128
+ @retrofit2.http.* <methods>;
129
+ }
130
+
131
+ # Mantener OkHttp
132
+ -keep class okhttp3.** { *; }
133
+ -dontwarn okhttp3.**
134
+
135
+ # Mantener Okio (usado por OkHttp)
136
+ -keep class okio.** { *; }
137
+ -dontwarn okio.**
138
+
139
+ # Mantener adaptadores de conversión (si usas Gson, Moshi, etc.)
140
+ -keep class com.google.gson.** { *; }
141
+
142
+
143
+ ####################### FIN Zy Lib #################################
144
+
145
+ ```
21
146
  ## Contributing
22
147
 
23
- See the [contributing guide](CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow.
148
+ - Elaborado por Zytrust S.A.
149
+
150
+ - Compañia ZyTrust S.A. Perú
151
+
24
152
 
25
153
  ## License
26
154
 
27
- MIT
155
+ ZyTrust S.A. Perú
156
+
157
+
158
+ ## Contact
159
+
160
+ - Webpage: https://www.zytrust.com/
161
+
162
+ - Oficina: República de Panamá 3609, Oficinas 2201-2202, San Isidro. Lima, Perú.
163
+
164
+ - Teléfono: +51 1 321 4444 || (+51) 974 260 111
165
+
166
+ - Email: info@zytrust.com || support@zytrust.com || ztmobile@zytrust.com
167
+
168
+
169
+ ---
170
+
171
+ Made with [create-react-native-library](https://github.com/callstack/react-native-builder-bob)
@@ -1,6 +1,6 @@
1
1
  buildscript {
2
2
  // Buildscript is evaluated before everything else so we can't use getExtOrDefault
3
- def kotlin_version = rootProject.ext.has('kotlinVersion') ? rootProject.ext.get('kotlinVersion') : project.properties['ZybanbifbioModule_kotlinVersion']
3
+ def kotlin_version = rootProject.ext.has('kotlinVersion') ? rootProject.ext.get('kotlinVersion') : project.properties['ZyprotectabioModule_kotlinVersion']
4
4
 
5
5
  repositories {
6
6
  google()
@@ -19,11 +19,11 @@ apply plugin: 'com.android.library'
19
19
  apply plugin: 'kotlin-android'
20
20
 
21
21
  def getExtOrDefault(name) {
22
- return rootProject.ext.has(name) ? rootProject.ext.get(name) : project.properties['ZybanbifbioModule_' + name]
22
+ return rootProject.ext.has(name) ? rootProject.ext.get(name) : project.properties['ZyprotectabioModule_' + name]
23
23
  }
24
24
 
25
25
  def getExtOrIntegerDefault(name) {
26
- return rootProject.ext.has(name) ? rootProject.ext.get(name) : (project.properties['ZybanbifbioModule_' + name]).toInteger()
26
+ return rootProject.ext.has(name) ? rootProject.ext.get(name) : (project.properties['ZyprotectabioModule_' + name]).toInteger()
27
27
  }
28
28
 
29
29
  android {
@@ -1,4 +1,4 @@
1
- ZybanbifbioModule_kotlinVersion=1.3.50
2
- ZybanbifbioModule_compileSdkVersion=29
3
- ZybanbifbioModule_buildToolsVersion=29.0.2
4
- ZybanbifbioModule_targetSdkVersion=29
1
+ ZyprotectabioModule_kotlinVersion=1.3.50
2
+ ZyprotectabioModule_compileSdkVersion=29
3
+ ZyprotectabioModule_buildToolsVersion=29.0.2
4
+ ZyprotectabioModule_targetSdkVersion=29
@@ -1,4 +1,4 @@
1
1
  <manifest xmlns:android="http://schemas.android.com/apk/res/android"
2
- package="com.reactnativezybanbifbiomodule">
2
+ package="com.reactnativezyprotectabiomodule">
3
3
 
4
4
  </manifest>
@@ -1,4 +1,4 @@
1
- package com.reactnativezybanbifbiomodule
1
+ package com.reactnativezyprotectabiomodule
2
2
 
3
3
  import com.facebook.react.bridge.ReactApplicationContext
4
4
  import com.facebook.react.bridge.ReactContextBaseJavaModule
@@ -20,34 +20,18 @@ import com.zy.multicompany.android.lib.sdk.validacionfacial.api.bean.visual.Step
20
20
  import com.zy.multicompany.android.lib.sdk.validacionfacial.api.bean.visual.VisualScreenError
21
21
 
22
22
 
23
- class ZybanbifbioModuleModule(reactContext: ReactApplicationContext) : ReactContextBaseJavaModule(reactContext) {
23
+ class ZyprotectabioModuleModule(reactContext: ReactApplicationContext) : ReactContextBaseJavaModule(reactContext) {
24
24
 
25
25
  override fun getName(): String {
26
- return "ZybanbifbioModule"
26
+ return "ZyprotectabioModule"
27
27
  }
28
28
 
29
- // Example method
30
- // See https://reactnative.dev/docs/native-modules-android
31
- /*@ReactMethod
32
- fun multiply(a: Int, b: Int, promise: Promise) {
33
-
34
- promise.resolve(a * b)
35
-
36
- }*/
37
-
38
- /*@ReactMethod
39
- fun validacionFacialOcr(a: Int, b: Int, promise: Promise) {
40
-
41
- promise.resolve(a * b)
42
-
43
- }*/
44
-
45
29
  @ReactMethod
46
- fun validacionFacialOcr(opcional: ReadableMap,
30
+ fun onZyBioCapture(opcional: ReadableMap,
47
31
  promise: Promise) {
48
32
  val gson = Gson()
49
33
  val opcionalJson = gson.toJson(opcional.toHashMap())
50
- val opcionalData = gson.fromJson(opcionalJson, com.reactnativezybanbifbiomodule.bean.Opcional::class.java)
34
+ val opcionalData = gson.fromJson(opcionalJson, com.reactnativezyprotectabiomodule.bean.Opcional::class.java)
51
35
  val zyRequestApi: ZyRequest = ZyRequest()
52
36
 
53
37
  zyRequestApi.bioTiDoc = opcionalData.tiDocumento
@@ -57,38 +41,8 @@ class ZybanbifbioModuleModule(reactContext: ReactApplicationContext) : ReactCont
57
41
  zyRequestApi.bioOperacion = opcionalData.tiOperacion
58
42
  zyRequestApi.url = opcionalData.urlSource
59
43
  zyRequestApi.flujoExterno = opcionalData.flujoExterno
60
-
61
- zyRequestApi.stepper = Stepper(opcionalData.stepper.nuPasos,opcionalData.stepper.pasoActual)
62
-
63
- val vsList: MutableList<VisualScreenError> = ArrayList()
64
- vsList.add(
65
- VisualScreenError(
66
- opcionalData.errores.reintentar.titulo,
67
- opcionalData.errores.reintentar.descripcion,
68
- opcionalData.errores.reintentar.textoBoton,
69
- ScreenEnum.REINTENTAR
70
- )
71
- )
72
- vsList.add(
73
- VisualScreenError(
74
- opcionalData.errores.limite_tiempo_alcanzado.titulo,
75
- opcionalData.errores.limite_tiempo_alcanzado.descripcion,
76
- opcionalData.errores.limite_tiempo_alcanzado.textoBoton,
77
- ScreenEnum.LIMITE_TIEMPO_ALZANZADO
78
- )
79
- )
80
- vsList.add(
81
- VisualScreenError(
82
- opcionalData.errores.limite_intentos_alcanzado.titulo,
83
- opcionalData.errores.limite_intentos_alcanzado.descripcion,
84
- opcionalData.errores.limite_intentos_alcanzado.textoBoton,
85
- ScreenEnum.LIMITE_INTENTOS_ALCANZADO
86
- )
87
- )
88
-
89
- zyRequestApi.errores = vsList
90
-
91
- Log.i(TAG, "calling validacionFacialOcr")
44
+
45
+ Log.i(TAG, "calling onZyBioCapture")
92
46
  Log.i(TAG, "nuDocumento:" + zyRequestApi.bioTiDoc)
93
47
  Log.i(TAG, "tiDocumento:" + zyRequestApi.bioNuDoc)
94
48
  verifyProtecta(zyRequestApi, promise)
@@ -153,22 +107,18 @@ class ZybanbifbioModuleModule(reactContext: ReactApplicationContext) : ReactCont
153
107
  val zyRequest = ZyRequest()
154
108
  zyRequest.bioTiDoc = zyRequestApi?.bioTiDoc?.takeIf { it.isNotBlank() } ?: ""
155
109
  zyRequest.bioNuDoc = zyRequestApi?.bioNuDoc ?: ""
156
- zyRequest.bmoNuOperacionEmps = "BANBIF-ANDROID"
110
+ zyRequest.bmoNuOperacionEmps = "PROTECTA-ANDROID"
157
111
 
158
112
  zyRequest.token = zyRequestApi?.token ?: ""
159
113
  zyRequest.bioPais = zyRequestApi?.bioPais ?: "PE"
160
114
  zyRequest.bioOperacion = zyRequestApi?.bioOperacion ?: "FLUJO_FACIAL_MANUAL"
161
115
  zyRequest.isDialogActivated = true
162
116
  zyRequest.url = zyRequestApi?.url ?: "DEV2"
163
- zyRequest.flujoExterno = zyRequest.flujoExterno ?: ""
117
+ zyRequest.flujoExterno = zyRequest.flujoExterno?.takeIf { it.isNotBlank() } ?: "ONBOARDING"
164
118
  zyRequest.stepper = zyRequestApi?.stepper
165
119
  zyRequest.errores = zyRequestApi?.errores
166
120
 
167
- Log.v("JSAENZ-bioOperacion", zyRequest.bioOperacion.toString())
168
- Log.v("JSAENZ", Gson().toJson(zyRequest))
169
-
170
121
  iZyApiCapturaFacial.zyCapturaFacial(zyRequest)
171
-
172
122
  }
173
123
 
174
124
  companion object {
@@ -1,4 +1,4 @@
1
- package com.reactnativezybanbifbiomodule
1
+ package com.reactnativezyprotectabiomodule
2
2
 
3
3
  import com.facebook.react.ReactPackage
4
4
  import com.facebook.react.bridge.NativeModule
@@ -6,9 +6,9 @@ import com.facebook.react.bridge.ReactApplicationContext
6
6
  import com.facebook.react.uimanager.ViewManager
7
7
 
8
8
 
9
- class ZybanbifbioModulePackage : ReactPackage {
9
+ class ZyprotectabioModulePackage : ReactPackage {
10
10
  override fun createNativeModules(reactContext: ReactApplicationContext): List<NativeModule> {
11
- return listOf(ZybanbifbioModuleModule(reactContext))
11
+ return listOf(ZyprotectabioModuleModule(reactContext))
12
12
  }
13
13
 
14
14
  override fun createViewManagers(reactContext: ReactApplicationContext): List<ViewManager<*, *>> {
@@ -1,4 +1,4 @@
1
- package com.reactnativezybanbifbiomodule.bean
1
+ package com.reactnativezyprotectabiomodule.bean
2
2
 
3
3
  import com.facebook.react.bridge.Arguments
4
4
  import com.facebook.react.bridge.WritableMap
@@ -1,4 +1,4 @@
1
- package com.reactnativezybanbifbiomodule.bean
1
+ package com.reactnativezyprotectabiomodule.bean
2
2
 
3
3
  import androidx.annotation.Keep
4
4
 
@@ -1,4 +1,4 @@
1
- package com.reactnativezybanbifbiomodule.bean
1
+ package com.reactnativezyprotectabiomodule.bean
2
2
 
3
3
  import com.facebook.react.bridge.Arguments
4
4
  import com.facebook.react.bridge.WritableMap
@@ -1,4 +1,4 @@
1
- package com.reactnativezybanbifbiomodule.bean
1
+ package com.reactnativezyprotectabiomodule.bean
2
2
 
3
3
  import androidx.annotation.Keep
4
4
  import com.facebook.react.bridge.Arguments
@@ -1,6 +1,6 @@
1
1
  #import <React/RCTBridgeModule.h>
2
2
 
3
- @interface RCT_EXTERN_MODULE(ZybanbifbioModule, NSObject)
3
+ @interface RCT_EXTERN_MODULE(ZyprotectabioModule, NSObject)
4
4
 
5
5
  RCT_EXTERN_METHOD(multiply:(float)a withB:(float)b
6
6
  withResolver:(RCTPromiseResolveBlock)resolve
@@ -1,5 +1,5 @@
1
- @objc(ZybanbifbioModule)
2
- class ZybanbifbioModule: NSObject {
1
+ @objc(ZyprotectabioModule)
2
+ class ZyprotectabioModule: NSObject {
3
3
 
4
4
  @objc(multiply:withB:withResolver:withRejecter:)
5
5
  func multiply(a: Float, b: Float, resolve:RCTPromiseResolveBlock,reject:RCTPromiseRejectBlock) -> Void {
@@ -8,8 +8,8 @@
8
8
 
9
9
  /* Begin PBXBuildFile section */
10
10
 
11
- 5E555C0D2413F4C50049A1A2 /* ZybanbifbioModule.m in Sources */ = {isa = PBXBuildFile; fileRef = B3E7B5891CC2AC0600A0062D /* ZybanbifbioModule.m */; };
12
- F4FF95D7245B92E800C19C63 /* ZybanbifbioModule.swift in Sources */ = {isa = PBXBuildFile; fileRef = F4FF95D6245B92E800C19C63 /* ZybanbifbioModule.swift */; };
11
+ 5E555C0D2413F4C50049A1A2 /* ZyprotectabioModule.m in Sources */ = {isa = PBXBuildFile; fileRef = B3E7B5891CC2AC0600A0062D /* ZyprotectabioModule.m */; };
12
+ F4FF95D7245B92E800C19C63 /* ZyprotectabioModule.swift in Sources */ = {isa = PBXBuildFile; fileRef = F4FF95D6245B92E800C19C63 /* ZyprotectabioModule.swift */; };
13
13
 
14
14
  /* End PBXBuildFile section */
15
15
 
@@ -26,11 +26,11 @@
26
26
  /* End PBXCopyFilesBuildPhase section */
27
27
 
28
28
  /* Begin PBXFileReference section */
29
- 134814201AA4EA6300B7C361 /* libZybanbifbioModule.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libZybanbifbioModule.a; sourceTree = BUILT_PRODUCTS_DIR; };
29
+ 134814201AA4EA6300B7C361 /* libZyprotectabioModule.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libZyprotectabioModule.a; sourceTree = BUILT_PRODUCTS_DIR; };
30
30
 
31
- B3E7B5891CC2AC0600A0062D /* ZybanbifbioModule.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ZybanbifbioModule.m; sourceTree = "<group>"; };
32
- F4FF95D5245B92E700C19C63 /* ZybanbifbioModule-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "ZybanbifbioModule-Bridging-Header.h"; sourceTree = "<group>"; };
33
- F4FF95D6245B92E800C19C63 /* ZybanbifbioModule.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ZybanbifbioModule.swift; sourceTree = "<group>"; };
31
+ B3E7B5891CC2AC0600A0062D /* ZyprotectabioModule.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ZyprotectabioModule.m; sourceTree = "<group>"; };
32
+ F4FF95D5245B92E700C19C63 /* ZyprotectabioModule-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "ZyprotectabioModule-Bridging-Header.h"; sourceTree = "<group>"; };
33
+ F4FF95D6245B92E800C19C63 /* ZyprotectabioModule.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ZyprotectabioModule.swift; sourceTree = "<group>"; };
34
34
 
35
35
  /* End PBXFileReference section */
36
36
 
@@ -48,7 +48,7 @@
48
48
  134814211AA4EA7D00B7C361 /* Products */ = {
49
49
  isa = PBXGroup;
50
50
  children = (
51
- 134814201AA4EA6300B7C361 /* libZybanbifbioModule.a */,
51
+ 134814201AA4EA6300B7C361 /* libZyprotectabioModule.a */,
52
52
  );
53
53
  name = Products;
54
54
  sourceTree = "<group>";
@@ -57,9 +57,9 @@
57
57
  isa = PBXGroup;
58
58
  children = (
59
59
 
60
- F4FF95D6245B92E800C19C63 /* ZybanbifbioModule.swift */,
61
- B3E7B5891CC2AC0600A0062D /* ZybanbifbioModule.m */,
62
- F4FF95D5245B92E700C19C63 /* ZybanbifbioModule-Bridging-Header.h */,
60
+ F4FF95D6245B92E800C19C63 /* ZyprotectabioModule.swift */,
61
+ B3E7B5891CC2AC0600A0062D /* ZyprotectabioModule.m */,
62
+ F4FF95D5245B92E700C19C63 /* ZyprotectabioModule-Bridging-Header.h */,
63
63
 
64
64
  134814211AA4EA7D00B7C361 /* Products */,
65
65
  );
@@ -68,9 +68,9 @@
68
68
  /* End PBXGroup section */
69
69
 
70
70
  /* Begin PBXNativeTarget section */
71
- 58B511DA1A9E6C8500147676 /* ZybanbifbioModule */ = {
71
+ 58B511DA1A9E6C8500147676 /* ZyprotectabioModule */ = {
72
72
  isa = PBXNativeTarget;
73
- buildConfigurationList = 58B511EF1A9E6C8500147676 /* Build configuration list for PBXNativeTarget "ZybanbifbioModule" */;
73
+ buildConfigurationList = 58B511EF1A9E6C8500147676 /* Build configuration list for PBXNativeTarget "ZyprotectabioModule" */;
74
74
  buildPhases = (
75
75
  58B511D71A9E6C8500147676 /* Sources */,
76
76
  58B511D81A9E6C8500147676 /* Frameworks */,
@@ -80,9 +80,9 @@
80
80
  );
81
81
  dependencies = (
82
82
  );
83
- name = ZybanbifbioModule;
83
+ name = ZyprotectabioModule;
84
84
  productName = RCTDataManager;
85
- productReference = 134814201AA4EA6300B7C361 /* libZybanbifbioModule.a */;
85
+ productReference = 134814201AA4EA6300B7C361 /* libZyprotectabioModule.a */;
86
86
  productType = "com.apple.product-type.library.static";
87
87
  };
88
88
  /* End PBXNativeTarget section */
@@ -99,7 +99,7 @@
99
99
  };
100
100
  };
101
101
  };
102
- buildConfigurationList = 58B511D61A9E6C8500147676 /* Build configuration list for PBXProject "ZybanbifbioModule" */;
102
+ buildConfigurationList = 58B511D61A9E6C8500147676 /* Build configuration list for PBXProject "ZyprotectabioModule" */;
103
103
  compatibilityVersion = "Xcode 3.2";
104
104
  developmentRegion = English;
105
105
  hasScannedForEncodings = 0;
@@ -112,7 +112,7 @@
112
112
  projectDirPath = "";
113
113
  projectRoot = "";
114
114
  targets = (
115
- 58B511DA1A9E6C8500147676 /* ZybanbifbioModule */,
115
+ 58B511DA1A9E6C8500147676 /* ZyprotectabioModule */,
116
116
  );
117
117
  };
118
118
  /* End PBXProject section */
@@ -123,8 +123,8 @@
123
123
  buildActionMask = 2147483647;
124
124
  files = (
125
125
 
126
- F4FF95D7245B92E800C19C63 /* ZybanbifbioModule.swift in Sources */,
127
- B3E7B58A1CC2AC0600A0062D /* ZybanbifbioModule.m in Sources */,
126
+ F4FF95D7245B92E800C19C63 /* ZyprotectabioModule.swift in Sources */,
127
+ B3E7B58A1CC2AC0600A0062D /* ZyprotectabioModule.m in Sources */,
128
128
 
129
129
  );
130
130
  runOnlyForDeploymentPostprocessing = 0;
@@ -236,10 +236,10 @@
236
236
  );
237
237
  LIBRARY_SEARCH_PATHS = "$(inherited)";
238
238
  OTHER_LDFLAGS = "-ObjC";
239
- PRODUCT_NAME = ZybanbifbioModule;
239
+ PRODUCT_NAME = ZyprotectabioModule;
240
240
  SKIP_INSTALL = YES;
241
241
 
242
- SWIFT_OBJC_BRIDGING_HEADER = "ZybanbifbioModule-Bridging-Header.h";
242
+ SWIFT_OBJC_BRIDGING_HEADER = "ZyprotectabioModule-Bridging-Header.h";
243
243
  SWIFT_OPTIMIZATION_LEVEL = "-Onone";
244
244
  SWIFT_VERSION = 5.0;
245
245
 
@@ -257,10 +257,10 @@
257
257
  );
258
258
  LIBRARY_SEARCH_PATHS = "$(inherited)";
259
259
  OTHER_LDFLAGS = "-ObjC";
260
- PRODUCT_NAME = ZybanbifbioModule;
260
+ PRODUCT_NAME = ZyprotectabioModule;
261
261
  SKIP_INSTALL = YES;
262
262
 
263
- SWIFT_OBJC_BRIDGING_HEADER = "ZybanbifbioModule-Bridging-Header.h";
263
+ SWIFT_OBJC_BRIDGING_HEADER = "ZyprotectabioModule-Bridging-Header.h";
264
264
  SWIFT_VERSION = 5.0;
265
265
 
266
266
  };
@@ -269,7 +269,7 @@
269
269
  /* End XCBuildConfiguration section */
270
270
 
271
271
  /* Begin XCConfigurationList section */
272
- 58B511D61A9E6C8500147676 /* Build configuration list for PBXProject "ZybanbifbioModule" */ = {
272
+ 58B511D61A9E6C8500147676 /* Build configuration list for PBXProject "ZyprotectabioModule" */ = {
273
273
  isa = XCConfigurationList;
274
274
  buildConfigurations = (
275
275
  58B511ED1A9E6C8500147676 /* Debug */,
@@ -278,7 +278,7 @@
278
278
  defaultConfigurationIsVisible = 0;
279
279
  defaultConfigurationName = Release;
280
280
  };
281
- 58B511EF1A9E6C8500147676 /* Build configuration list for PBXNativeTarget "ZybanbifbioModule" */ = {
281
+ 58B511EF1A9E6C8500147676 /* Build configuration list for PBXNativeTarget "ZyprotectabioModule" */ = {
282
282
  isa = XCConfigurationList;
283
283
  buildConfigurations = (
284
284
  58B511F01A9E6C8500147676 /* Debug */,
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.default = void 0;
7
7
  var _reactNative = require("react-native");
8
8
  const {
9
- ZybanbifbioModule
9
+ ZyprotectabioModule
10
10
  } = _reactNative.NativeModules;
11
- var _default = exports.default = ZybanbifbioModule;
11
+ var _default = exports.default = ZyprotectabioModule;
12
12
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_reactNative","require","ZybanbifbioModule","NativeModules","_default","exports","default"],"sources":["index.tsx"],"sourcesContent":["import { NativeModules } from 'react-native';\n\ntype ZybanbifbioModuleType = {\n multiply(a: number, b: number): Promise<number>;\n};\n\nconst { ZybanbifbioModule } = NativeModules;\n\nexport default ZybanbifbioModule as ZybanbifbioModuleType;\n"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAMA,MAAM;EAAEC;AAAkB,CAAC,GAAGC,0BAAa;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAE7BJ,iBAAiB","ignoreList":[]}
1
+ {"version":3,"names":["_reactNative","require","ZyprotectabioModule","NativeModules","_default","exports","default"],"sources":["index.tsx"],"sourcesContent":["import { NativeModules } from 'react-native';\n\ntype ZyprotectabioModuleType = {\n multiply(a: number, b: number): Promise<number>;\n};\n\nconst { ZyprotectabioModule } = NativeModules;\n\nexport default ZyprotectabioModule as ZyprotectabioModuleType;\n"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAMA,MAAM;EAAEC;AAAoB,CAAC,GAAGC,0BAAa;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAE/BJ,mBAAmB","ignoreList":[]}
@@ -1,6 +1,6 @@
1
1
  import { NativeModules } from 'react-native';
2
2
  const {
3
- ZybanbifbioModule
3
+ ZyprotectabioModule
4
4
  } = NativeModules;
5
- export default ZybanbifbioModule;
5
+ export default ZyprotectabioModule;
6
6
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["NativeModules","ZybanbifbioModule"],"sources":["index.tsx"],"sourcesContent":["import { NativeModules } from 'react-native';\n\ntype ZybanbifbioModuleType = {\n multiply(a: number, b: number): Promise<number>;\n};\n\nconst { ZybanbifbioModule } = NativeModules;\n\nexport default ZybanbifbioModule as ZybanbifbioModuleType;\n"],"mappings":"AAAA,SAASA,aAAa,QAAQ,cAAc;AAM5C,MAAM;EAAEC;AAAkB,CAAC,GAAGD,aAAa;AAE3C,eAAeC,iBAAiB","ignoreList":[]}
1
+ {"version":3,"names":["NativeModules","ZyprotectabioModule"],"sources":["index.tsx"],"sourcesContent":["import { NativeModules } from 'react-native';\n\ntype ZyprotectabioModuleType = {\n multiply(a: number, b: number): Promise<number>;\n};\n\nconst { ZyprotectabioModule } = NativeModules;\n\nexport default ZyprotectabioModule as ZyprotectabioModuleType;\n"],"mappings":"AAAA,SAASA,aAAa,QAAQ,cAAc;AAM5C,MAAM;EAAEC;AAAoB,CAAC,GAAGD,aAAa;AAE7C,eAAeC,mBAAmB","ignoreList":[]}
@@ -1,5 +1,5 @@
1
- type ZybanbifbioModuleType = {
1
+ type ZyprotectabioModuleType = {
2
2
  multiply(a: number, b: number): Promise<number>;
3
3
  };
4
- declare const _default: ZybanbifbioModuleType;
4
+ declare const _default: ZyprotectabioModuleType;
5
5
  export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-zyprotectabio-module",
3
- "version": "0.1.8",
3
+ "version": "0.1.12",
4
4
  "description": "React Native native module for ZyProtecta biometric integration",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",
package/src/index.tsx CHANGED
@@ -1,9 +1,9 @@
1
1
  import { NativeModules } from 'react-native';
2
2
 
3
- type ZybanbifbioModuleType = {
3
+ type ZyprotectabioModuleType = {
4
4
  multiply(a: number, b: number): Promise<number>;
5
5
  };
6
6
 
7
- const { ZybanbifbioModule } = NativeModules;
7
+ const { ZyprotectabioModule } = NativeModules;
8
8
 
9
- export default ZybanbifbioModule as ZybanbifbioModuleType;
9
+ export default ZyprotectabioModule as ZyprotectabioModuleType;