facia-mobilesdk 0.0.6 → 0.0.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.
@@ -1,30 +1,21 @@
1
1
  package com.facia.plugins.reactnative;
2
2
 
3
- import androidx.annotation.Nullable;
4
-
5
3
  import com.facebook.react.bridge.*;
6
4
  import com.facebook.react.modules.core.*;
7
5
 
8
6
 
9
7
 
10
8
  import org.jetbrains.annotations.*;
11
- import android.os.Bundle;
9
+
12
10
  import android.util.Log;
13
11
 
14
- import com.facia.faciasdk.Activity.Helpers.Enums.FaceDetectionThreshold;
15
- import com.facia.faciasdk.Activity.Helpers.Enums.FaceLivenessType;
16
- import com.facia.faciasdk.Activity.Helpers.Enums.OvalSize;
12
+ import com.facia.faciasdk.Activity.Helpers.Enums.DocumentType;
17
13
  import com.facia.faciasdk.FaciaAi;
18
14
 
19
- import org.json.JSONException;
20
15
  import org.json.JSONObject;
21
16
 
22
- import java.util.HashMap;
23
-
24
17
  import androidx.annotation.NonNull;
25
18
 
26
- import org.json.JSONObject;
27
-
28
19
  public class FaciaReactNativeModule extends ReactContextBaseJavaModule {
29
20
 
30
21
  private final ReactApplicationContext reactContext;
@@ -32,6 +23,23 @@ public class FaciaReactNativeModule extends ReactContextBaseJavaModule {
32
23
 
33
24
  private final static String LOG_TAG = "FaciaModule";
34
25
 
26
+ @ReactMethod
27
+ public DocumentType ID_CARD(){
28
+ return DocumentType.ID_CARD;
29
+ }
30
+ @ReactMethod
31
+ public DocumentType PASSPORT(){
32
+ return DocumentType.PASSPORT;
33
+ }
34
+ @ReactMethod
35
+ public DocumentType OTHERS(){
36
+ return DocumentType.OTHERS;
37
+ }
38
+
39
+ public final DocumentType ID_CARD = DocumentType.ID_CARD;
40
+ public final DocumentType PASSPORT = DocumentType.PASSPORT;
41
+ public final DocumentType OTHERS = DocumentType.OTHERS;
42
+
35
43
  public FaciaReactNativeModule(@NonNull ReactApplicationContext reactContext) {
36
44
  super(reactContext);
37
45
  this.reactContext = reactContext;
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.0.6",
4
+ "version": "0.0.7",
5
5
  "description": "Facia mobile SDK",
6
6
  "main": "index.js",
7
7
  "files": [