react-native-kalapa-ekyc 1.2.5 → 1.2.7
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 config to scan QR code or not.
|
|
8
|
+
- **Android**: Introduce config require_qr in AppConfig
|
|
9
|
+
### 1.2.6
|
|
10
|
+
- **Android**: Minor update, UI / UX optimize. Stable version
|
|
6
11
|
### 1.2.5
|
|
7
12
|
- **Android**: Fix NFC step error UNKNOWN rarely happens on some device like Samsung Note 10
|
|
8
13
|
### 1.2.4
|
|
@@ -99,7 +104,7 @@ Add to your `app/package.json`:
|
|
|
99
104
|
|
|
100
105
|
```json
|
|
101
106
|
"dependencies": {
|
|
102
|
-
"react-native-kalapa-ekyc": "^1.2.
|
|
107
|
+
"react-native-kalapa-ekyc": "^1.2.7"
|
|
103
108
|
}
|
|
104
109
|
```
|
|
105
110
|
|
|
@@ -168,7 +173,8 @@ let configInfo = {
|
|
|
168
173
|
mrz: <INPUT_MRZ>,
|
|
169
174
|
qr_code: <INPUT_QR_CODE>,
|
|
170
175
|
allow_mrz_rescan_on_nfc_mismatch: <ALLOW_MRZ_RESCAN_ON_NFC_MISMATCH>,
|
|
171
|
-
with_confirm_screen: <WITH_CONFIRM_SCREEN
|
|
176
|
+
with_confirm_screen: <WITH_CONFIRM_SCREEN>,
|
|
177
|
+
require_qr: <REQUIRE_QR>
|
|
172
178
|
}
|
|
173
179
|
```
|
|
174
180
|
|
|
@@ -190,7 +196,7 @@ let configInfo = {
|
|
|
190
196
|
| `INPUT_QR_CODE` | String | Pre-filled QR code. If valid, skips QR scan step. Invalid input throws `INVALID_QR` error |
|
|
191
197
|
| `ALLOW_MRZ_RESCAN_ON_NFC_MISMATCH` | Boolean | If `true`, allows user to rescan MRZ when chip data doesn't match input MRZ |
|
|
192
198
|
| `WITH_CONFIRM_SCREEN` | Boolean | If `true`, allows user to enter confirm step |
|
|
193
|
-
|
|
199
|
+
| `REQUIRE_QR` | Boolean | If `true`, SDK will scan for QR Code and may reduce the MRZ step when enter the NFC step. |
|
|
194
200
|
---
|
|
195
201
|
|
|
196
202
|
### 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);
|