react-native-kalapa-ekyc 1.1.1 → 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 +19 -1
- package/android/build.gradle +1 -3
- package/android/src/main/java/com/reactnativekalapaekyc/KalapaEkycModule.java +2 -1
- package/package.json +1 -1
- package/lib/commonjs/index.js +0 -38
- package/lib/commonjs/index.js.map +0 -1
- package/lib/module/index.js +0 -32
- package/lib/module/index.js.map +0 -1
- package/lib/typescript/babel.config.d.ts +0 -1
- package/lib/typescript/lib/commonjs/index.d.ts +0 -3
- package/lib/typescript/lib/module/index.d.ts +0 -2
- package/lib/typescript/scripts/bootstrap.d.ts +0 -1
- package/lib/typescript/src/index.d.ts +0 -2
package/README.md
CHANGED
|
@@ -174,4 +174,22 @@ MIT
|
|
|
174
174
|
|
|
175
175
|
## Support
|
|
176
176
|
|
|
177
|
-
For support, please contact [support@kalapa.vn](mailto:support@kalapa.vn) or visit our [documentation](https://docs.kalapa.vn).
|
|
177
|
+
For support, please contact [support@kalapa.vn](mailto:support@kalapa.vn) or visit our [documentation](https://docs.kalapa.vn).
|
|
178
|
+
|
|
179
|
+
## Changelog
|
|
180
|
+
** 1.0.7
|
|
181
|
+
- General: Apply new flow for both Android & iOS
|
|
182
|
+
- iOS: UI & UX optimization
|
|
183
|
+
- Android: UI & UX optimization
|
|
184
|
+
** 1.1.0
|
|
185
|
+
- Android: Support target version sdk 35 & edge to edge
|
|
186
|
+
- Android: Support base64 library
|
|
187
|
+
- UI & UX optimize
|
|
188
|
+
** 1.1.1
|
|
189
|
+
- Android: Remove unnecesary jcenter
|
|
190
|
+
** 1.1.2
|
|
191
|
+
- Android: Remove unnecesary jitpack.io
|
|
192
|
+
- Android: Update animation avoid gif
|
|
193
|
+
- Stable version
|
|
194
|
+
** 1.1.3
|
|
195
|
+
- Android: Remove gif dependencies to sastify the google play requirement (16KB pages size)
|
package/android/build.gradle
CHANGED
|
@@ -3,7 +3,6 @@ buildscript {
|
|
|
3
3
|
repositories {
|
|
4
4
|
google()
|
|
5
5
|
mavenCentral()
|
|
6
|
-
maven { uri 'https://www.jitpack.io'}
|
|
7
6
|
}
|
|
8
7
|
|
|
9
8
|
dependencies {
|
|
@@ -49,12 +48,11 @@ repositories {
|
|
|
49
48
|
}
|
|
50
49
|
google()
|
|
51
50
|
mavenCentral()
|
|
52
|
-
maven { uri 'https://www.jitpack.io'}
|
|
53
51
|
}
|
|
54
52
|
|
|
55
53
|
dependencies {
|
|
56
54
|
//noinspection GradleDynamicVersion
|
|
57
55
|
implementation "com.facebook.react:react-native:+" // From node_modules
|
|
58
56
|
//kalapasdk
|
|
59
|
-
implementation 'vn.kalapa.payme:ekyc:2.10.9.
|
|
57
|
+
implementation 'vn.kalapa.payme:ekyc:2.10.9.5'
|
|
60
58
|
}
|
|
@@ -56,6 +56,7 @@ public class KalapaEkycModule extends ReactContextBaseJavaModule {
|
|
|
56
56
|
String btnTextColor = data.getString("btn_text_color") != null ? data.getString("btn_text_color") : "#FFFFFF";
|
|
57
57
|
String language = data.getString("language") != null ? data.getString("language") : "en";
|
|
58
58
|
int livenessVersion = data.getInt("liveness_version");
|
|
59
|
+
|
|
59
60
|
|
|
60
61
|
String faceData = data.getString("face_data") != null ? data.getString("face_data") : "";
|
|
61
62
|
String mrzData = data.getString("mrz") != null ? data.getString("mrz") : "";
|
|
@@ -71,7 +72,7 @@ public class KalapaEkycModule extends ReactContextBaseJavaModule {
|
|
|
71
72
|
.withBtnTextColor(btnTextColor)
|
|
72
73
|
.withLanguage(language)
|
|
73
74
|
.withLivenessVersion(livenessVersion).build();
|
|
74
|
-
|
|
75
|
+
System.out.println("KLP KalapaSDKConfig: " + klpConfig.getLivenessVersion());
|
|
75
76
|
KalapaSDK.KalapaSDKBuilder builder = new KalapaSDK.KalapaSDKBuilder(getCurrentActivity(), klpConfig);
|
|
76
77
|
if (faceData != null && !faceData.isEmpty()) builder.withFaceData(faceData);
|
|
77
78
|
if (mrzData != null && !mrzData.isEmpty()) builder.withMrz(mrzData);
|
package/package.json
CHANGED
package/lib/commonjs/index.js
DELETED
|
@@ -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":[]}
|
package/lib/module/index.js
DELETED
|
@@ -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
|
package/lib/module/index.js.map
DELETED
|
@@ -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 +0,0 @@
|
|
|
1
|
-
export {};
|