react-native-kalapa-ekyc 1.2.9 → 1.2.10

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.
Files changed (40) hide show
  1. package/README.md +271 -273
  2. package/android/build.gradle +3 -3
  3. package/android/src/main/java/com/reactnativekalapaekyc/KalapaEkycModule.java +53 -43
  4. package/ios/KalapaEkyc.m +33 -15
  5. package/lib/typescript/src/KalapaResult.d.ts +107 -0
  6. package/lib/typescript/src/index.d.ts +26 -0
  7. package/package.json +7 -7
  8. package/src/KalapaResult.ts +10 -19
  9. package/src/index.tsx +66 -34
  10. package/android/.gradle/8.9/checksums/checksums.lock +0 -0
  11. package/android/.gradle/8.9/checksums/sha1-checksums.bin +0 -0
  12. package/android/.gradle/8.9/dependencies-accessors/gc.properties +0 -0
  13. package/android/.gradle/8.9/fileChanges/last-build.bin +0 -0
  14. package/android/.gradle/8.9/fileHashes/fileHashes.lock +0 -0
  15. package/android/.gradle/8.9/gc.properties +0 -0
  16. package/android/.gradle/9.0-milestone-1/checksums/checksums.lock +0 -0
  17. package/android/.gradle/9.0-milestone-1/checksums/sha1-checksums.bin +0 -0
  18. package/android/.gradle/9.0-milestone-1/fileChanges/last-build.bin +0 -0
  19. package/android/.gradle/9.0-milestone-1/fileHashes/fileHashes.lock +0 -0
  20. package/android/.gradle/9.0-milestone-1/gc.properties +0 -0
  21. package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  22. package/android/.gradle/buildOutputCleanup/cache.properties +0 -2
  23. package/android/.gradle/config.properties +0 -2
  24. package/android/.gradle/vcs-1/gc.properties +0 -0
  25. package/android/.idea/AndroidProjectSystem.xml +0 -6
  26. package/android/.idea/caches/deviceStreaming.xml +0 -1510
  27. package/android/.idea/gradle.xml +0 -12
  28. package/android/.idea/material_theme_project_new.xml +0 -10
  29. package/android/.idea/migrations.xml +0 -10
  30. package/android/.idea/misc.xml +0 -10
  31. package/android/.idea/runConfigurations.xml +0 -17
  32. package/android/.idea/vcs.xml +0 -6
  33. package/android/local.properties +0 -8
  34. package/android/src/main/java/com/reactnativekalapaekyc/kUtils.java +0 -66
  35. package/ios/KalapaEkyc.xcodeproj/project.pbxproj +0 -167
  36. package/ios/KalapaEkyc.xcodeproj/project.xcworkspace/contents.xcworkspacedata +0 -4
  37. package/ios/KalapaEkyc.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -8
  38. package/ios/KalapaEkyc.xcodeproj/project.xcworkspace/xcuserdata/iosdev.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
  39. package/ios/KalapaEkyc.xcodeproj/project.xcworkspace/xcuserdata/leo.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
  40. package/ios/KalapaEkyc.xcodeproj/xcuserdata/mac.xcuserdatad/xcschemes/xcschememanagement.plist +0 -14
@@ -1,12 +0,0 @@
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>
@@ -1,10 +0,0 @@
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>
@@ -1,10 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="ProjectMigrations">
4
- <option name="MigrateToGradleLocalJavaHome">
5
- <set>
6
- <option value="$PROJECT_DIR$" />
7
- </set>
8
- </option>
9
- </component>
10
- </project>
@@ -1,10 +0,0 @@
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>
@@ -1,17 +0,0 @@
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>
@@ -1,6 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="VcsDirectoryMappings">
4
- <mapping directory="$PROJECT_DIR$/../.." vcs="Git" />
5
- </component>
6
- </project>
@@ -1,8 +0,0 @@
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
@@ -1,66 +0,0 @@
1
- package com.reactlibrary;
2
-
3
- import com.facebook.react.bridge.WritableArray;
4
- import com.facebook.react.bridge.WritableMap;
5
- import com.facebook.react.bridge.WritableNativeArray;
6
- import com.facebook.react.bridge.WritableNativeMap;
7
-
8
- import org.json.JSONArray;
9
-
10
- import java.util.List;
11
- import java.util.Map;
12
-
13
- class kUtils {
14
- public static WritableMap convertMapToWritableMap(Map<String, Object> input) {
15
- WritableMap output = new WritableNativeMap();
16
-
17
- for (Map.Entry<String, Object> entry : input.entrySet()) {
18
- String key = entry.getKey();
19
- Object value = entry.getValue();
20
- if (value instanceof Map) {
21
- output.putMap(key, convertMapToWritableMap((Map<String, Object>) value));
22
- } else if (value instanceof JSONArray) {
23
- output.putArray(key, convertArrayToWritableArray((Object[]) value));
24
- } else if (value instanceof List) {
25
- output.putArray(key, convertArrayToWritableArray(((List) value).toArray()));
26
- } else if (value instanceof Boolean) {
27
- output.putBoolean(key, (Boolean) value);
28
- } else if (value instanceof Integer) {
29
- output.putInt(key, (Integer) value);
30
- } else if (value instanceof Double) {
31
- output.putDouble(key, (Double) value);
32
- } else if (value instanceof String) {
33
- output.putString(key, (String) value);
34
- } else {
35
- output.putString(key, value.toString());
36
- }
37
- }
38
- return output;
39
- }
40
-
41
- public static WritableArray convertArrayToWritableArray(Object[] input) {
42
- WritableArray output = new WritableNativeArray();
43
-
44
- for (int i = 0; i < input.length; i++) {
45
- Object value = input[i];
46
- if (value instanceof Map) {
47
- output.pushMap(convertMapToWritableMap((Map<String, Object>) value));
48
- } else if (value instanceof JSONArray) {
49
- output.pushArray(convertArrayToWritableArray((Object[]) value));
50
- } else if (value instanceof List) {
51
- output.pushArray(convertArrayToWritableArray(((List) value).toArray()));
52
- } else if (value instanceof Boolean) {
53
- output.pushBoolean((Boolean) value);
54
- } else if (value instanceof Integer) {
55
- output.pushInt((Integer) value);
56
- } else if (value instanceof Double) {
57
- output.pushDouble((Double) value);
58
- } else if (value instanceof String) {
59
- output.pushString((String) value);
60
- } else {
61
- output.pushString(value.toString());
62
- }
63
- }
64
- return output;
65
- }
66
- }
@@ -1,167 +0,0 @@
1
- // !$*UTF8*$!
2
- {
3
- archiveVersion = 1;
4
- classes = {
5
- };
6
- objectVersion = 46;
7
- objects = {
8
-
9
- /* Begin PBXFileReference section */
10
- B3E7B5881CC2AC0600A0062D /* KalapaEkyc.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = KalapaEkyc.h; sourceTree = "<group>"; };
11
- B3E7B5891CC2AC0600A0062D /* KalapaEkyc.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = KalapaEkyc.m; sourceTree = "<group>"; };
12
- /* End PBXFileReference section */
13
-
14
- /* Begin PBXGroup section */
15
- 134814211AA4EA7D00B7C361 /* Products */ = {
16
- isa = PBXGroup;
17
- children = (
18
- );
19
- name = Products;
20
- sourceTree = "<group>";
21
- };
22
- 58B511D21A9E6C8500147676 = {
23
- isa = PBXGroup;
24
- children = (
25
- B3E7B5881CC2AC0600A0062D /* KalapaEkyc.h */,
26
- B3E7B5891CC2AC0600A0062D /* KalapaEkyc.m */,
27
- 134814211AA4EA7D00B7C361 /* Products */,
28
- );
29
- sourceTree = "<group>";
30
- };
31
- /* End PBXGroup section */
32
-
33
- /* Begin PBXProject section */
34
- 58B511D31A9E6C8500147676 /* Project object */ = {
35
- isa = PBXProject;
36
- attributes = {
37
- LastUpgradeCheck = 0920;
38
- ORGANIZATIONNAME = Facebook;
39
- };
40
- buildConfigurationList = 58B511D61A9E6C8500147676 /* Build configuration list for PBXProject "KalapaEkyc" */;
41
- compatibilityVersion = "Xcode 3.2";
42
- developmentRegion = vi;
43
- hasScannedForEncodings = 0;
44
- knownRegions = (
45
- English,
46
- en,
47
- vi,
48
- );
49
- mainGroup = 58B511D21A9E6C8500147676;
50
- productRefGroup = 58B511D21A9E6C8500147676;
51
- projectDirPath = "";
52
- projectRoot = "";
53
- targets = (
54
- );
55
- };
56
- /* End PBXProject section */
57
-
58
- /* Begin XCBuildConfiguration section */
59
- 58B511ED1A9E6C8500147676 /* Debug */ = {
60
- isa = XCBuildConfiguration;
61
- buildSettings = {
62
- ALWAYS_SEARCH_USER_PATHS = NO;
63
- CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
64
- CLANG_CXX_LIBRARY = "libc++";
65
- CLANG_ENABLE_MODULES = YES;
66
- CLANG_ENABLE_OBJC_ARC = YES;
67
- CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
68
- CLANG_WARN_BOOL_CONVERSION = YES;
69
- CLANG_WARN_COMMA = YES;
70
- CLANG_WARN_CONSTANT_CONVERSION = YES;
71
- CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
72
- CLANG_WARN_EMPTY_BODY = YES;
73
- CLANG_WARN_ENUM_CONVERSION = YES;
74
- CLANG_WARN_INFINITE_RECURSION = YES;
75
- CLANG_WARN_INT_CONVERSION = YES;
76
- CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
77
- CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
78
- CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
79
- CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
80
- CLANG_WARN_STRICT_PROTOTYPES = YES;
81
- CLANG_WARN_SUSPICIOUS_MOVE = YES;
82
- CLANG_WARN_UNREACHABLE_CODE = YES;
83
- CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
84
- COPY_PHASE_STRIP = NO;
85
- ENABLE_STRICT_OBJC_MSGSEND = YES;
86
- ENABLE_TESTABILITY = YES;
87
- GCC_C_LANGUAGE_STANDARD = gnu99;
88
- GCC_DYNAMIC_NO_PIC = NO;
89
- GCC_NO_COMMON_BLOCKS = YES;
90
- GCC_OPTIMIZATION_LEVEL = 0;
91
- GCC_PREPROCESSOR_DEFINITIONS = (
92
- "DEBUG=1",
93
- "$(inherited)",
94
- );
95
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
96
- GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
97
- GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
98
- GCC_WARN_UNDECLARED_SELECTOR = YES;
99
- GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
100
- GCC_WARN_UNUSED_FUNCTION = YES;
101
- GCC_WARN_UNUSED_VARIABLE = YES;
102
- IPHONEOS_DEPLOYMENT_TARGET = 8.0;
103
- MTL_ENABLE_DEBUG_INFO = YES;
104
- ONLY_ACTIVE_ARCH = YES;
105
- SDKROOT = iphoneos;
106
- };
107
- name = Debug;
108
- };
109
- 58B511EE1A9E6C8500147676 /* Release */ = {
110
- isa = XCBuildConfiguration;
111
- buildSettings = {
112
- ALWAYS_SEARCH_USER_PATHS = NO;
113
- CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
114
- CLANG_CXX_LIBRARY = "libc++";
115
- CLANG_ENABLE_MODULES = YES;
116
- CLANG_ENABLE_OBJC_ARC = YES;
117
- CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
118
- CLANG_WARN_BOOL_CONVERSION = YES;
119
- CLANG_WARN_COMMA = YES;
120
- CLANG_WARN_CONSTANT_CONVERSION = YES;
121
- CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
122
- CLANG_WARN_EMPTY_BODY = YES;
123
- CLANG_WARN_ENUM_CONVERSION = YES;
124
- CLANG_WARN_INFINITE_RECURSION = YES;
125
- CLANG_WARN_INT_CONVERSION = YES;
126
- CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
127
- CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
128
- CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
129
- CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
130
- CLANG_WARN_STRICT_PROTOTYPES = YES;
131
- CLANG_WARN_SUSPICIOUS_MOVE = YES;
132
- CLANG_WARN_UNREACHABLE_CODE = YES;
133
- CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
134
- COPY_PHASE_STRIP = YES;
135
- ENABLE_NS_ASSERTIONS = NO;
136
- ENABLE_STRICT_OBJC_MSGSEND = YES;
137
- GCC_C_LANGUAGE_STANDARD = gnu99;
138
- GCC_NO_COMMON_BLOCKS = YES;
139
- GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
140
- GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
141
- GCC_WARN_UNDECLARED_SELECTOR = YES;
142
- GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
143
- GCC_WARN_UNUSED_FUNCTION = YES;
144
- GCC_WARN_UNUSED_VARIABLE = YES;
145
- IPHONEOS_DEPLOYMENT_TARGET = 8.0;
146
- MTL_ENABLE_DEBUG_INFO = NO;
147
- SDKROOT = iphoneos;
148
- VALIDATE_PRODUCT = YES;
149
- };
150
- name = Release;
151
- };
152
- /* End XCBuildConfiguration section */
153
-
154
- /* Begin XCConfigurationList section */
155
- 58B511D61A9E6C8500147676 /* Build configuration list for PBXProject "KalapaEkyc" */ = {
156
- isa = XCConfigurationList;
157
- buildConfigurations = (
158
- 58B511ED1A9E6C8500147676 /* Debug */,
159
- 58B511EE1A9E6C8500147676 /* Release */,
160
- );
161
- defaultConfigurationIsVisible = 0;
162
- defaultConfigurationName = Release;
163
- };
164
- /* End XCConfigurationList section */
165
- };
166
- rootObject = 58B511D31A9E6C8500147676 /* Project object */;
167
- }
@@ -1,4 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <Workspace
3
- version = "1.0">
4
- </Workspace>
@@ -1,8 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
- <plist version="1.0">
4
- <dict>
5
- <key>IDEDidComputeMac32BitWarning</key>
6
- <true/>
7
- </dict>
8
- </plist>
@@ -1,14 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
- <plist version="1.0">
4
- <dict>
5
- <key>SchemeUserState</key>
6
- <dict>
7
- <key>KalapaEkyc.xcscheme_^#shared#^_</key>
8
- <dict>
9
- <key>orderHint</key>
10
- <integer>0</integer>
11
- </dict>
12
- </dict>
13
- </dict>
14
- </plist>