@ha_tecno/live-id-sdk 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (217) hide show
  1. package/LICENSE +20 -0
  2. package/README.md +323 -0
  3. package/android/build.gradle +94 -0
  4. package/android/gradle.properties +5 -0
  5. package/android/src/main/AndroidManifest.xml +4 -0
  6. package/android/src/main/AndroidManifestNew.xml +2 -0
  7. package/android/src/main/java/com/liveidsdk/LiveIdSdkModule.kt +25 -0
  8. package/android/src/main/java/com/liveidsdk/LiveIdSdkPackage.kt +17 -0
  9. package/ios/LiveIdSdk-Bridging-Header.h +2 -0
  10. package/ios/LiveIdSdk.mm +14 -0
  11. package/ios/LiveIdSdk.swift +8 -0
  12. package/lib/commonjs/assets/arrow.png +0 -0
  13. package/lib/commonjs/assets/exampleInstructionWithBorder.jpeg +0 -0
  14. package/lib/commonjs/assets/exampleInstructionWithoutFinger.jpeg +0 -0
  15. package/lib/commonjs/assets/ic_redness_capture_tip.png +0 -0
  16. package/lib/commonjs/assets/logo.png +0 -0
  17. package/lib/commonjs/components/CameraConfigInfos/index.js +21 -0
  18. package/lib/commonjs/components/CameraConfigInfos/index.js.map +1 -0
  19. package/lib/commonjs/components/CameraConfigInfos/styles.js +19 -0
  20. package/lib/commonjs/components/CameraConfigInfos/styles.js.map +1 -0
  21. package/lib/commonjs/components/DeviceNullDisplay/index.js +59 -0
  22. package/lib/commonjs/components/DeviceNullDisplay/index.js.map +1 -0
  23. package/lib/commonjs/components/ErrorDisplay/index.js +59 -0
  24. package/lib/commonjs/components/ErrorDisplay/index.js.map +1 -0
  25. package/lib/commonjs/components/Gabarito/index.js +19 -0
  26. package/lib/commonjs/components/Gabarito/index.js.map +1 -0
  27. package/lib/commonjs/components/Gabarito/styles.js +30 -0
  28. package/lib/commonjs/components/Gabarito/styles.js.map +1 -0
  29. package/lib/commonjs/components/Toast/Toast.js +66 -0
  30. package/lib/commonjs/components/Toast/Toast.js.map +1 -0
  31. package/lib/commonjs/components/WaitingForResult/index.js +24 -0
  32. package/lib/commonjs/components/WaitingForResult/index.js.map +1 -0
  33. package/lib/commonjs/components/WaitingForResult/styles.js +32 -0
  34. package/lib/commonjs/components/WaitingForResult/styles.js.map +1 -0
  35. package/lib/commonjs/index.js +34 -0
  36. package/lib/commonjs/index.js.map +1 -0
  37. package/lib/commonjs/screens/CadastroFinger/components/AjudaCadastro/index.js +49 -0
  38. package/lib/commonjs/screens/CadastroFinger/components/AjudaCadastro/index.js.map +1 -0
  39. package/lib/commonjs/screens/CadastroFinger/components/AjudaCadastro/styles.js +62 -0
  40. package/lib/commonjs/screens/CadastroFinger/components/AjudaCadastro/styles.js.map +1 -0
  41. package/lib/commonjs/screens/CadastroFinger/components/CameraCadastro/index.js +298 -0
  42. package/lib/commonjs/screens/CadastroFinger/components/CameraCadastro/index.js.map +1 -0
  43. package/lib/commonjs/screens/CadastroFinger/components/CameraCadastro/styles.js +54 -0
  44. package/lib/commonjs/screens/CadastroFinger/components/CameraCadastro/styles.js.map +1 -0
  45. package/lib/commonjs/screens/CadastroFinger/components/ImageDisplayScreen/index.js +44 -0
  46. package/lib/commonjs/screens/CadastroFinger/components/ImageDisplayScreen/index.js.map +1 -0
  47. package/lib/commonjs/screens/CadastroFinger/components/ImageDisplayScreen/styles.js +65 -0
  48. package/lib/commonjs/screens/CadastroFinger/components/ImageDisplayScreen/styles.js.map +1 -0
  49. package/lib/commonjs/screens/CadastroFinger/index.js +50 -0
  50. package/lib/commonjs/screens/CadastroFinger/index.js.map +1 -0
  51. package/lib/commonjs/screens/CadastroScreen/CadastroScreen.js +186 -0
  52. package/lib/commonjs/screens/CadastroScreen/CadastroScreen.js.map +1 -0
  53. package/lib/commonjs/screens/ProvaVidas/index.js +246 -0
  54. package/lib/commonjs/screens/ProvaVidas/index.js.map +1 -0
  55. package/lib/commonjs/screens/ProvaVidas/styles.js +93 -0
  56. package/lib/commonjs/screens/ProvaVidas/styles.js.map +1 -0
  57. package/lib/commonjs/screens/ValidadeFinger/index.js +216 -0
  58. package/lib/commonjs/screens/ValidadeFinger/index.js.map +1 -0
  59. package/lib/commonjs/screens/ValidadeFinger/styles.js +54 -0
  60. package/lib/commonjs/screens/ValidadeFinger/styles.js.map +1 -0
  61. package/lib/commonjs/services/index.js +145 -0
  62. package/lib/commonjs/services/index.js.map +1 -0
  63. package/lib/commonjs/types/screen.js +2 -0
  64. package/lib/commonjs/types/screen.js.map +1 -0
  65. package/lib/commonjs/utils/file.js +38 -0
  66. package/lib/commonjs/utils/file.js.map +1 -0
  67. package/lib/commonjs/utils/getConfigCamera.js +25 -0
  68. package/lib/commonjs/utils/getConfigCamera.js.map +1 -0
  69. package/lib/commonjs/utils/index.js +14 -0
  70. package/lib/commonjs/utils/index.js.map +1 -0
  71. package/lib/module/assets/arrow.png +0 -0
  72. package/lib/module/assets/exampleInstructionWithBorder.jpeg +0 -0
  73. package/lib/module/assets/exampleInstructionWithoutFinger.jpeg +0 -0
  74. package/lib/module/assets/ic_redness_capture_tip.png +0 -0
  75. package/lib/module/assets/logo.png +0 -0
  76. package/lib/module/components/CameraConfigInfos/index.js +13 -0
  77. package/lib/module/components/CameraConfigInfos/index.js.map +1 -0
  78. package/lib/module/components/CameraConfigInfos/styles.js +13 -0
  79. package/lib/module/components/CameraConfigInfos/styles.js.map +1 -0
  80. package/lib/module/components/DeviceNullDisplay/index.js +51 -0
  81. package/lib/module/components/DeviceNullDisplay/index.js.map +1 -0
  82. package/lib/module/components/ErrorDisplay/index.js +51 -0
  83. package/lib/module/components/ErrorDisplay/index.js.map +1 -0
  84. package/lib/module/components/Gabarito/index.js +11 -0
  85. package/lib/module/components/Gabarito/index.js.map +1 -0
  86. package/lib/module/components/Gabarito/styles.js +24 -0
  87. package/lib/module/components/Gabarito/styles.js.map +1 -0
  88. package/lib/module/components/Toast/Toast.js +58 -0
  89. package/lib/module/components/Toast/Toast.js.map +1 -0
  90. package/lib/module/components/WaitingForResult/index.js +17 -0
  91. package/lib/module/components/WaitingForResult/index.js.map +1 -0
  92. package/lib/module/components/WaitingForResult/styles.js +26 -0
  93. package/lib/module/components/WaitingForResult/styles.js.map +1 -0
  94. package/lib/module/index.js +7 -0
  95. package/lib/module/index.js.map +1 -0
  96. package/lib/module/screens/CadastroFinger/components/AjudaCadastro/index.js +41 -0
  97. package/lib/module/screens/CadastroFinger/components/AjudaCadastro/index.js.map +1 -0
  98. package/lib/module/screens/CadastroFinger/components/AjudaCadastro/styles.js +56 -0
  99. package/lib/module/screens/CadastroFinger/components/AjudaCadastro/styles.js.map +1 -0
  100. package/lib/module/screens/CadastroFinger/components/CameraCadastro/index.js +288 -0
  101. package/lib/module/screens/CadastroFinger/components/CameraCadastro/index.js.map +1 -0
  102. package/lib/module/screens/CadastroFinger/components/CameraCadastro/styles.js +48 -0
  103. package/lib/module/screens/CadastroFinger/components/CameraCadastro/styles.js.map +1 -0
  104. package/lib/module/screens/CadastroFinger/components/ImageDisplayScreen/index.js +36 -0
  105. package/lib/module/screens/CadastroFinger/components/ImageDisplayScreen/index.js.map +1 -0
  106. package/lib/module/screens/CadastroFinger/components/ImageDisplayScreen/styles.js +59 -0
  107. package/lib/module/screens/CadastroFinger/components/ImageDisplayScreen/styles.js.map +1 -0
  108. package/lib/module/screens/CadastroFinger/index.js +42 -0
  109. package/lib/module/screens/CadastroFinger/index.js.map +1 -0
  110. package/lib/module/screens/CadastroScreen/CadastroScreen.js +177 -0
  111. package/lib/module/screens/CadastroScreen/CadastroScreen.js.map +1 -0
  112. package/lib/module/screens/ProvaVidas/index.js +239 -0
  113. package/lib/module/screens/ProvaVidas/index.js.map +1 -0
  114. package/lib/module/screens/ProvaVidas/styles.js +87 -0
  115. package/lib/module/screens/ProvaVidas/styles.js.map +1 -0
  116. package/lib/module/screens/ValidadeFinger/index.js +206 -0
  117. package/lib/module/screens/ValidadeFinger/index.js.map +1 -0
  118. package/lib/module/screens/ValidadeFinger/styles.js +48 -0
  119. package/lib/module/screens/ValidadeFinger/styles.js.map +1 -0
  120. package/lib/module/services/index.js +131 -0
  121. package/lib/module/services/index.js.map +1 -0
  122. package/lib/module/types/screen.js +2 -0
  123. package/lib/module/types/screen.js.map +1 -0
  124. package/lib/module/utils/file.js +29 -0
  125. package/lib/module/utils/file.js.map +1 -0
  126. package/lib/module/utils/getConfigCamera.js +19 -0
  127. package/lib/module/utils/getConfigCamera.js.map +1 -0
  128. package/lib/module/utils/index.js +3 -0
  129. package/lib/module/utils/index.js.map +1 -0
  130. package/lib/typescript/src/components/CameraConfigInfos/index.d.ts +9 -0
  131. package/lib/typescript/src/components/CameraConfigInfos/index.d.ts.map +1 -0
  132. package/lib/typescript/src/components/CameraConfigInfos/styles.d.ts +11 -0
  133. package/lib/typescript/src/components/CameraConfigInfos/styles.d.ts.map +1 -0
  134. package/lib/typescript/src/components/DeviceNullDisplay/index.d.ts +11 -0
  135. package/lib/typescript/src/components/DeviceNullDisplay/index.d.ts.map +1 -0
  136. package/lib/typescript/src/components/ErrorDisplay/index.d.ts +11 -0
  137. package/lib/typescript/src/components/ErrorDisplay/index.d.ts.map +1 -0
  138. package/lib/typescript/src/components/Gabarito/index.d.ts +3 -0
  139. package/lib/typescript/src/components/Gabarito/index.d.ts.map +1 -0
  140. package/lib/typescript/src/components/Gabarito/styles.d.ts +21 -0
  141. package/lib/typescript/src/components/Gabarito/styles.d.ts.map +1 -0
  142. package/lib/typescript/src/components/Toast/Toast.d.ts +42 -0
  143. package/lib/typescript/src/components/Toast/Toast.d.ts.map +1 -0
  144. package/lib/typescript/src/components/WaitingForResult/index.d.ts +7 -0
  145. package/lib/typescript/src/components/WaitingForResult/index.d.ts.map +1 -0
  146. package/lib/typescript/src/components/WaitingForResult/styles.d.ts +24 -0
  147. package/lib/typescript/src/components/WaitingForResult/styles.d.ts.map +1 -0
  148. package/lib/typescript/src/index.d.ts +5 -0
  149. package/lib/typescript/src/index.d.ts.map +1 -0
  150. package/lib/typescript/src/screens/CadastroFinger/components/AjudaCadastro/index.d.ts +7 -0
  151. package/lib/typescript/src/screens/CadastroFinger/components/AjudaCadastro/index.d.ts.map +1 -0
  152. package/lib/typescript/src/screens/CadastroFinger/components/AjudaCadastro/styles.d.ts +55 -0
  153. package/lib/typescript/src/screens/CadastroFinger/components/AjudaCadastro/styles.d.ts.map +1 -0
  154. package/lib/typescript/src/screens/CadastroFinger/components/CameraCadastro/index.d.ts +16 -0
  155. package/lib/typescript/src/screens/CadastroFinger/components/CameraCadastro/index.d.ts.map +1 -0
  156. package/lib/typescript/src/screens/CadastroFinger/components/CameraCadastro/styles.d.ts +44 -0
  157. package/lib/typescript/src/screens/CadastroFinger/components/CameraCadastro/styles.d.ts.map +1 -0
  158. package/lib/typescript/src/screens/CadastroFinger/components/ImageDisplayScreen/index.d.ts +12 -0
  159. package/lib/typescript/src/screens/CadastroFinger/components/ImageDisplayScreen/index.d.ts.map +1 -0
  160. package/lib/typescript/src/screens/CadastroFinger/components/ImageDisplayScreen/styles.d.ts +54 -0
  161. package/lib/typescript/src/screens/CadastroFinger/components/ImageDisplayScreen/styles.d.ts.map +1 -0
  162. package/lib/typescript/src/screens/CadastroFinger/index.d.ts +16 -0
  163. package/lib/typescript/src/screens/CadastroFinger/index.d.ts.map +1 -0
  164. package/lib/typescript/src/screens/CadastroScreen/CadastroScreen.d.ts +14 -0
  165. package/lib/typescript/src/screens/CadastroScreen/CadastroScreen.d.ts.map +1 -0
  166. package/lib/typescript/src/screens/ProvaVidas/index.d.ts +14 -0
  167. package/lib/typescript/src/screens/ProvaVidas/index.d.ts.map +1 -0
  168. package/lib/typescript/src/screens/ProvaVidas/styles.d.ts +85 -0
  169. package/lib/typescript/src/screens/ProvaVidas/styles.d.ts.map +1 -0
  170. package/lib/typescript/src/screens/ValidadeFinger/index.d.ts +14 -0
  171. package/lib/typescript/src/screens/ValidadeFinger/index.d.ts.map +1 -0
  172. package/lib/typescript/src/screens/ValidadeFinger/styles.d.ts +44 -0
  173. package/lib/typescript/src/screens/ValidadeFinger/styles.d.ts.map +1 -0
  174. package/lib/typescript/src/services/index.d.ts +21 -0
  175. package/lib/typescript/src/services/index.d.ts.map +1 -0
  176. package/lib/typescript/src/types/screen.d.ts +6 -0
  177. package/lib/typescript/src/types/screen.d.ts.map +1 -0
  178. package/lib/typescript/src/utils/file.d.ts +3 -0
  179. package/lib/typescript/src/utils/file.d.ts.map +1 -0
  180. package/lib/typescript/src/utils/getConfigCamera.d.ts +14 -0
  181. package/lib/typescript/src/utils/getConfigCamera.d.ts.map +1 -0
  182. package/lib/typescript/src/utils/index.d.ts +3 -0
  183. package/lib/typescript/src/utils/index.d.ts.map +1 -0
  184. package/live-id-sdk.podspec +41 -0
  185. package/package.json +184 -0
  186. package/src/assets/arrow.png +0 -0
  187. package/src/assets/exampleInstructionWithBorder.jpeg +0 -0
  188. package/src/assets/exampleInstructionWithoutFinger.jpeg +0 -0
  189. package/src/assets/ic_redness_capture_tip.png +0 -0
  190. package/src/assets/logo.png +0 -0
  191. package/src/components/CameraConfigInfos/index.tsx +25 -0
  192. package/src/components/CameraConfigInfos/styles.ts +13 -0
  193. package/src/components/DeviceNullDisplay/index.tsx +59 -0
  194. package/src/components/ErrorDisplay/index.tsx +60 -0
  195. package/src/components/Gabarito/index.tsx +11 -0
  196. package/src/components/Gabarito/styles.ts +23 -0
  197. package/src/components/Toast/Toast.tsx +61 -0
  198. package/src/components/WaitingForResult/index.tsx +22 -0
  199. package/src/components/WaitingForResult/styles.ts +27 -0
  200. package/src/index.tsx +6 -0
  201. package/src/screens/CadastroFinger/components/AjudaCadastro/index.tsx +49 -0
  202. package/src/screens/CadastroFinger/components/AjudaCadastro/styles.ts +56 -0
  203. package/src/screens/CadastroFinger/components/CameraCadastro/index.tsx +356 -0
  204. package/src/screens/CadastroFinger/components/CameraCadastro/styles.ts +47 -0
  205. package/src/screens/CadastroFinger/components/ImageDisplayScreen/index.tsx +45 -0
  206. package/src/screens/CadastroFinger/components/ImageDisplayScreen/styles.ts +55 -0
  207. package/src/screens/CadastroFinger/index.tsx +56 -0
  208. package/src/screens/CadastroScreen/CadastroScreen.tsx +212 -0
  209. package/src/screens/ProvaVidas/index.tsx +308 -0
  210. package/src/screens/ProvaVidas/styles.ts +99 -0
  211. package/src/screens/ValidadeFinger/index.tsx +263 -0
  212. package/src/screens/ValidadeFinger/styles.ts +47 -0
  213. package/src/services/index.ts +143 -0
  214. package/src/types/screen.ts +5 -0
  215. package/src/utils/file.ts +30 -0
  216. package/src/utils/getConfigCamera.ts +45 -0
  217. package/src/utils/index.ts +3 -0
@@ -0,0 +1,24 @@
1
+ export declare const styles: {
2
+ flexi: {
3
+ flex: number;
4
+ };
5
+ overlay: {
6
+ zIndex: number;
7
+ flex: number;
8
+ height: "100%";
9
+ width: "100%";
10
+ backgroundColor: string;
11
+ alignItems: "center";
12
+ justifyContent: "center";
13
+ position: "absolute";
14
+ };
15
+ textOverlay: {
16
+ fontSize: number;
17
+ fontWeight: "500";
18
+ color: string;
19
+ textAlign: "center";
20
+ width: number;
21
+ marginBottom: number;
22
+ };
23
+ };
24
+ //# sourceMappingURL=styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../src/components/WaitingForResult/styles.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;CAuBjB,CAAC"}
@@ -0,0 +1,5 @@
1
+ export { ValidaFinger } from './screens/ValidadeFinger';
2
+ export { CameraProvaVidas } from './screens/ProvaVidas';
3
+ export { CadastroFinger } from './screens/CadastroFinger';
4
+ export { CadastroScreen } from './screens/CadastroScreen/CadastroScreen';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAGxD,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAAE,cAAc,EAAE,MAAM,yCAAyC,CAAC"}
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ type AjudaCadastroProps = {
3
+ handleProximaTela: () => void;
4
+ };
5
+ export declare const AjudaCadastro: ({ handleProximaTela }: AjudaCadastroProps) => JSX.Element;
6
+ export {};
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/screens/CadastroFinger/components/AjudaCadastro/index.tsx"],"names":[],"mappings":";AAIA,KAAK,kBAAkB,GAAG;IACxB,iBAAiB,EAAE,MAAM,IAAI,CAAC;CAC/B,CAAC;AAEF,eAAO,MAAM,aAAa,0BAA2B,kBAAkB,gBAwCtE,CAAC"}
@@ -0,0 +1,55 @@
1
+ export declare const styles: {
2
+ container: {
3
+ flex: number;
4
+ justifyContent: "center";
5
+ backgroundColor: string;
6
+ gap: number;
7
+ };
8
+ containerImages: {
9
+ justifyContent: "center";
10
+ };
11
+ image: {
12
+ width: number;
13
+ height: number;
14
+ alignSelf: "center";
15
+ borderRadius: number;
16
+ };
17
+ arrow: {
18
+ position: "absolute";
19
+ width: number;
20
+ height: number;
21
+ marginHorizontal: number;
22
+ };
23
+ content: {
24
+ marginVertical: number;
25
+ marginHorizontal: number;
26
+ gap: number;
27
+ };
28
+ title: {
29
+ alignSelf: "center";
30
+ fontSize: number;
31
+ fontWeight: "bold";
32
+ marginVertical: number;
33
+ color: string;
34
+ };
35
+ text: {
36
+ fontSize: number;
37
+ textAlign: "center";
38
+ fontWeight: "normal" | "300";
39
+ marginVertical: number;
40
+ color: string;
41
+ };
42
+ button: {
43
+ width: "100%";
44
+ alignItems: "center";
45
+ marginTop: number;
46
+ padding: number;
47
+ borderRadius: number;
48
+ backgroundColor: string;
49
+ };
50
+ textButton: {
51
+ fontSize: number;
52
+ color: string;
53
+ };
54
+ };
55
+ //# sourceMappingURL=styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../../../src/screens/CadastroFinger/components/AjudaCadastro/styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqDjB,CAAC"}
@@ -0,0 +1,16 @@
1
+ import React from 'react';
2
+ import { type ModalProps } from 'react-native-modal';
3
+ import type { ScreenProps } from '../../../../types/screen';
4
+ interface CameraCadastroProps {
5
+ isVisible?: boolean;
6
+ onCloseModal?: () => void;
7
+ onError?: (response?: any) => void;
8
+ onSuccess?: (response?: any) => void;
9
+ screenProps?: ScreenProps;
10
+ onMaxAttempts?: () => void;
11
+ maxAttempts?: number;
12
+ ModalParams?: ModalProps;
13
+ }
14
+ export declare const CameraCadastro: React.FC<CameraCadastroProps>;
15
+ export {};
16
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/screens/CadastroFinger/components/CameraCadastro/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmD,MAAM,OAAO,CAAC;AAQxE,OAAc,EAAE,KAAK,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAc5D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAU5D,UAAU,mBAAmB;IAC3B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IAC1B,OAAO,CAAC,EAAE,CAAC,QAAQ,CAAC,EAAE,GAAG,KAAK,IAAI,CAAC;IACnC,SAAS,CAAC,EAAE,CAAC,QAAQ,CAAC,EAAE,GAAG,KAAK,IAAI,CAAC;IACrC,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,UAAU,CAAC;CAC1B;AAaD,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CA6SxD,CAAC"}
@@ -0,0 +1,44 @@
1
+ export declare const styles: {
2
+ container: {
3
+ flex: number;
4
+ };
5
+ root: {
6
+ flex: number;
7
+ };
8
+ cameraContainer: {
9
+ flex: number;
10
+ };
11
+ camera: {
12
+ flex: number;
13
+ justifyContent: "flex-end";
14
+ paddingBottom: number;
15
+ };
16
+ containerCapture: {
17
+ height: number;
18
+ alignItems: "center";
19
+ justifyContent: "center";
20
+ };
21
+ modal: {
22
+ margin: number;
23
+ };
24
+ containerButton: {
25
+ width: number;
26
+ height: number;
27
+ borderRadius: number;
28
+ backgroundColor: string;
29
+ alignItems: "center";
30
+ justifyContent: "center";
31
+ };
32
+ textButton: {
33
+ fontSize: number;
34
+ fontWeight: "500";
35
+ color: string;
36
+ };
37
+ containerButtonClose: {
38
+ marginBottom: number;
39
+ };
40
+ cameraConfigs: {
41
+ alignItems: "center";
42
+ };
43
+ };
44
+ //# sourceMappingURL=styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../../../src/screens/CadastroFinger/components/CameraCadastro/styles.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0CjB,CAAC"}
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ import type { ScreenProps } from '../../../../types/screen';
3
+ interface ImageDisplayScreenProps {
4
+ isVisible?: boolean;
5
+ onCloseModal?: () => void;
6
+ onError?: (response?: any) => void;
7
+ onSuccess?: (response?: any) => void;
8
+ screenProps?: ScreenProps;
9
+ }
10
+ export declare const ImageDisplayScreen: React.FC<ImageDisplayScreenProps>;
11
+ export {};
12
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/screens/CadastroFinger/components/ImageDisplayScreen/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAE5D,UAAU,uBAAuB;IAC/B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IAC1B,OAAO,CAAC,EAAE,CAAC,QAAQ,CAAC,EAAE,GAAG,KAAK,IAAI,CAAC;IACnC,SAAS,CAAC,EAAE,CAAC,QAAQ,CAAC,EAAE,GAAG,KAAK,IAAI,CAAC;IACrC,WAAW,CAAC,EAAE,WAAW,CAAC;CAC3B;AAED,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,uBAAuB,CA+BhE,CAAC"}
@@ -0,0 +1,54 @@
1
+ export declare const styles: {
2
+ container: {
3
+ paddingBottom: number;
4
+ flex: number;
5
+ backgroundColor: string;
6
+ };
7
+ imageContainer: {
8
+ marginBottom: number;
9
+ alignItems: "center";
10
+ justifyContent: "center";
11
+ };
12
+ image: {
13
+ width: "100%";
14
+ height: "90%";
15
+ aspectRatio: number;
16
+ resizeMode: "contain";
17
+ };
18
+ imageText: {
19
+ marginTop: number;
20
+ fontSize: number;
21
+ fontWeight: "bold";
22
+ };
23
+ buttonContainer: {
24
+ marginBottom: number;
25
+ alignItems: "center";
26
+ };
27
+ additionalGraphics: {
28
+ width: "100%";
29
+ height: number;
30
+ backgroundColor: string;
31
+ position: "absolute";
32
+ alignSelf: "center";
33
+ marginTop: "35%";
34
+ alignItems: "center";
35
+ justifyContent: "center";
36
+ };
37
+ graphicElement1: {
38
+ width: number;
39
+ height: number;
40
+ backgroundColor: string;
41
+ borderWidth: number;
42
+ borderColor: string;
43
+ marginLeft: number;
44
+ borderTopLeftRadius: number;
45
+ borderBottomLeftRadius: number;
46
+ borderTopRightRadius: number;
47
+ borderBottomRightRadius: number;
48
+ transform: {
49
+ scaleX: number;
50
+ }[];
51
+ };
52
+ graphicElement2: {};
53
+ };
54
+ //# sourceMappingURL=styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../../../src/screens/CadastroFinger/components/ImageDisplayScreen/styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoDjB,CAAC"}
@@ -0,0 +1,16 @@
1
+ import React from 'react';
2
+ import { type ModalProps } from 'react-native-modal';
3
+ import type { ScreenProps } from '../../types/screen';
4
+ interface CadastroFingerProps {
5
+ isVisible: boolean;
6
+ onCloseModal?: () => void;
7
+ onError?: (response?: any) => void;
8
+ onSuccess?: (response?: any) => void;
9
+ ModalParams?: ModalProps;
10
+ screenProps?: ScreenProps;
11
+ onMaxAttempts?: () => void;
12
+ maxAttempts?: number;
13
+ }
14
+ export declare const CadastroFinger: React.FC<CadastroFingerProps>;
15
+ export {};
16
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/screens/CadastroFinger/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAc,EAAE,KAAK,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAC5D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEtD,UAAU,mBAAmB;IAC3B,SAAS,EAAE,OAAO,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IAC1B,OAAO,CAAC,EAAE,CAAC,QAAQ,CAAC,EAAE,GAAG,KAAK,IAAI,CAAC;IACnC,SAAS,CAAC,EAAE,CAAC,QAAQ,CAAC,EAAE,GAAG,KAAK,IAAI,CAAC;IACrC,WAAW,CAAC,EAAE,UAAU,CAAC;IACzB,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3B,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAuCxD,CAAC"}
@@ -0,0 +1,14 @@
1
+ import React from 'react';
2
+ import { type ModalProps } from 'react-native-modal';
3
+ import type { ScreenProps } from '../../types/screen';
4
+ interface CadastroScreenProps {
5
+ isVisible: boolean;
6
+ onCloseModal?: () => void;
7
+ onError?: (response?: any) => void;
8
+ onSuccess?: (response?: any) => void;
9
+ ModalParams?: ModalProps;
10
+ screenProps?: ScreenProps;
11
+ }
12
+ export declare const CadastroScreen: React.FC<CadastroScreenProps>;
13
+ export {};
14
+ //# sourceMappingURL=CadastroScreen.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CadastroScreen.d.ts","sourceRoot":"","sources":["../../../../../src/screens/CadastroScreen/CadastroScreen.tsx"],"names":[],"mappings":"AACA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAWnD,OAAc,EAAE,KAAK,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAE5D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEtD,UAAU,mBAAmB;IAC3B,SAAS,EAAE,OAAO,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IAC1B,OAAO,CAAC,EAAE,CAAC,QAAQ,CAAC,EAAE,GAAG,KAAK,IAAI,CAAC;IACnC,SAAS,CAAC,EAAE,CAAC,QAAQ,CAAC,EAAE,GAAG,KAAK,IAAI,CAAC;IACrC,WAAW,CAAC,EAAE,UAAU,CAAC;IACzB,WAAW,CAAC,EAAE,WAAW,CAAC;CAC3B;AAED,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAgJxD,CAAC"}
@@ -0,0 +1,14 @@
1
+ import React from 'react';
2
+ import { type ModalProps } from 'react-native-modal';
3
+ import type { ScreenProps } from '../../types/screen';
4
+ interface CameraProvaVidasProps {
5
+ isVisible: boolean;
6
+ onCloseModal?: () => void;
7
+ onError?: (response?: any) => void;
8
+ onSuccess?: (response?: any) => void;
9
+ ModalParams?: ModalProps;
10
+ screenProps?: ScreenProps;
11
+ }
12
+ export declare const CameraProvaVidas: React.FC<CameraProvaVidasProps>;
13
+ export {};
14
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/screens/ProvaVidas/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAmD,MAAM,OAAO,CAAC;AAQxE,OAAc,EAAE,KAAK,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAK5D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAWtD,UAAU,qBAAqB;IAC7B,SAAS,EAAE,OAAO,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IAC1B,OAAO,CAAC,EAAE,CAAC,QAAQ,CAAC,EAAE,GAAG,KAAK,IAAI,CAAC;IACnC,SAAS,CAAC,EAAE,CAAC,QAAQ,CAAC,EAAE,GAAG,KAAK,IAAI,CAAC;IACrC,WAAW,CAAC,EAAE,UAAU,CAAC;IACzB,WAAW,CAAC,EAAE,WAAW,CAAC;CAC3B;AAaD,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CAsQ5D,CAAC"}
@@ -0,0 +1,85 @@
1
+ export declare const styles: {
2
+ container: {
3
+ flex: number;
4
+ };
5
+ subContainer: {
6
+ flex: number;
7
+ };
8
+ image: {
9
+ width: number;
10
+ height: number;
11
+ };
12
+ modalImage: {
13
+ width: "100%";
14
+ height: "100%";
15
+ resizeMode: "contain";
16
+ };
17
+ overlay: {
18
+ zIndex: number;
19
+ flex: number;
20
+ height: "100%";
21
+ width: "100%";
22
+ backgroundColor: string;
23
+ alignItems: "center";
24
+ justifyContent: "center";
25
+ position: "absolute";
26
+ };
27
+ textOverlay: {
28
+ fontSize: number;
29
+ fontWeight: "500";
30
+ color: string;
31
+ textAlign: "center";
32
+ width: number;
33
+ marginBottom: number;
34
+ };
35
+ closeButton: {
36
+ position: "absolute";
37
+ top: number;
38
+ right: number;
39
+ };
40
+ closeIcon: {
41
+ width: number;
42
+ height: number;
43
+ };
44
+ containerCamera: {
45
+ flex: number;
46
+ };
47
+ cameraView: {
48
+ width: "100%";
49
+ height: number;
50
+ backgroundColor: string;
51
+ position: "absolute";
52
+ alignSelf: "center";
53
+ marginTop: number;
54
+ alignItems: "center";
55
+ justifyContent: "center";
56
+ };
57
+ containerTouch: {
58
+ height: number;
59
+ alignItems: "center";
60
+ };
61
+ containerText: {
62
+ width: number;
63
+ height: number;
64
+ borderRadius: number;
65
+ backgroundColor: string;
66
+ alignItems: "center";
67
+ justifyContent: "center";
68
+ marginTop: number;
69
+ };
70
+ textRecording: {
71
+ fontSize: number;
72
+ fontWeight: "500";
73
+ color: string;
74
+ };
75
+ containerTextExposureAndZoom: {};
76
+ textExposureAndZoom: {
77
+ fontSize: number;
78
+ fontWeight: "500";
79
+ color: string;
80
+ textAlign: "center";
81
+ width: number;
82
+ marginBottom: number;
83
+ };
84
+ };
85
+ //# sourceMappingURL=styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../src/screens/ProvaVidas/styles.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+FjB,CAAC"}
@@ -0,0 +1,14 @@
1
+ import React from 'react';
2
+ import { type ModalProps } from 'react-native-modal';
3
+ import type { ScreenProps } from '../../types/screen';
4
+ interface ValidaFingerProps {
5
+ isVisible: boolean;
6
+ ModalParams?: ModalProps;
7
+ screenProps?: ScreenProps;
8
+ onCloseModal?: () => void;
9
+ onError?: (response?: any) => void;
10
+ onSuccess?: (response?: any) => void;
11
+ }
12
+ export declare const ValidaFinger: React.FC<ValidaFingerProps>;
13
+ export {};
14
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/screens/ValidadeFinger/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmD,MAAM,OAAO,CAAC;AAQxE,OAAc,EAAE,KAAK,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAW5D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAStD,UAAU,iBAAiB;IACzB,SAAS,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,UAAU,CAAC;IACzB,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IAC1B,OAAO,CAAC,EAAE,CAAC,QAAQ,CAAC,EAAE,GAAG,KAAK,IAAI,CAAC;IACnC,SAAS,CAAC,EAAE,CAAC,QAAQ,CAAC,EAAE,GAAG,KAAK,IAAI,CAAC;CACtC;AAaD,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAsNpD,CAAC"}
@@ -0,0 +1,44 @@
1
+ export declare const styles: {
2
+ container: {
3
+ flex: number;
4
+ };
5
+ root: {
6
+ flex: number;
7
+ };
8
+ cameraContainer: {
9
+ flex: number;
10
+ };
11
+ camera: {
12
+ flex: number;
13
+ justifyContent: "flex-end";
14
+ paddingBottom: number;
15
+ };
16
+ containerCapture: {
17
+ height: number;
18
+ alignItems: "center";
19
+ justifyContent: "center";
20
+ };
21
+ containerButton: {
22
+ width: number;
23
+ height: number;
24
+ borderRadius: number;
25
+ backgroundColor: string;
26
+ alignItems: "center";
27
+ justifyContent: "center";
28
+ };
29
+ textButton: {
30
+ fontSize: number;
31
+ fontWeight: "500";
32
+ color: string;
33
+ };
34
+ modal: {
35
+ margin: number;
36
+ };
37
+ containerButtonClose: {
38
+ marginBottom: number;
39
+ };
40
+ cameraConfigs: {
41
+ alignItems: "center";
42
+ };
43
+ };
44
+ //# sourceMappingURL=styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../src/screens/ValidadeFinger/styles.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0CjB,CAAC"}
@@ -0,0 +1,21 @@
1
+ export declare const login: (cpf: any, senha: any) => Promise<any>;
2
+ export declare const cadastro: (cpf: string, name: string, senha: string) => Promise<any>;
3
+ export declare const sendImages: (UID: any, finger: any, images: any) => Promise<any>;
4
+ export declare const verifyDigital: (UID: any, finger: any, image: any) => Promise<any>;
5
+ type GetConfigApi = {
6
+ id: number;
7
+ deviceModels: string[];
8
+ deviceType: string;
9
+ fps: number;
10
+ exposure: number;
11
+ zoom: number;
12
+ serviceType: string;
13
+ showButtonInfo: boolean;
14
+ }[];
15
+ export declare const getConfigsApi: () => Promise<GetConfigApi>;
16
+ export declare const verificaCPF: (cpf: any) => Promise<any>;
17
+ export declare const provaVida: (video: {
18
+ path: any;
19
+ }, UID: string, vlexposure: any) => Promise<any>;
20
+ export {};
21
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/services/index.ts"],"names":[],"mappings":"AAgBA,eAAO,MAAM,KAAK,QAAe,GAAG,SAAS,GAAG,iBAQ/C,CAAC;AAEF,eAAO,MAAM,QAAQ,QAAe,MAAM,QAAQ,MAAM,SAAS,MAAM,iBAQtE,CAAC;AAEF,eAAO,MAAM,UAAU,QAAe,GAAG,UAAU,GAAG,UAAU,GAAG,iBAQlE,CAAC;AAEF,eAAO,MAAM,aAAa,QAAe,GAAG,UAAU,GAAG,SAAS,GAAG,iBAQpE,CAAC;AAEF,KAAK,YAAY,GAAG;IAClB,EAAE,EAAE,MAAM,CAAC;IACX,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,UAAU,EAAE,MAAM,CAAC;IACnB,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE,OAAO,CAAC;CACzB,EAAE,CAAC;AAEJ,eAAO,MAAM,aAAa,QAAa,QAAQ,YAAY,CAQ1D,CAAC;AAEF,eAAO,MAAM,WAAW,QAAe,GAAG,iBAQzC,CAAC;AAEF,eAAO,MAAM,SAAS,UACb;IAAE,IAAI,EAAE,GAAG,CAAA;CAAE,OACf,MAAM,cACC,GAAG,iBAqChB,CAAC"}
@@ -0,0 +1,6 @@
1
+ export interface ScreenProps {
2
+ id?: string;
3
+ cpf?: string;
4
+ base64Image?: string;
5
+ }
6
+ //# sourceMappingURL=screen.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"screen.d.ts","sourceRoot":"","sources":["../../../../src/types/screen.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,WAAW;IAC1B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB"}
@@ -0,0 +1,3 @@
1
+ export declare const encodeImageToBase64: (imagePath: string) => Promise<string | null>;
2
+ export declare const validarBase64: (array: string | any[]) => boolean;
3
+ //# sourceMappingURL=file.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"file.d.ts","sourceRoot":"","sources":["../../../../src/utils/file.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,mBAAmB,cAAqB,MAAM,2BAO1D,CAAC;AAEF,eAAO,MAAM,aAAa,UAAW,MAAM,GAAG,GAAG,EAAE,YAkBlD,CAAC"}
@@ -0,0 +1,14 @@
1
+ type ServiceType = 'finger' | 'liveness';
2
+ type GetConfigCameraReturn = {
3
+ id: number;
4
+ deviceModels: string[];
5
+ deviceType: string;
6
+ fps: number;
7
+ exposure: number;
8
+ zoom: number;
9
+ serviceType: string;
10
+ showButtonInfo: boolean;
11
+ } | undefined;
12
+ declare const getConfigCamera: (serviceType: ServiceType) => Promise<GetConfigCameraReturn>;
13
+ export default getConfigCamera;
14
+ //# sourceMappingURL=getConfigCamera.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getConfigCamera.d.ts","sourceRoot":"","sources":["../../../../src/utils/getConfigCamera.ts"],"names":[],"mappings":"AAIA,KAAK,WAAW,GAAG,QAAQ,GAAG,UAAU,CAAC;AAEzC,KAAK,qBAAqB,GACtB;IACE,EAAE,EAAE,MAAM,CAAC;IACX,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,UAAU,EAAE,MAAM,CAAC;IACnB,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE,OAAO,CAAC;CACzB,GACD,SAAS,CAAC;AAEd,QAAA,MAAM,eAAe,gBACN,WAAW,KACvB,QAAQ,qBAAqB,CAqB/B,CAAC;AAEF,eAAe,eAAe,CAAC"}
@@ -0,0 +1,3 @@
1
+ import getConfigCamera from './getConfigCamera';
2
+ export { getConfigCamera };
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,eAAe,MAAM,mBAAmB,CAAC;AAEhD,OAAO,EAAE,eAAe,EAAE,CAAC"}
@@ -0,0 +1,41 @@
1
+ require "json"
2
+
3
+ package = JSON.parse(File.read(File.join(__dir__, "package.json")))
4
+ folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -Wno-comma -Wno-shorten-64-to-32'
5
+
6
+ Pod::Spec.new do |s|
7
+ s.name = package["name"]
8
+ s.version = package["version"]
9
+ s.summary = package["description"]
10
+ s.homepage = package["homepage"]
11
+ s.license = package["license"]
12
+ s.authors = package["author"]
13
+
14
+ s.platforms = { :ios => "11.0" }
15
+ s.source = { :git => package["repository"], :tag => "v#{s.version}" }
16
+
17
+ s.source_files = "ios/**/*.{h,m,mm,swift}"
18
+
19
+ # Use install_modules_dependencies helper to install the dependencies if React Native version >=0.71.0.
20
+ # See https://github.com/facebook/react-native/blob/febf6b7f33fdb4904669f99d795eba4c0f95d7bf/scripts/cocoapods/new_architecture.rb#L79.
21
+ if respond_to?(:install_modules_dependencies, true)
22
+ install_modules_dependencies(s)
23
+ else
24
+ s.dependency "React-Core"
25
+
26
+ # Don't install the dependencies when we run `pod install` in the old architecture.
27
+ if ENV['RCT_NEW_ARCH_ENABLED'] == '1' then
28
+ s.compiler_flags = folly_compiler_flags + " -DRCT_NEW_ARCH_ENABLED=1"
29
+ s.pod_target_xcconfig = {
30
+ "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/boost\"",
31
+ "OTHER_CPLUSPLUSFLAGS" => "-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1",
32
+ "CLANG_CXX_LANGUAGE_STANDARD" => "c++17"
33
+ }
34
+ s.dependency "React-Codegen"
35
+ s.dependency "RCT-Folly"
36
+ s.dependency "RCTRequired"
37
+ s.dependency "RCTTypeSafety"
38
+ s.dependency "ReactCommon/turbomodule/core"
39
+ end
40
+ end
41
+ end