react-native-kalapa-ekyc 1.1.2 → 1.1.3

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
@@ -190,4 +190,6 @@ For support, please contact [support@kalapa.vn](mailto:support@kalapa.vn) or vis
190
190
  ** 1.1.2
191
191
  - Android: Remove unnecesary jitpack.io
192
192
  - Android: Update animation avoid gif
193
- - Stable version
193
+ - Stable version
194
+ ** 1.1.3
195
+ - Android: Remove gif dependencies to sastify the google play requirement (16KB pages size)
@@ -54,5 +54,5 @@ dependencies {
54
54
  //noinspection GradleDynamicVersion
55
55
  implementation "com.facebook.react:react-native:+" // From node_modules
56
56
  //kalapasdk
57
- implementation 'vn.kalapa.payme:ekyc:2.10.9.4'
57
+ implementation 'vn.kalapa.payme:ekyc:2.10.9.5'
58
58
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-kalapa-ekyc",
3
- "version": "1.1.2",
3
+ "version": "1.1.3",
4
4
  "description": "React Native SDK for Kalapa eKYC integration",
5
5
  "main": "lib/commonjs/index.js",
6
6
  "module": "lib/module/index.js",
@@ -1,38 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
- var _reactNative = require("react-native");
8
- const {
9
- KalapaEkyc
10
- } = _reactNative.NativeModules;
11
-
12
- // export default KalapaEkyc;
13
-
14
- // Define types for better TypeScript support
15
-
16
- // Extend the native module
17
- const ExtendedKalapaEkyc = {
18
- ...KalapaEkyc,
19
- start: async (session, flow, config) => {
20
- try {
21
- // Call original native method
22
- const result = await KalapaEkyc.start(session, flow, config);
23
-
24
- // Parse the result
25
- const parsedResult = JSON.parse(result.kalapa_result);
26
-
27
- // Return enhanced result with WebView capability
28
- return {
29
- ...result,
30
- kalapa_result: parsedResult
31
- };
32
- } catch (error) {
33
- throw error;
34
- }
35
- }
36
- };
37
- var _default = exports.default = ExtendedKalapaEkyc;
38
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_reactNative","require","KalapaEkyc","NativeModules","ExtendedKalapaEkyc","start","session","flow","config","result","parsedResult","JSON","parse","kalapa_result","error","_default","exports","default"],"sources":["index.tsx"],"sourcesContent":["import { NativeModules } from 'react-native';\n\nconst { KalapaEkyc } = NativeModules;\n\n// export default KalapaEkyc;\n\n// Define types for better TypeScript support\ninterface KalapaResult {\n kalapa_result: string;\n session?: string;\n [key: string]: any;\n }\n \n // Extend the native module\n const ExtendedKalapaEkyc = {\n ...KalapaEkyc,\n \n start: async (session: string, flow: string, config: any): Promise<KalapaResult & { showWebView: () => Promise<void> }> => {\n try {\n // Call original native method\n const result = await KalapaEkyc.start(session, flow, config);\n \n // Parse the result\n const parsedResult = JSON.parse(result.kalapa_result);\n \n // Return enhanced result with WebView capability\n return {\n ...result,\n kalapa_result: parsedResult,\n };\n } catch (error) {\n throw error;\n }\n }\n };\n\nexport default ExtendedKalapaEkyc;\n"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAEA,MAAM;EAAEC;AAAW,CAAC,GAAGC,0BAAa;;AAEpC;;AAEA;;AAOE;AACA,MAAMC,kBAAkB,GAAG;EACzB,GAAGF,UAAU;EAEbG,KAAK,EAAE,MAAAA,CAAOC,OAAe,EAAEC,IAAY,EAAEC,MAAW,KAAmE;IACzH,IAAI;MACF;MACA,MAAMC,MAAM,GAAG,MAAMP,UAAU,CAACG,KAAK,CAACC,OAAO,EAAEC,IAAI,EAAEC,MAAM,CAAC;;MAE5D;MACA,MAAME,YAAY,GAAGC,IAAI,CAACC,KAAK,CAACH,MAAM,CAACI,aAAa,CAAC;;MAErD;MACA,OAAO;QACL,GAAGJ,MAAM;QACTI,aAAa,EAAEH;MACjB,CAAC;IACH,CAAC,CAAC,OAAOI,KAAK,EAAE;MACd,MAAMA,KAAK;IACb;EACF;AACF,CAAC;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAEWb,kBAAkB","ignoreList":[]}
@@ -1,32 +0,0 @@
1
- import { NativeModules } from 'react-native';
2
- const {
3
- KalapaEkyc
4
- } = NativeModules;
5
-
6
- // export default KalapaEkyc;
7
-
8
- // Define types for better TypeScript support
9
-
10
- // Extend the native module
11
- const ExtendedKalapaEkyc = {
12
- ...KalapaEkyc,
13
- start: async (session, flow, config) => {
14
- try {
15
- // Call original native method
16
- const result = await KalapaEkyc.start(session, flow, config);
17
-
18
- // Parse the result
19
- const parsedResult = JSON.parse(result.kalapa_result);
20
-
21
- // Return enhanced result with WebView capability
22
- return {
23
- ...result,
24
- kalapa_result: parsedResult
25
- };
26
- } catch (error) {
27
- throw error;
28
- }
29
- }
30
- };
31
- export default ExtendedKalapaEkyc;
32
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["NativeModules","KalapaEkyc","ExtendedKalapaEkyc","start","session","flow","config","result","parsedResult","JSON","parse","kalapa_result","error"],"sources":["index.tsx"],"sourcesContent":["import { NativeModules } from 'react-native';\n\nconst { KalapaEkyc } = NativeModules;\n\n// export default KalapaEkyc;\n\n// Define types for better TypeScript support\ninterface KalapaResult {\n kalapa_result: string;\n session?: string;\n [key: string]: any;\n }\n \n // Extend the native module\n const ExtendedKalapaEkyc = {\n ...KalapaEkyc,\n \n start: async (session: string, flow: string, config: any): Promise<KalapaResult & { showWebView: () => Promise<void> }> => {\n try {\n // Call original native method\n const result = await KalapaEkyc.start(session, flow, config);\n \n // Parse the result\n const parsedResult = JSON.parse(result.kalapa_result);\n \n // Return enhanced result with WebView capability\n return {\n ...result,\n kalapa_result: parsedResult,\n };\n } catch (error) {\n throw error;\n }\n }\n };\n\nexport default ExtendedKalapaEkyc;\n"],"mappings":"AAAA,SAASA,aAAa,QAAQ,cAAc;AAE5C,MAAM;EAAEC;AAAW,CAAC,GAAGD,aAAa;;AAEpC;;AAEA;;AAOE;AACA,MAAME,kBAAkB,GAAG;EACzB,GAAGD,UAAU;EAEbE,KAAK,EAAE,MAAAA,CAAOC,OAAe,EAAEC,IAAY,EAAEC,MAAW,KAAmE;IACzH,IAAI;MACF;MACA,MAAMC,MAAM,GAAG,MAAMN,UAAU,CAACE,KAAK,CAACC,OAAO,EAAEC,IAAI,EAAEC,MAAM,CAAC;;MAE5D;MACA,MAAME,YAAY,GAAGC,IAAI,CAACC,KAAK,CAACH,MAAM,CAACI,aAAa,CAAC;;MAErD;MACA,OAAO;QACL,GAAGJ,MAAM;QACTI,aAAa,EAAEH;MACjB,CAAC;IACH,CAAC,CAAC,OAAOI,KAAK,EAAE;MACd,MAAMA,KAAK;IACb;EACF;AACF,CAAC;AAEH,eAAeV,kBAAkB","ignoreList":[]}
@@ -1 +0,0 @@
1
- export const presets: string[];
@@ -1,3 +0,0 @@
1
- export const __esModule: boolean;
2
- export default ExtendedKalapaEkyc;
3
- declare const ExtendedKalapaEkyc: any;
@@ -1,2 +0,0 @@
1
- export default ExtendedKalapaEkyc;
2
- declare const ExtendedKalapaEkyc: any;
@@ -1 +0,0 @@
1
- export {};
@@ -1,2 +0,0 @@
1
- declare const ExtendedKalapaEkyc: any;
2
- export default ExtendedKalapaEkyc;