react-native-zyprotectabio-module 0.1.7 → 0.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/README.md CHANGED
@@ -1,27 +1,195 @@
1
- # react-native-zybanbifbio-module
1
+ # react_native_zy_protectabio_module
2
+
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
+ ### iOS: version para iOS fue compilada con XCODE 15.4, es decir que el preoyecto debe utilizar XCODE 15.3 o superior , ademas el tarjet minimo es ios 13.0
14
+ ### Android: version minima de android es 24, version compilada con compileSDK 34, se recomienda usar compileSDK 34 o superior
15
+ ### MOVIL: Libreria solo será valida apartir de la version 0.10.9 .
2
16
 
3
- react-native-zybanbifbio-module
4
17
 
5
18
  ## Installation
6
19
 
7
20
  ```sh
8
- npm install react-native-zybanbifbio-module
21
+ npm install react-native-zyprotectabio-module@0.1.8 --legacy-peer-deps
9
22
  ```
10
23
 
11
24
  ## Usage
12
25
 
26
+ ### MÉTODO
13
27
  ```js
14
- import ZybanbifbioModule from "react-native-zybanbifbio-module";
28
+ const { ZybanbifbioModule } = NativeModules;
15
29
 
16
30
  // ...
17
31
 
18
- const result = await ZybanbifbioModule.multiply(3, 7);
32
+ const opciones = {
33
+ tiDocumento: "1", // tipo Documento : DNI: 1 nuDocumento: documentNumber, // Numero de documento
34
+ nuDocumento: "00112233", // Número de documento
35
+ accessToken: "abcdfghi12345", // Access token generado por ambiente
36
+ bioPais: "PE", //Pais de verificacion (siempre PE)
37
+ tiOperacion: "FULL", //Operacion puede ser FULL o FACIAL
38
+ urlSource: "DEV2", // Ambiente a la conexion DEV2 , POC , DEVX , SIGN (PRODUCCION),
39
+ flujoExterno: "RECOVERY_PASSWORD"
40
+ stepper: {
41
+ nuPasos: 3, // cuando nuPasos es 0 desaparece || si número de pasos es 0 los steppers se ocultan
42
+ pasoActual: 2 // paso en el cual el circulo señalará
43
+ },
44
+ errores: {
45
+ reintentar: {
46
+ titulo: "Reintentar",
47
+ descripcion: "Ha ocurrido un error. Puedes intentar nuevamente presionando el botón a continuación.",
48
+ textoBoton: "Reintentar"
49
+ },
50
+ limite_tiempo_alcanzado: {
51
+ titulo: "Límite de tiempo alcanzado",
52
+ descripcion: "El tiempo máximo para realizar esta operación ha expirado. Por favor, intenta nuevamente.",
53
+ textoBoton: "Entendido"
54
+ },
55
+ limite_intentos_alcanzado: {
56
+ titulo: "Límite de intentos alcanzado",
57
+ descripcion: "Has alcanzado el número máximo de intentos permitidos. Por favor, inténtalo más tarde.",
58
+ textoBoton: "Entendido"
59
+ }
60
+ }
61
+ };
62
+ const result = await ZyprotectabioModule.validacionFacialOcr(opciones);
63
+
64
+ //..
65
+
66
+ //para mas información revisar el documento de especificación.
67
+ ```
68
+ ## ANDROID FIRMA
69
+ - 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
70
+
71
+ - EJEMPLO:
72
+ A nivel del build.gradle(App)
19
73
  ```
74
+ android {
75
+ ...
76
+
77
+ signingConfigs {
78
+ debug {
79
+ keyAlias 'miFirma'
80
+ keyPassword 'miFirma'
81
+ storeFile file('../miFirma.jks')
82
+ storePassword 'miFirma'
83
+ }
84
+ release {
85
+ keyAlias 'miFirma'
86
+ keyPassword 'miFirma'
87
+ storeFile file('../miFirma.jks')
88
+ storePassword 'miFirma'
89
+ }
90
+ }
91
+ defaultConfig {
92
+ ...
93
+ }
94
+ ...
95
+ }
96
+
97
+ ```
98
+ ## ANDROID REGLAS OFUSCAMIENTO
99
+ ```
100
+
101
+ ####################### INICIO Zy Lib #################################
102
+ -dontwarn org.bouncycastle.jce.provider.BouncyCastleProvider
103
+ -dontwarn com.google.gson.**
104
+ -dontwarn com.facebook.jni.**
105
+ -dontwarn com.facebook.react.**
106
+
107
+ # Mantener Zytrust
108
+ -keep class com.zy.multicompany.android.lib.sdk.validacionfacial.** { *; }
109
+ -keep interface com.zy.multicompany.android.lib.sdk.validacionfacial.** { *; }
110
+
111
+ # Mantener auth0
112
+ -keep class com.auth0.** { *; }
113
+
114
+ # Mantener FACE IDENTY
115
+ -keep class com.identy.face.** { *; }
116
+ -keep enum * {*;}
117
+
118
+ # Mantener Regula OCR
119
+ -keep class com.regula.documentreader.** { *; }
120
+ -keep class com.regula.common.** { *; }
121
+ -keep class androidx.appcompat.widget.FitWindowsLinearLayout { *; }
122
+
123
+
124
+ # Mantener todo React Native
125
+ -keep class com.facebook.react.** { *; }
126
+ -keep class com.zymulticompanybiomodule.** { *; }
127
+ -keep class com.testmulticompany_new.** { *; } # es del app test no es necesario incluirlo
128
+
129
+ # Mantener todos los managers y eventos nativos
130
+ -keep class com.facebook.react.uimanager.** { *; }
131
+ -keep class com.facebook.react.bridge.** { *; }
132
+
133
+ # Mantener componentes que usan reflexión (ViewManagers, NativeModules)
134
+ -keepclassmembers class * {
135
+ @com.facebook.react.uimanager.annotations.ReactProp <methods>;
136
+ }
20
137
 
138
+ # Mantener clases usadas por JavaScriptCore
139
+ -keep class com.facebook.jni.** { *; }
140
+
141
+ # Mantener atributos de anotaciones (ReactProp, ReactModule, etc.)
142
+ -keepattributes *Annotation*
143
+
144
+
145
+ # Mantener Retrofit interfaces y métodos
146
+ -keep interface retrofit2.** { *; }
147
+ -keep class retrofit2.** { *; }
148
+ -dontwarn retrofit2.**
149
+
150
+ # Mantener métodos anotados de Retrofit
151
+ -keepclassmembers class * {
152
+ @retrofit2.http.* <methods>;
153
+ }
154
+
155
+ # Mantener OkHttp
156
+ -keep class okhttp3.** { *; }
157
+ -dontwarn okhttp3.**
158
+
159
+ # Mantener Okio (usado por OkHttp)
160
+ -keep class okio.** { *; }
161
+ -dontwarn okio.**
162
+
163
+ # Mantener adaptadores de conversión (si usas Gson, Moshi, etc.)
164
+ -keep class com.google.gson.** { *; }
165
+
166
+
167
+ ####################### FIN Zy Lib #################################
168
+
169
+ ```
21
170
  ## Contributing
22
171
 
23
- See the [contributing guide](CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow.
172
+ - Elaborado por Zytrust S.A.
173
+
174
+ - Compañia ZyTrust S.A. Perú
175
+
24
176
 
25
177
  ## License
26
178
 
27
- MIT
179
+ ZyTrust S.A. Perú
180
+
181
+
182
+ ## Contact
183
+
184
+ - Webpage: https://www.zytrust.com/
185
+
186
+ - Oficina: República de Panamá 3609, Oficinas 2201-2202, San Isidro. Lima, Perú.
187
+
188
+ - Teléfono: +51 1 321 4444 || (+51) 974 260 111
189
+
190
+ - Email: info@zytrust.com || support@zytrust.com || ztmobile@zytrust.com
191
+
192
+
193
+ ---
194
+
195
+ 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
30
  fun validacionFacialOcr(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
@@ -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,12 +1,13 @@
1
1
  {
2
2
  "name": "react-native-zyprotectabio-module",
3
- "version": "0.1.7",
4
- "description": "react-native-zyprotectabio-module",
3
+ "version": "0.1.11",
4
+ "description": "React Native native module for ZyProtecta biometric integration",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",
7
7
  "types": "lib/typescript/src/index.d.ts",
8
8
  "react-native": "src/index",
9
9
  "source": "src/index",
10
+
10
11
  "files": [
11
12
  "src",
12
13
  "lib",
@@ -14,42 +15,52 @@
14
15
  "ios",
15
16
  "cpp",
16
17
  "react-native-zyprotectabio-module.podspec",
17
- "!lib/typescript/example",
18
- "!android/build",
19
- "!ios/build",
20
18
  "!**/__tests__",
21
19
  "!**/__fixtures__",
22
- "!**/__mocks__"
20
+ "!**/__mocks__",
21
+ "!android/build",
22
+ "!ios/build"
23
23
  ],
24
+
24
25
  "scripts": {
25
26
  "build": "bob build",
26
- "prepare": "npx react-native-builder-bob build",
27
+ "prepare": "bob build",
27
28
  "test": "jest",
28
- "typescript": "tsc --noEmit",
29
29
  "lint": "eslint \"**/*.{js,ts,tsx}\"",
30
- "release": "release-it",
31
- "example": "yarn --cwd example",
32
- "pods": "cd example && pod-install --quiet",
33
- "bootstrap": "yarn example && yarn && yarn pods"
30
+ "typescript": "tsc --noEmit"
34
31
  },
32
+
35
33
  "keywords": [
36
34
  "react-native",
35
+ "react-native-library",
36
+ "android",
37
37
  "ios",
38
- "android"
38
+ "biometrics"
39
39
  ],
40
+
40
41
  "repository": {
41
42
  "type": "git",
42
43
  "url": "https://github.com/jorgeSaenzUgaz/react-native-zyprotectabio-module"
43
44
  },
45
+
44
46
  "author": "jorgeSaenzUgaz <jorgeSaenz695@gmail.com> (https://github.com/jorgeSaenzUgaz)",
45
47
  "license": "MIT",
48
+
46
49
  "bugs": {
47
50
  "url": "https://github.com/jorgeSaenzUgaz/react-native-zyprotectabio-module/issues"
48
51
  },
52
+
49
53
  "homepage": "https://github.com/jorgeSaenzUgaz/react-native-zyprotectabio-module#readme",
54
+
50
55
  "publishConfig": {
51
56
  "registry": "https://registry.npmjs.org/"
52
57
  },
58
+
59
+ "peerDependencies": {
60
+ "react": "*",
61
+ "react-native": "*"
62
+ },
63
+
53
64
  "devDependencies": {
54
65
  "@react-native-community/eslint-config": "^2.0.0",
55
66
  "@types/jest": "^26.0.0",
@@ -59,18 +70,13 @@
59
70
  "eslint-config-prettier": "^7.0.0",
60
71
  "eslint-plugin-prettier": "^3.1.3",
61
72
  "jest": "^26.0.1",
62
- "pod-install": "^0.1.0",
63
73
  "prettier": "^2.0.5",
64
74
  "react": "16.13.1",
65
75
  "react-native": "0.63.4",
66
76
  "react-native-builder-bob": "^0.17.1",
67
- "release-it": "^14.2.2",
68
77
  "typescript": "^4.1.3"
69
78
  },
70
- "peerDependencies": {
71
- "react": "*",
72
- "react-native": "*"
73
- },
79
+
74
80
  "jest": {
75
81
  "preset": "react-native",
76
82
  "modulePathIgnorePatterns": [
@@ -78,36 +84,26 @@
78
84
  "<rootDir>/lib/"
79
85
  ]
80
86
  },
87
+
81
88
  "eslintConfig": {
82
89
  "root": true,
83
90
  "extends": [
84
91
  "@react-native-community",
85
92
  "prettier"
86
- ],
87
- "rules": {
88
- "prettier/prettier": [
89
- "error",
90
- {
91
- "quoteProps": "consistent",
92
- "singleQuote": true,
93
- "tabWidth": 2,
94
- "trailingComma": "es5",
95
- "useTabs": false
96
- }
97
- ]
98
- }
93
+ ]
99
94
  },
95
+
100
96
  "eslintIgnore": [
101
97
  "node_modules/",
102
98
  "lib/"
103
99
  ],
100
+
104
101
  "prettier": {
105
- "quoteProps": "consistent",
106
102
  "singleQuote": true,
107
103
  "tabWidth": 2,
108
- "trailingComma": "es5",
109
- "useTabs": false
104
+ "trailingComma": "es5"
110
105
  },
106
+
111
107
  "react-native-builder-bob": {
112
108
  "source": "src",
113
109
  "output": "lib",
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;