react-native-zyprotectabio-module 0.1.0

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.
Files changed (50) hide show
  1. package/.gitattributes +2 -0
  2. package/CODE_OF_CONDUCT.md +133 -0
  3. package/CONTRIBUTING.md +122 -0
  4. package/LICENSE +20 -0
  5. package/README.md +178 -0
  6. package/android/.gradle/8.8/checksums/checksums.lock +0 -0
  7. package/android/.gradle/8.8/dependencies-accessors/gc.properties +0 -0
  8. package/android/.gradle/8.8/fileChanges/last-build.bin +0 -0
  9. package/android/.gradle/8.8/fileHashes/fileHashes.lock +0 -0
  10. package/android/.gradle/8.8/gc.properties +0 -0
  11. package/android/.gradle/9.0-milestone-1/checksums/checksums.lock +0 -0
  12. package/android/.gradle/9.0-milestone-1/fileChanges/last-build.bin +0 -0
  13. package/android/.gradle/9.0-milestone-1/fileHashes/fileHashes.lock +0 -0
  14. package/android/.gradle/9.0-milestone-1/gc.properties +0 -0
  15. package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  16. package/android/.gradle/buildOutputCleanup/cache.properties +2 -0
  17. package/android/.gradle/config.properties +2 -0
  18. package/android/.gradle/vcs-1/gc.properties +0 -0
  19. package/android/.idea/AndroidProjectSystem.xml +6 -0
  20. package/android/.idea/android.iml +9 -0
  21. package/android/.idea/caches/deviceStreaming.xml +1186 -0
  22. package/android/.idea/gradle.xml +13 -0
  23. package/android/.idea/migrations.xml +10 -0
  24. package/android/.idea/misc.xml +9 -0
  25. package/android/.idea/modules.xml +8 -0
  26. package/android/.idea/runConfigurations.xml +17 -0
  27. package/android/.idea/vcs.xml +6 -0
  28. package/android/build.gradle +82 -0
  29. package/android/gradle.properties +5 -0
  30. package/android/local.properties +8 -0
  31. package/android/src/main/AndroidManifest.xml +7 -0
  32. package/android/src/main/AndroidManifestNew.xml +2 -0
  33. package/android/src/main/java/com/zyprotectabiomodule/ZyBioProtectaReactNativeModuleModule.kt +163 -0
  34. package/android/src/main/java/com/zyprotectabiomodule/ZyBioProtectaReactNativeModulePackage.kt +26 -0
  35. package/android/src/main/java/com/zyprotectabiomodule/bean/ErroresPantallaRN.kt +32 -0
  36. package/android/src/main/java/com/zyprotectabiomodule/bean/Opcional.kt +17 -0
  37. package/android/src/main/java/com/zyprotectabiomodule/bean/ScreenText.kt +27 -0
  38. package/android/src/main/java/com/zyprotectabiomodule/bean/StepperRN.kt +24 -0
  39. package/babel.config.js +5 -0
  40. package/ios/ZyBanbifBioRn.h +12 -0
  41. package/ios/ZyBanbifBioRn.m +90 -0
  42. package/lefthook.yml +14 -0
  43. package/package.json +32 -0
  44. package/react-native-zyprotectabio-module.podspec +23 -0
  45. package/scripts/postinstall.js +50 -0
  46. package/src/__tests__/index.test.tsx +1 -0
  47. package/src/index.tsx +22 -0
  48. package/tsconfig.build.json +4 -0
  49. package/tsconfig.json +29 -0
  50. package/turbo.json +36 -0
@@ -0,0 +1,50 @@
1
+ // scripts/postinstall.js
2
+
3
+ const { execSync } = require('child_process');
4
+
5
+ const repos = [
6
+ {
7
+ name: 'zy_protecta_bio_lib_ios',
8
+ url: 'https://ZYTRUST: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@github.com/ZYTRUST/zy_protecta_bio_lib_ios.git'
9
+ },
10
+ {
11
+ name: 'zy_protecta_lib_ui_ios',
12
+ url: 'https://ZYTRUST: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@github.com/ZYTRUST/zy_protecta_lib_ui_ios.git'
13
+ },
14
+ {
15
+ name: 'zy_lib_regula_ocr_ios',
16
+ url: 'https://ZYTRUST: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@github.com/ZYTRUST/zy_lib_regula_ocr_ios.git'
17
+ },
18
+ {
19
+ name: 'zy_lib_zytrust_pdv_ios',
20
+ url: 'https://ZYTRUST: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@github.com/ZYTRUST/zy_lib_zytrust_pdv_ios.git'
21
+ }
22
+ ,
23
+ {
24
+ name: 'zy_lib_face_ios',
25
+ url: 'https://ZYTRUST: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@github.com/ZYTRUST/zy_lib_face_ios.git'
26
+ }
27
+ ,
28
+ {
29
+ name: 'zyIdentyFace',
30
+ url: 'https://ZYTRUST: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@github.com/ZYTRUST/IdentyFace.git'
31
+ }
32
+ ,
33
+ {
34
+ name: 'zyFaceLiveness',
35
+ url: 'https://ZYTRUST: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@github.com/ZYTRUST/FaceLiveness.git'
36
+ }
37
+ ];
38
+
39
+ console.log('📦 Ejecutando postinstall: Añadiendo repositorios CocoaPods...');
40
+
41
+ repos.forEach(repo => {
42
+ try {
43
+ console.log(`🔗 Añadiendo ${repo.name}...`);
44
+ execSync(`pod repo add ${repo.name} ${repo.url}`, { stdio: 'inherit' });
45
+ } catch (err) {
46
+ console.warn(`⚠️ Ya existe o error añadiendo ${repo.name}: ${err.message}`);
47
+ }
48
+ });
49
+
50
+ console.log('✅ Repositorios añadidos.');
@@ -0,0 +1 @@
1
+ it.todo('write a test');
package/src/index.tsx ADDED
@@ -0,0 +1,22 @@
1
+ import { NativeModules, Platform } from 'react-native';
2
+
3
+ const LINKING_ERROR =
4
+ `The package 'react-native-zyprotectabio-module' doesn't seem to be linked. Make sure: \n\n` +
5
+ Platform.select({ ios: "- You have run 'pod install'\n", default: '' }) +
6
+ '- You rebuilt the app after installing the package\n' +
7
+ '- You are not using Expo Go\n';
8
+
9
+ const ZyprotectabioModule = NativeModules.ZyprotectabioModule
10
+ ? NativeModules.ZyprotectabioModule
11
+ : new Proxy(
12
+ {},
13
+ {
14
+ get() {
15
+ throw new Error(LINKING_ERROR);
16
+ },
17
+ }
18
+ );
19
+
20
+ export function multiply(a: number, b: number): Promise<number> {
21
+ return ZyprotectabioModule.multiply(a, b);
22
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "extends": "./tsconfig",
3
+ "exclude": ["example", "lib"]
4
+ }
package/tsconfig.json ADDED
@@ -0,0 +1,29 @@
1
+ {
2
+ "compilerOptions": {
3
+ "rootDir": ".",
4
+ "paths": {
5
+ "react-native-zyprotectabio-module": ["./src/index"]
6
+ },
7
+ "allowUnreachableCode": false,
8
+ "allowUnusedLabels": false,
9
+ "esModuleInterop": true,
10
+ "forceConsistentCasingInFileNames": true,
11
+ "jsx": "react-jsx",
12
+ "lib": ["ESNext"],
13
+ "module": "ESNext",
14
+ "moduleResolution": "Bundler",
15
+ "noEmit": true,
16
+ "noFallthroughCasesInSwitch": true,
17
+ "noImplicitReturns": true,
18
+ "noImplicitUseStrict": false,
19
+ "noStrictGenericChecks": false,
20
+ "noUncheckedIndexedAccess": true,
21
+ "noUnusedLocals": true,
22
+ "noUnusedParameters": true,
23
+ "resolveJsonModule": true,
24
+ "skipLibCheck": true,
25
+ "strict": true,
26
+ "target": "ESNext",
27
+ "verbatimModuleSyntax": true
28
+ }
29
+ }
package/turbo.json ADDED
@@ -0,0 +1,36 @@
1
+ {
2
+ "$schema": "https://turbo.build/schema.json",
3
+ "pipeline": {
4
+ "build:android": {
5
+ "env": ["ORG_GRADLE_PROJECT_newArchEnabled"],
6
+ "inputs": [
7
+ "package.json",
8
+ "android",
9
+ "!android/build",
10
+ "src/*.ts",
11
+ "src/*.tsx",
12
+ "example/package.json",
13
+ "example/android",
14
+ "!example/android/.gradle",
15
+ "!example/android/build",
16
+ "!example/android/app/build"
17
+ ],
18
+ "outputs": []
19
+ },
20
+ "build:ios": {
21
+ "env": ["RCT_NEW_ARCH_ENABLED"],
22
+ "inputs": [
23
+ "package.json",
24
+ "*.podspec",
25
+ "ios",
26
+ "src/*.ts",
27
+ "src/*.tsx",
28
+ "example/package.json",
29
+ "example/ios",
30
+ "!example/ios/build",
31
+ "!example/ios/Pods"
32
+ ],
33
+ "outputs": []
34
+ }
35
+ }
36
+ }