facia-mobilesdk 0.3.0 → 0.3.1

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.
@@ -35,23 +35,12 @@ public class FaciaReactNativeModule extends ReactContextBaseJavaModule {
35
35
  }
36
36
 
37
37
  @ReactMethod
38
- public void verify(String docType,String configObject, Callback callback) {
38
+ public void verify(String configObject, Callback callback) {
39
39
  try {
40
40
 
41
41
 
42
42
  JSONObject configJson = new JSONObject(configObject);
43
43
 
44
- if (docType.equalsIgnoreCase("ID_CARD"))
45
- {
46
- configJson.put("documentType", DocumentType.ID_CARD);
47
- }else if (docType.equalsIgnoreCase("PASSPORT"))
48
- {
49
- configJson.put("documentType", DocumentType.PASSPORT);
50
- }else
51
- {
52
- configJson.put("documentType", DocumentType.OTHERS);
53
- }
54
-
55
44
  FaciaAi faciaAi = new FaciaAi();
56
45
 
57
46
  faciaAi.createRequest(getCurrentActivity(), configJson, responseSet -> {
@@ -16,7 +16,7 @@ RCT_EXPORT_METHOD(testMethod:(NSString *)name location:(NSString *)location)
16
16
 
17
17
 
18
18
  // RCT_EXPORT_METHOD(verify:(NSString *)request auth:(NSString *)auth config:(NSString *)config callback: (RCTResponseSenderBlock) callback)
19
- RCT_EXPORT_METHOD(verify:(NSString *)documentType config:(NSString *)config callback: (RCTResponseSenderBlock) callback)
19
+ RCT_EXPORT_METHOD(verify:(NSString *)config callback: (RCTResponseSenderBlock) callback)
20
20
  {
21
21
 
22
22
 
@@ -27,7 +27,6 @@ RCT_EXPORT_METHOD(verify:(NSString *)documentType config:(NSString *)config call
27
27
 
28
28
  [facia createRequestWithParentViewController:vc
29
29
  configs:[self parseJSONString:config]
30
- documentType:documentType
31
30
  completion:^(NSDictionary *result) {
32
31
  NSString *response = [self convertToJSONString:result];
33
32
  callback(@[response]);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "facia-mobilesdk",
3
3
  "title": "React Native Mobilesdk Module",
4
- "version": "0.3.0",
4
+ "version": "0.3.1",
5
5
  "description": "Facia mobile SDK",
6
6
  "main": "index.js",
7
7
  "files": [