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