react-native-kalapa-ekyc 1.2.7 → 1.2.9
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 +10 -3
- package/android/.gradle/8.9/checksums/checksums.lock +0 -0
- package/android/.gradle/8.9/checksums/sha1-checksums.bin +0 -0
- package/android/.gradle/9.0-milestone-1/checksums/checksums.lock +0 -0
- package/android/.gradle/9.0-milestone-1/checksums/sha1-checksums.bin +0 -0
- package/android/.gradle/9.0-milestone-1/fileChanges/last-build.bin +0 -0
- package/android/.gradle/9.0-milestone-1/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/9.0-milestone-1/gc.properties +0 -0
- package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/android/.gradle/buildOutputCleanup/cache.properties +2 -2
- package/android/.gradle/config.properties +2 -0
- package/android/.idea/AndroidProjectSystem.xml +6 -0
- package/android/.idea/caches/deviceStreaming.xml +1510 -0
- package/android/.idea/gradle.xml +12 -0
- package/android/.idea/material_theme_project_new.xml +10 -0
- package/android/.idea/migrations.xml +10 -0
- package/android/.idea/misc.xml +10 -0
- package/android/.idea/runConfigurations.xml +17 -0
- package/android/.idea/vcs.xml +6 -0
- package/android/build.gradle +1 -1
- package/android/local.properties +8 -0
- package/android/src/main/java/com/reactnativekalapaekyc/KalapaEkycModule.java +4 -2
- package/ios/KalapaEkyc.m +6 -2
- package/package.json +1 -1
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<project version="4">
|
|
3
|
+
<component name="GradleSettings">
|
|
4
|
+
<option name="linkedExternalProjectsSettings">
|
|
5
|
+
<GradleProjectSettings>
|
|
6
|
+
<option name="testRunner" value="CHOOSE_PER_TEST" />
|
|
7
|
+
<option name="externalProjectPath" value="$PROJECT_DIR$" />
|
|
8
|
+
<option name="gradleJvm" value="#GRADLE_LOCAL_JAVA_HOME" />
|
|
9
|
+
</GradleProjectSettings>
|
|
10
|
+
</option>
|
|
11
|
+
</component>
|
|
12
|
+
</project>
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<project version="4">
|
|
3
|
+
<component name="MaterialThemeProjectNewConfig">
|
|
4
|
+
<option name="metadata">
|
|
5
|
+
<MTProjectMetadataState>
|
|
6
|
+
<option name="userId" value="-1ba4ea9c:19d2800c95b:-7ed4" />
|
|
7
|
+
</MTProjectMetadataState>
|
|
8
|
+
</option>
|
|
9
|
+
</component>
|
|
10
|
+
</project>
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<project version="4">
|
|
3
|
+
<component name="ExternalStorageConfigurationManager" enabled="true" />
|
|
4
|
+
<component name="ProjectRootManager">
|
|
5
|
+
<output url="file://$PROJECT_DIR$/build/classes" />
|
|
6
|
+
</component>
|
|
7
|
+
<component name="ProjectType">
|
|
8
|
+
<option name="id" value="Android" />
|
|
9
|
+
</component>
|
|
10
|
+
</project>
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<project version="4">
|
|
3
|
+
<component name="RunConfigurationProducerService">
|
|
4
|
+
<option name="ignoredProducers">
|
|
5
|
+
<set>
|
|
6
|
+
<option value="com.intellij.execution.junit.AbstractAllInDirectoryConfigurationProducer" />
|
|
7
|
+
<option value="com.intellij.execution.junit.AllInPackageConfigurationProducer" />
|
|
8
|
+
<option value="com.intellij.execution.junit.PatternConfigurationProducer" />
|
|
9
|
+
<option value="com.intellij.execution.junit.TestInClassConfigurationProducer" />
|
|
10
|
+
<option value="com.intellij.execution.junit.UniqueIdConfigurationProducer" />
|
|
11
|
+
<option value="com.intellij.execution.junit.testDiscovery.JUnitTestDiscoveryConfigurationProducer" />
|
|
12
|
+
<option value="org.jetbrains.kotlin.idea.junit.KotlinJUnitRunConfigurationProducer" />
|
|
13
|
+
<option value="org.jetbrains.kotlin.idea.junit.KotlinPatternConfigurationProducer" />
|
|
14
|
+
</set>
|
|
15
|
+
</option>
|
|
16
|
+
</component>
|
|
17
|
+
</project>
|
package/android/build.gradle
CHANGED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
## This file must *NOT* be checked into Version Control Systems,
|
|
2
|
+
# as it contains information specific to your local configuration.
|
|
3
|
+
#
|
|
4
|
+
# Location of the SDK. This is only used by Gradle.
|
|
5
|
+
# For customization when using a Version Control System, please read the
|
|
6
|
+
# header note.
|
|
7
|
+
#Thu Mar 26 11:22:42 ICT 2026
|
|
8
|
+
sdk.dir=/Users/leo/Library/Android/sdk
|
|
@@ -57,8 +57,9 @@ public class KalapaEkycModule extends ReactContextBaseJavaModule {
|
|
|
57
57
|
String mainTextColor = data.getString("main_text_color") != null ? data.getString("main_text_color") : "#000000";
|
|
58
58
|
String btnTextColor = data.getString("btn_text_color") != null ? data.getString("btn_text_color") : "#FFFFFF";
|
|
59
59
|
String language = data.getString("language") != null ? data.getString("language") : "en";
|
|
60
|
+
String customerLanguage = data.getString("customer_language") != null ? data.getString("customer_language") : "";
|
|
60
61
|
int livenessVersion = data.getInt("liveness_version");
|
|
61
|
-
|
|
62
|
+
|
|
62
63
|
String faceData = data.getString("face_data") != null ? data.getString("face_data") : "";
|
|
63
64
|
String mrzData = data.getString("mrz") != null ? data.getString("mrz") : "";
|
|
64
65
|
String qrCode = data.getString("qr_code") != null ? data.getString("qr_code") : "";
|
|
@@ -81,8 +82,9 @@ public class KalapaEkycModule extends ReactContextBaseJavaModule {
|
|
|
81
82
|
.withAllowMRZRescanOnNFCMismatch(allowMrzRescanOnNfcMismatch)
|
|
82
83
|
.skipConfirm(!withConfirmScreen)
|
|
83
84
|
.requireQRCode(requireQr)
|
|
85
|
+
.withSpecificLanguageForCustomer(customerLanguage)
|
|
84
86
|
.build();
|
|
85
|
-
|
|
87
|
+
|
|
86
88
|
KalapaSDK.KalapaSDKBuilder builder = new KalapaSDK.KalapaSDKBuilder(getCurrentActivity(), klpConfig);
|
|
87
89
|
if (qrCode != null && !qrCode.isEmpty()) builder.withRawQRCode(qrCode);
|
|
88
90
|
if (faceData != null && !faceData.isEmpty()) builder.withFaceData(faceData);
|
package/ios/KalapaEkyc.m
CHANGED
|
@@ -27,6 +27,7 @@ RCT_EXPORT_METHOD(start:(NSString *)session
|
|
|
27
27
|
|
|
28
28
|
NSString *faceData = data[@"face_data"];
|
|
29
29
|
NSString *mrz = data[@"mrz"];
|
|
30
|
+
NSString *customerLanguage = data[@"customer_language"];
|
|
30
31
|
NSString *sessionID = data[@"session_id"];
|
|
31
32
|
id val = data[@"allow_mrz_rescan_on_nfc_mismatch"];
|
|
32
33
|
BOOL allowMRZRescanOnNfcMismatch = [val isKindOfClass:NSNumber.class] ? [val boolValue] : NO;
|
|
@@ -53,6 +54,7 @@ RCT_EXPORT_METHOD(start:(NSString *)session
|
|
|
53
54
|
livenessVersion:livenessVersion
|
|
54
55
|
appearance:klpAppearance
|
|
55
56
|
mrz:mrz
|
|
57
|
+
customerLanguage:customerLanguage
|
|
56
58
|
faceData:faceData
|
|
57
59
|
allowMRZRescanOnNfcMismatch:allowMRZRescanOnNfcMismatch
|
|
58
60
|
withShowConfirmScreen:withConfirmScreen
|
|
@@ -105,13 +107,15 @@ RCT_EXPORT_METHOD(start:(NSString *)session
|
|
|
105
107
|
livenessVersion:(NSInteger)livenessVersion
|
|
106
108
|
appearance:(KLPAppearance *)appearance
|
|
107
109
|
mrz:(NSString *)mrz
|
|
110
|
+
customerLanguage:(NSString *)customerLanguage
|
|
108
111
|
faceData:(NSString *)faceData
|
|
109
112
|
allowMRZRescanOnNfcMismatch:(BOOL)allowMRZRescanOnNfcMismatch
|
|
110
113
|
withShowConfirmScreen:(BOOL)withConfirmScreen {
|
|
111
|
-
KLPConfig *config = [[[[[[[KLPConfig BuilderWithSession:session]
|
|
114
|
+
KLPConfig *config = [[[[[[[[KLPConfig BuilderWithSession:session]
|
|
112
115
|
withBaseUrl:domain]
|
|
113
116
|
withLivenessVersion:livenessVersion]
|
|
114
117
|
withAppearance:appearance]
|
|
118
|
+
withCustomerLanguage:customerLanguage]
|
|
115
119
|
withMRZ:mrz]
|
|
116
120
|
withFaceDataBase64:faceData]
|
|
117
121
|
withShowConfirmScreen:withConfirmScreen];
|
|
@@ -157,4 +161,4 @@ RCT_EXPORT_METHOD(start:(NSString *)session
|
|
|
157
161
|
}
|
|
158
162
|
|
|
159
163
|
|
|
160
|
-
@end
|
|
164
|
+
@end
|