react-native-kalapa-ekyc 1.2.8 → 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.
- package/README.md +274 -271
- package/android/build.gradle +3 -3
- package/android/src/main/java/com/reactnativekalapaekyc/KalapaEkycModule.java +55 -43
- package/ios/KalapaEkyc.m +39 -17
- package/lib/typescript/src/KalapaResult.d.ts +107 -0
- package/lib/typescript/src/index.d.ts +26 -0
- package/package.json +7 -7
- package/src/KalapaResult.ts +10 -19
- package/src/index.tsx +66 -34
- package/android/.gradle/8.9/checksums/checksums.lock +0 -0
- package/android/.gradle/8.9/dependencies-accessors/gc.properties +0 -0
- package/android/.gradle/8.9/fileChanges/last-build.bin +0 -0
- package/android/.gradle/8.9/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/8.9/gc.properties +0 -0
- package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/android/.gradle/buildOutputCleanup/cache.properties +0 -2
- package/android/.gradle/vcs-1/gc.properties +0 -0
- package/android/src/main/java/com/reactnativekalapaekyc/kUtils.java +0 -66
- package/ios/KalapaEkyc.xcodeproj/project.pbxproj +0 -167
- package/ios/KalapaEkyc.xcodeproj/project.xcworkspace/contents.xcworkspacedata +0 -4
- package/ios/KalapaEkyc.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -8
- package/ios/KalapaEkyc.xcodeproj/project.xcworkspace/xcuserdata/iosdev.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
- package/ios/KalapaEkyc.xcodeproj/project.xcworkspace/xcuserdata/leo.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
- package/ios/KalapaEkyc.xcodeproj/xcuserdata/mac.xcuserdatad/xcschemes/xcschememanagement.plist +0 -14
|
@@ -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
|
-
}
|
|
Binary file
|
|
Binary file
|
package/ios/KalapaEkyc.xcodeproj/xcuserdata/mac.xcuserdatad/xcschemes/xcschememanagement.plist
DELETED
|
@@ -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>
|