react-native-kalapa-ekyc 1.2.6 → 1.2.8
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
|
@@ -3,6 +3,11 @@
|
|
|
3
3
|
Complete guide for integrating Kalapa eKYC functionality into your React Native applications.
|
|
4
4
|
---
|
|
5
5
|
## Changelog
|
|
6
|
+
### 1.2.7
|
|
7
|
+
- **Android**: Update stable version for NFC step.
|
|
8
|
+
### 1.2.7
|
|
9
|
+
- **Android**: Update config to scan QR code or not.
|
|
10
|
+
- **React-Native**: Introduce config require_qr in AppConfig
|
|
6
11
|
### 1.2.6
|
|
7
12
|
- **Android**: Minor update, UI / UX optimize. Stable version
|
|
8
13
|
### 1.2.5
|
|
@@ -101,7 +106,7 @@ Add to your `app/package.json`:
|
|
|
101
106
|
|
|
102
107
|
```json
|
|
103
108
|
"dependencies": {
|
|
104
|
-
"react-native-kalapa-ekyc": "^1.2.
|
|
109
|
+
"react-native-kalapa-ekyc": "^1.2.8"
|
|
105
110
|
}
|
|
106
111
|
```
|
|
107
112
|
|
|
@@ -170,7 +175,8 @@ let configInfo = {
|
|
|
170
175
|
mrz: <INPUT_MRZ>,
|
|
171
176
|
qr_code: <INPUT_QR_CODE>,
|
|
172
177
|
allow_mrz_rescan_on_nfc_mismatch: <ALLOW_MRZ_RESCAN_ON_NFC_MISMATCH>,
|
|
173
|
-
with_confirm_screen: <WITH_CONFIRM_SCREEN
|
|
178
|
+
with_confirm_screen: <WITH_CONFIRM_SCREEN>,
|
|
179
|
+
require_qr: <REQUIRE_QR>
|
|
174
180
|
}
|
|
175
181
|
```
|
|
176
182
|
|
|
@@ -192,7 +198,7 @@ let configInfo = {
|
|
|
192
198
|
| `INPUT_QR_CODE` | String | Pre-filled QR code. If valid, skips QR scan step. Invalid input throws `INVALID_QR` error |
|
|
193
199
|
| `ALLOW_MRZ_RESCAN_ON_NFC_MISMATCH` | Boolean | If `true`, allows user to rescan MRZ when chip data doesn't match input MRZ |
|
|
194
200
|
| `WITH_CONFIRM_SCREEN` | Boolean | If `true`, allows user to enter confirm step |
|
|
195
|
-
|
|
201
|
+
| `REQUIRE_QR` | Boolean | If `true`, SDK will scan for QR Code and may reduce the MRZ step when enter the NFC step. |
|
|
196
202
|
---
|
|
197
203
|
|
|
198
204
|
### 3. Define the SDK Flow
|
package/android/build.gradle
CHANGED
|
@@ -65,6 +65,7 @@ public class KalapaEkycModule extends ReactContextBaseJavaModule {
|
|
|
65
65
|
String sessionId = data.getString("session_id") != null ? data.getString("session_id") : "";
|
|
66
66
|
boolean allowMrzRescanOnNfcMismatch = data.getBoolean("allow_mrz_rescan_on_nfc_mismatch");
|
|
67
67
|
boolean withConfirmScreen = data.getBoolean("with_confirm_screen");
|
|
68
|
+
boolean requireQr = data.getBoolean("require_qr");
|
|
68
69
|
Context context = getReactApplicationContext();
|
|
69
70
|
if (getCurrentActivity() != null) {
|
|
70
71
|
KalapaSDKConfig klpConfig = new KalapaSDKConfig.KalapaSDKConfigBuilder(getCurrentActivity())
|
|
@@ -77,8 +78,9 @@ public class KalapaEkycModule extends ReactContextBaseJavaModule {
|
|
|
77
78
|
.withBtnTextColor(btnTextColor)
|
|
78
79
|
.withLanguage(language)
|
|
79
80
|
.withLivenessVersion(livenessVersion)
|
|
80
|
-
.skipConfirm(!withConfirmScreen)
|
|
81
81
|
.withAllowMRZRescanOnNFCMismatch(allowMrzRescanOnNfcMismatch)
|
|
82
|
+
.skipConfirm(!withConfirmScreen)
|
|
83
|
+
.requireQRCode(requireQr)
|
|
82
84
|
.build();
|
|
83
85
|
|
|
84
86
|
KalapaSDK.KalapaSDKBuilder builder = new KalapaSDK.KalapaSDKBuilder(getCurrentActivity(), klpConfig);
|