react-native-zyprotectabio-module 1.1.4 → 1.1.7

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.
@@ -139,15 +139,15 @@ 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.3', ext: 'aar'){
142
+ implementation(group: 'com.zy.multiempresa.android.lib.protecta', name: 'sdk', version: '1.1.9', ext: 'aar'){
143
143
  transitive = true
144
144
  }
145
145
 
146
- implementation(group: 'com.zy.identy.face.protecta', name: 'sdk', version: '6.5.17', ext: 'aar'){
146
+ implementation(group: 'com.zy.identy.face.protecta', name: 'sdk', version: '6.7.2', ext: 'aar'){
147
147
  transitive = true
148
148
  }
149
- debugImplementation(group: 'com.identy.face', name: 'face', version: '6.3.2-develop', ext: 'aar')
150
- releaseImplementation(group: 'com.identy.face', name: 'face', version: '6.3.2', ext: 'aar')
149
+ debugImplementation(group: 'com.identy.face', name: 'face', version: '6.3.3-develop', ext: 'aar')
150
+ releaseImplementation(group: 'com.identy.face', name: 'face', version: '6.3.3', ext: 'aar')
151
151
  //FIN_ZY_ZYTRUST
152
152
  }
153
153
 
@@ -1,2 +1,5 @@
1
1
  #import <React/RCTBridgeModule.h>
2
2
  #import <React/RCTViewManager.h>
3
+
4
+ @interface ZyprotectabioModule : NSObject <RCTBridgeModule>
5
+ @end
@@ -0,0 +1,50 @@
1
+ #import <Foundation/Foundation.h>
2
+ #import <React/RCTBridgeModule.h>
3
+ #import <zy_multicompany_bio_lib_ios/zy_multicompany_bio_lib_ios-Swift.h>
4
+
5
+ #import "ZyprotectabioModule-Bridging-Header.h"
6
+
7
+ @implementation ZyprotectabioModule
8
+
9
+ RCT_EXPORT_MODULE();
10
+
11
+ RCT_EXPORT_METHOD(onZyBioCapture:(NSDictionary *)opcional
12
+ resolver:(RCTPromiseResolveBlock)resolve
13
+ rejecter:(RCTPromiseRejectBlock)reject)
14
+ {
15
+ dispatch_async(dispatch_get_main_queue(), ^{
16
+ @try {
17
+
18
+ UIViewController *ctrl = [[[[UIApplication sharedApplication] delegate] window] rootViewController];
19
+
20
+ ReactRequest *request = [ReactRequest new];
21
+ request.token = opcional[@"accessToken"];
22
+ request.bioTiDoc = opcional[@"tiDocumento"];
23
+ request.bioNuDoc = opcional[@"nuDocumento"];
24
+ request.bioPais = opcional[@"bioPais"];
25
+ request.bioOperacion = opcional[@"tiOperacion"];
26
+ request.url = opcional[@"urlSource"];
27
+ request.company = @"PROTECTA";
28
+
29
+ ZyReactComp *biomatch = [[ZyReactComp alloc] initOnView:ctrl];
30
+
31
+ [biomatch reactValidacionFacial:request
32
+ completion:^(ReactResponse *response) {
33
+
34
+ resolve(@{
35
+ @"coError": response.coError ?: @"",
36
+ @"deError": response.deError ?: @"",
37
+ @"coErrorButton": response.coErrorButton ?: @"",
38
+ @"deErrorButton": response.deErrorButton ?: @"",
39
+ @"idSolicitud": response.bmoNuSolicitud ?: @""
40
+ });
41
+
42
+ }];
43
+
44
+ } @catch (NSException *exception) {
45
+ reject(@"ERROR", exception.reason, nil);
46
+ }
47
+ });
48
+ }
49
+
50
+ @end
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-zyprotectabio-module",
3
- "version": "1.1.4",
3
+ "version": "1.1.7",
4
4
  "description": "React Native native module for ZyProtecta biometric integration",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",
@@ -40,17 +40,17 @@
40
40
 
41
41
  "repository": {
42
42
  "type": "git",
43
- "url": "https://github.com/jorgeSaenzUgaz/react-native-zyprotectabio-module"
43
+ "url": "https://github.com/ZY-PROTECTA/react-native-zyprotectabio-module"
44
44
  },
45
45
 
46
46
  "author": "jorgeSaenzUgaz <jorgeSaenz695@gmail.com> (https://github.com/jorgeSaenzUgaz)",
47
47
  "license": "MIT",
48
48
 
49
49
  "bugs": {
50
- "url": "https://github.com/jorgeSaenzUgaz/react-native-zyprotectabio-module/issues"
50
+ "url": "https://github.com/ZY-PROTECTA/react-native-zyprotectabio-module/issues"
51
51
  },
52
52
 
53
- "homepage": "https://github.com/jorgeSaenzUgaz/react-native-zyprotectabio-module#readme",
53
+ "homepage": "https://github.com/ZY-PROTECTA/react-native-zyprotectabio-module#readme",
54
54
 
55
55
  "publishConfig": {
56
56
  "registry": "https://registry.npmjs.org/"
@@ -0,0 +1,19 @@
1
+ require "json"
2
+
3
+ package = JSON.parse(File.read(File.join(__dir__, "package.json")))
4
+
5
+ Pod::Spec.new do |s|
6
+ s.name = "react-native-zyprotectabio-module"
7
+ s.version = package["version"]
8
+ s.summary = package["description"]
9
+ s.license = package["license"]
10
+ s.authors = { 'Zytrust S.A' => 'ztmobile@zytrust.com' }
11
+ s.homepage = 'https://www.zytrust.com'
12
+ s.ios.deployment_target = '13.0'
13
+
14
+ s.source = { :git => "https://github.com/ZY-PROTECTA/react-native-zyprotectabio-module.git", :tag => "#{s.version}" }
15
+ s.source_files = "ios/**/*.{h,m,mm,swift}"
16
+
17
+ s.dependency 'zy_multicompany_bio_lib_ios_protecta', '1.0.3'
18
+ s.dependency "React-Core"
19
+ end
@@ -1,9 +0,0 @@
1
- #import <React/RCTBridgeModule.h>
2
-
3
- @interface RCT_EXTERN_MODULE(ZyprotectabioModule, NSObject)
4
-
5
- RCT_EXTERN_METHOD(multiply:(float)a withB:(float)b
6
- withResolver:(RCTPromiseResolveBlock)resolve
7
- withRejecter:(RCTPromiseRejectBlock)reject)
8
-
9
- @end
@@ -1,8 +0,0 @@
1
- @objc(ZyprotectabioModule)
2
- class ZyprotectabioModule: NSObject {
3
-
4
- @objc(multiply:withB:withResolver:withRejecter:)
5
- func multiply(a: Float, b: Float, resolve:RCTPromiseResolveBlock,reject:RCTPromiseRejectBlock) -> Void {
6
- resolve(a*b)
7
- }
8
- }
@@ -1,293 +0,0 @@
1
- // !$*UTF8*$!
2
- {
3
- archiveVersion = 1;
4
- classes = {
5
- };
6
- objectVersion = 46;
7
- objects = {
8
-
9
- /* Begin PBXBuildFile section */
10
-
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
-
14
- /* End PBXBuildFile section */
15
-
16
- /* Begin PBXCopyFilesBuildPhase section */
17
- 58B511D91A9E6C8500147676 /* CopyFiles */ = {
18
- isa = PBXCopyFilesBuildPhase;
19
- buildActionMask = 2147483647;
20
- dstPath = "include/$(PRODUCT_NAME)";
21
- dstSubfolderSpec = 16;
22
- files = (
23
- );
24
- runOnlyForDeploymentPostprocessing = 0;
25
- };
26
- /* End PBXCopyFilesBuildPhase section */
27
-
28
- /* Begin PBXFileReference section */
29
- 134814201AA4EA6300B7C361 /* libZyprotectabioModule.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libZyprotectabioModule.a; sourceTree = BUILT_PRODUCTS_DIR; };
30
-
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
-
35
- /* End PBXFileReference section */
36
-
37
- /* Begin PBXFrameworksBuildPhase section */
38
- 58B511D81A9E6C8500147676 /* Frameworks */ = {
39
- isa = PBXFrameworksBuildPhase;
40
- buildActionMask = 2147483647;
41
- files = (
42
- );
43
- runOnlyForDeploymentPostprocessing = 0;
44
- };
45
- /* End PBXFrameworksBuildPhase section */
46
-
47
- /* Begin PBXGroup section */
48
- 134814211AA4EA7D00B7C361 /* Products */ = {
49
- isa = PBXGroup;
50
- children = (
51
- 134814201AA4EA6300B7C361 /* libZyprotectabioModule.a */,
52
- );
53
- name = Products;
54
- sourceTree = "<group>";
55
- };
56
- 58B511D21A9E6C8500147676 = {
57
- isa = PBXGroup;
58
- children = (
59
-
60
- F4FF95D6245B92E800C19C63 /* ZyprotectabioModule.swift */,
61
- B3E7B5891CC2AC0600A0062D /* ZyprotectabioModule.m */,
62
- F4FF95D5245B92E700C19C63 /* ZyprotectabioModule-Bridging-Header.h */,
63
-
64
- 134814211AA4EA7D00B7C361 /* Products */,
65
- );
66
- sourceTree = "<group>";
67
- };
68
- /* End PBXGroup section */
69
-
70
- /* Begin PBXNativeTarget section */
71
- 58B511DA1A9E6C8500147676 /* ZyprotectabioModule */ = {
72
- isa = PBXNativeTarget;
73
- buildConfigurationList = 58B511EF1A9E6C8500147676 /* Build configuration list for PBXNativeTarget "ZyprotectabioModule" */;
74
- buildPhases = (
75
- 58B511D71A9E6C8500147676 /* Sources */,
76
- 58B511D81A9E6C8500147676 /* Frameworks */,
77
- 58B511D91A9E6C8500147676 /* CopyFiles */,
78
- );
79
- buildRules = (
80
- );
81
- dependencies = (
82
- );
83
- name = ZyprotectabioModule;
84
- productName = RCTDataManager;
85
- productReference = 134814201AA4EA6300B7C361 /* libZyprotectabioModule.a */;
86
- productType = "com.apple.product-type.library.static";
87
- };
88
- /* End PBXNativeTarget section */
89
-
90
- /* Begin PBXProject section */
91
- 58B511D31A9E6C8500147676 /* Project object */ = {
92
- isa = PBXProject;
93
- attributes = {
94
- LastUpgradeCheck = 0920;
95
- ORGANIZATIONNAME = Facebook;
96
- TargetAttributes = {
97
- 58B511DA1A9E6C8500147676 = {
98
- CreatedOnToolsVersion = 6.1.1;
99
- };
100
- };
101
- };
102
- buildConfigurationList = 58B511D61A9E6C8500147676 /* Build configuration list for PBXProject "ZyprotectabioModule" */;
103
- compatibilityVersion = "Xcode 3.2";
104
- developmentRegion = English;
105
- hasScannedForEncodings = 0;
106
- knownRegions = (
107
- English,
108
- en,
109
- );
110
- mainGroup = 58B511D21A9E6C8500147676;
111
- productRefGroup = 58B511D21A9E6C8500147676;
112
- projectDirPath = "";
113
- projectRoot = "";
114
- targets = (
115
- 58B511DA1A9E6C8500147676 /* ZyprotectabioModule */,
116
- );
117
- };
118
- /* End PBXProject section */
119
-
120
- /* Begin PBXSourcesBuildPhase section */
121
- 58B511D71A9E6C8500147676 /* Sources */ = {
122
- isa = PBXSourcesBuildPhase;
123
- buildActionMask = 2147483647;
124
- files = (
125
-
126
- F4FF95D7245B92E800C19C63 /* ZyprotectabioModule.swift in Sources */,
127
- B3E7B58A1CC2AC0600A0062D /* ZyprotectabioModule.m in Sources */,
128
-
129
- );
130
- runOnlyForDeploymentPostprocessing = 0;
131
- };
132
- /* End PBXSourcesBuildPhase section */
133
-
134
- /* Begin XCBuildConfiguration section */
135
- 58B511ED1A9E6C8500147676 /* Debug */ = {
136
- isa = XCBuildConfiguration;
137
- buildSettings = {
138
- ALWAYS_SEARCH_USER_PATHS = NO;
139
- CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
140
- CLANG_CXX_LIBRARY = "libc++";
141
- CLANG_ENABLE_MODULES = YES;
142
- CLANG_ENABLE_OBJC_ARC = YES;
143
- CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
144
- CLANG_WARN_BOOL_CONVERSION = YES;
145
- CLANG_WARN_COMMA = YES;
146
- CLANG_WARN_CONSTANT_CONVERSION = YES;
147
- CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
148
- CLANG_WARN_EMPTY_BODY = YES;
149
- CLANG_WARN_ENUM_CONVERSION = YES;
150
- CLANG_WARN_INFINITE_RECURSION = YES;
151
- CLANG_WARN_INT_CONVERSION = YES;
152
- CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
153
- CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
154
- CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
155
- CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
156
- CLANG_WARN_STRICT_PROTOTYPES = YES;
157
- CLANG_WARN_SUSPICIOUS_MOVE = YES;
158
- CLANG_WARN_UNREACHABLE_CODE = YES;
159
- CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
160
- COPY_PHASE_STRIP = NO;
161
- ENABLE_STRICT_OBJC_MSGSEND = YES;
162
- ENABLE_TESTABILITY = YES;
163
- GCC_C_LANGUAGE_STANDARD = gnu99;
164
- GCC_DYNAMIC_NO_PIC = NO;
165
- GCC_NO_COMMON_BLOCKS = YES;
166
- GCC_OPTIMIZATION_LEVEL = 0;
167
- GCC_PREPROCESSOR_DEFINITIONS = (
168
- "DEBUG=1",
169
- "$(inherited)",
170
- );
171
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
172
- GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
173
- GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
174
- GCC_WARN_UNDECLARED_SELECTOR = YES;
175
- GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
176
- GCC_WARN_UNUSED_FUNCTION = YES;
177
- GCC_WARN_UNUSED_VARIABLE = YES;
178
- IPHONEOS_DEPLOYMENT_TARGET = 8.0;
179
- MTL_ENABLE_DEBUG_INFO = YES;
180
- ONLY_ACTIVE_ARCH = YES;
181
- SDKROOT = iphoneos;
182
- };
183
- name = Debug;
184
- };
185
- 58B511EE1A9E6C8500147676 /* Release */ = {
186
- isa = XCBuildConfiguration;
187
- buildSettings = {
188
- ALWAYS_SEARCH_USER_PATHS = NO;
189
- CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
190
- CLANG_CXX_LIBRARY = "libc++";
191
- CLANG_ENABLE_MODULES = YES;
192
- CLANG_ENABLE_OBJC_ARC = YES;
193
- CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
194
- CLANG_WARN_BOOL_CONVERSION = YES;
195
- CLANG_WARN_COMMA = YES;
196
- CLANG_WARN_CONSTANT_CONVERSION = YES;
197
- CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
198
- CLANG_WARN_EMPTY_BODY = YES;
199
- CLANG_WARN_ENUM_CONVERSION = YES;
200
- CLANG_WARN_INFINITE_RECURSION = YES;
201
- CLANG_WARN_INT_CONVERSION = YES;
202
- CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
203
- CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
204
- CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
205
- CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
206
- CLANG_WARN_STRICT_PROTOTYPES = YES;
207
- CLANG_WARN_SUSPICIOUS_MOVE = YES;
208
- CLANG_WARN_UNREACHABLE_CODE = YES;
209
- CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
210
- COPY_PHASE_STRIP = YES;
211
- ENABLE_NS_ASSERTIONS = NO;
212
- ENABLE_STRICT_OBJC_MSGSEND = YES;
213
- GCC_C_LANGUAGE_STANDARD = gnu99;
214
- GCC_NO_COMMON_BLOCKS = YES;
215
- GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
216
- GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
217
- GCC_WARN_UNDECLARED_SELECTOR = YES;
218
- GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
219
- GCC_WARN_UNUSED_FUNCTION = YES;
220
- GCC_WARN_UNUSED_VARIABLE = YES;
221
- IPHONEOS_DEPLOYMENT_TARGET = 8.0;
222
- MTL_ENABLE_DEBUG_INFO = NO;
223
- SDKROOT = iphoneos;
224
- VALIDATE_PRODUCT = YES;
225
- };
226
- name = Release;
227
- };
228
- 58B511F01A9E6C8500147676 /* Debug */ = {
229
- isa = XCBuildConfiguration;
230
- buildSettings = {
231
- HEADER_SEARCH_PATHS = (
232
- "$(inherited)",
233
- /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include,
234
- "$(SRCROOT)/../../../React/**",
235
- "$(SRCROOT)/../../react-native/React/**",
236
- );
237
- LIBRARY_SEARCH_PATHS = "$(inherited)";
238
- OTHER_LDFLAGS = "-ObjC";
239
- PRODUCT_NAME = ZyprotectabioModule;
240
- SKIP_INSTALL = YES;
241
-
242
- SWIFT_OBJC_BRIDGING_HEADER = "ZyprotectabioModule-Bridging-Header.h";
243
- SWIFT_OPTIMIZATION_LEVEL = "-Onone";
244
- SWIFT_VERSION = 5.0;
245
-
246
- };
247
- name = Debug;
248
- };
249
- 58B511F11A9E6C8500147676 /* Release */ = {
250
- isa = XCBuildConfiguration;
251
- buildSettings = {
252
- HEADER_SEARCH_PATHS = (
253
- "$(inherited)",
254
- /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include,
255
- "$(SRCROOT)/../../../React/**",
256
- "$(SRCROOT)/../../react-native/React/**",
257
- );
258
- LIBRARY_SEARCH_PATHS = "$(inherited)";
259
- OTHER_LDFLAGS = "-ObjC";
260
- PRODUCT_NAME = ZyprotectabioModule;
261
- SKIP_INSTALL = YES;
262
-
263
- SWIFT_OBJC_BRIDGING_HEADER = "ZyprotectabioModule-Bridging-Header.h";
264
- SWIFT_VERSION = 5.0;
265
-
266
- };
267
- name = Release;
268
- };
269
- /* End XCBuildConfiguration section */
270
-
271
- /* Begin XCConfigurationList section */
272
- 58B511D61A9E6C8500147676 /* Build configuration list for PBXProject "ZyprotectabioModule" */ = {
273
- isa = XCConfigurationList;
274
- buildConfigurations = (
275
- 58B511ED1A9E6C8500147676 /* Debug */,
276
- 58B511EE1A9E6C8500147676 /* Release */,
277
- );
278
- defaultConfigurationIsVisible = 0;
279
- defaultConfigurationName = Release;
280
- };
281
- 58B511EF1A9E6C8500147676 /* Build configuration list for PBXNativeTarget "ZyprotectabioModule" */ = {
282
- isa = XCConfigurationList;
283
- buildConfigurations = (
284
- 58B511F01A9E6C8500147676 /* Debug */,
285
- 58B511F11A9E6C8500147676 /* Release */,
286
- );
287
- defaultConfigurationIsVisible = 0;
288
- defaultConfigurationName = Release;
289
- };
290
- /* End XCConfigurationList section */
291
- };
292
- rootObject = 58B511D31A9E6C8500147676 /* Project object */;
293
- }
@@ -1,4 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <Workspace
3
- version = "1.0">
4
- </Workspace>