diff --git a/README.md b/README.md
index 3751a75..d4c33b9 100644
--- a/README.md
+++ b/README.md
@@ -138,7 +138,6 @@ export default function App() {
Open Photo Match
-
Open Enroll
@@ -175,7 +174,6 @@ const styles = StyleSheet.create({
fontSize: 22,
},
});
-
```
@@ -259,13 +257,13 @@ This method must be used to **set** the **theme** of the Capface SDK screen.
Here must be passed to initialize the Capface SDK! Case the parameters isn't provided the Capface SDK goes to be not initialized.
-| `CapfaceSdk.Params` | type | Required |
-| ------------------- | -------- | -------- |
-| `device` | `string` | ✅ |
-| `url` | `string` | ✅ |
-| `key` | `string` | ✅ |
-| `productionKey` | `string` | ✅ |
-| `isDeveloperMode` | `boolean`| ❌ |
+| `CapfaceSdk.Params` | type | Required |
+| ------------------- | --------- | -------- |
+| `device` | `string` | ✅ |
+| `url` | `string` | ✅ |
+| `key` | `string` | ✅ |
+| `productionKey` | `string` | ✅ |
+| `isDeveloperMode` | `boolean` | ❌ |
### `CapfaceSdk.Headers`
@@ -281,8 +279,8 @@ This is a list of theme properties that can be used to styling. Note, we recomme
| `CapfaceSdk.Theme` | type | iOS | Android | Required | Default |
| ---------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | --- | ------- | -------- | ------------------------------------------------------------------------------------------------------- |
-| `logoImage` | `string` | ✅ | ✅ | ❌ | `faceTec_your_app_logo.png` |
-| `cancelImage` | `string` | ✅ | ✅ | ❌ | `faceTec_cancel.png` |
+| `logoImage` | `string` | ✅ | ✅ | ❌ | `facetec_your_app_logo.png` |
+| `cancelImage` | `string` | ✅ | ✅ | ❌ | `facetec_cancel.png` |
| `cancelButtonLocation` | [`CapfaceSdk.ButtonLocation`](#capfacesdkbuttonlocation) | ✅ | ✅ | ❌ | `TOP_RIGHT` |
| `defaultStatusBarColorIos` | [`CapfaceSdk.StatusBarColor`](#capfacesdkstatusbarcolor-ios-only) | ✅ | ❌ | ❌ | `DARK_CONTENT` |
| `frameCornerRadius` | `number` | ✅ | ✅ | ❌ | `10` (iOS) and `20` (Android) |
@@ -427,14 +425,13 @@ This interface represents the all scan messages during to CapfaceSDK flow. It in
| `CapfaceSdk.Errors` | Description | iOS | Android |
| ------------------------------- | ------------------------------------------------------------------------------------ | --- | ------- |
-| `FaceTecDoenstInitialized` | When some processors method is runned, but CapfaceSDK **wasn't initialized**. | ✅ | ✅ |
-| `FaceTecWasntProcessed` | When the image sent to the processors cannot be processed due to inconsistency. | ✅ | ✅ |
+| `CapFaceHasNotBeenInitialized` | When some processors method is runned, but CapfaceSDK **has not been initialized**. | ✅ | ✅ |
+| `CapFaceValuesWereNotProcessed` | When the image sent to the processors cannot be processed due to inconsistency. | ✅ | ✅ |
| `HTTPSError` | When exists some network error. | ✅ | ✅ |
| `JSONError` | When exists some problem in getting data in request of **base URL** information. | ❌ | ✅ |
-| `FaceTecDifferentStatus` | When session status is different completed successfully. | ❌ | ✅ |
-| `FaceTecLivenessWasntProcessed` | When the image user sent to the processors cannot be processed due to inconsistency. | ❌ | ✅ |
-| `FaceTecScanWasntProcessed` | When the image ID sent to the processors cannot be processed due to inconsistency. | ❌ | ✅ |
-| `NoParametersProvided` | When parameters is not provided. | ❌ | ✅ |
+| `CapFaceInvalidSession` | When session status is invalid. | ❌ | ✅ |
+| `CapFaceLivenessWasntProcessed` | When the image user sent to the processors cannot be processed due to inconsistency. | ❌ | ✅ |
+| `CapFaceScanWasntProcessed` | When the image ID sent to the processors cannot be processed due to inconsistency. | ❌ | ✅ |
@@ -456,11 +453,11 @@ This is a list of event types that can be used on `addListener`.
## How to add images in CapfaceSDK module?
-The `logoImage` and `cancelImage` properties represents your logo and icon of the button cancel. Does not possible to remove them from the module. Default are [Capitual](https://www.capitual.com/) images and `.png` format. In `Android` you can find the image's full name in lower case and in `iOS` the image's full name, but, with a difference of the first letter to be in the upper case.
+The `logoImage` and `cancelImage` properties represents your logo and icon of the button cancel. Does not possible to remove them from the module. Default are [Capitual](https://www.capitual.com/) images and `.png` format. By default in `Android` the logo image is shown, but on `iOS` it isn't shown, It's necessary to add manually.
### How to add images in Android?
-To add your images in `Android`, you must go to your project's `android/src/main/res/drawable` directory. Inside the `drawable` folder, you must put your images and done!
+To add your images in `Android`, you must go to your project's `android/src/main/res/drawable` directory. If in your project `drawable` folder doesn't exist, it create one. Inside the `drawable` folder, you must put your images and done!
### How to add images in iOS?
diff --git a/android/src/main/java/com/capitual/processors/AuthenticateProcessor.java b/android/src/main/java/com/capitual/processors/AuthenticateProcessor.java
index 4d8999b..aa6db7f 100644
--- a/android/src/main/java/com/capitual/processors/AuthenticateProcessor.java
+++ b/android/src/main/java/com/capitual/processors/AuthenticateProcessor.java
@@ -44,7 +44,7 @@ public void processSessionWhileFaceTecSDKWaits(final FaceTecSessionResult sessio
NetworkingHelpers.cancelPendingRequests();
faceScanResultCallback.cancel();
capFaceModule.sendEvent("onCloseModal", false);
- capFaceModule.processorPromise.reject("Status is not session completed successfully!", "FaceTecDifferentStatus");
+ capFaceModule.processorPromise.reject("The session status has not been completed!", "CapFaceInvalidSession");
return;
}
@@ -94,13 +94,14 @@ public void onResponse(@NonNull Call call, @NonNull okhttp3.Response response) t
.handleMessage(principalKey, "successMessage", "Authenticated");
success = faceScanResultCallback.proceedToNextStep(scanResultBlob);
if (success) {
+ capFaceModule.sendEvent("onCloseModal", false);
capFaceModule.processorPromise.resolve(true);
}
} else {
faceScanResultCallback.cancel();
capFaceModule.sendEvent("onCloseModal", false);
- capFaceModule.processorPromise.reject("FaceTec SDK wasn't have to values processed!",
- "FaceTecWasntProcessed");
+ capFaceModule.processorPromise.reject("CapFace SDK values were not processed!",
+ "CapFaceValuesWereNotProcessed");
}
} catch (JSONException e) {
e.printStackTrace();
diff --git a/android/src/main/java/com/capitual/processors/Config.java b/android/src/main/java/com/capitual/processors/Config.java
index 6ccd004..fe8d011 100644
--- a/android/src/main/java/com/capitual/processors/Config.java
+++ b/android/src/main/java/com/capitual/processors/Config.java
@@ -94,10 +94,7 @@ public static boolean hasConfig() {
&& ProductionKeyText != null;
}
- public static void initializeFaceTecSDKFromAutogeneratedConfig(
- Context context,
- boolean isDeveloperMode,
- FaceTecSDK.InitializeCallback callback) {
+ public static void initialize(Context context, boolean isDeveloperMode, FaceTecSDK.InitializeCallback callback) {
if (isDeveloperMode) {
FaceTecSDK.initializeInDevelopmentMode(
context,
diff --git a/android/src/main/java/com/capitual/processors/EnrollmentProcessor.java b/android/src/main/java/com/capitual/processors/EnrollmentProcessor.java
index afb7bf9..aa80e55 100644
--- a/android/src/main/java/com/capitual/processors/EnrollmentProcessor.java
+++ b/android/src/main/java/com/capitual/processors/EnrollmentProcessor.java
@@ -44,7 +44,7 @@ public void processSessionWhileFaceTecSDKWaits(final FaceTecSessionResult sessio
NetworkingHelpers.cancelPendingRequests();
faceScanResultCallback.cancel();
capFaceModule.sendEvent("onCloseModal", false);
- capFaceModule.processorPromise.reject("Status is not session completed successfully!", "FaceTecDifferentStatus");
+ capFaceModule.processorPromise.reject("The session status has not been completed!", "CapFaceInvalidSession");
return;
}
@@ -94,13 +94,14 @@ public void onResponse(@NonNull Call call, @NonNull okhttp3.Response response) t
"successMessage", "Liveness\nConfirmed");
success = faceScanResultCallback.proceedToNextStep(scanResultBlob);
if (success) {
+ capFaceModule.sendEvent("onCloseModal", false);
capFaceModule.processorPromise.resolve(true);
}
} else {
faceScanResultCallback.cancel();
capFaceModule.sendEvent("onCloseModal", false);
- capFaceModule.processorPromise.reject("FaceTec SDK wasn't have to values processed!",
- "FaceTecWasntProcessed");
+ capFaceModule.processorPromise.reject("CapFace SDK values were not processed!",
+ "CapFaceValuesWereNotProcessed");
}
} catch (JSONException e) {
e.printStackTrace();
diff --git a/android/src/main/java/com/capitual/processors/LivenessCheckProcessor.java b/android/src/main/java/com/capitual/processors/LivenessCheckProcessor.java
index 69d3996..1ced138 100644
--- a/android/src/main/java/com/capitual/processors/LivenessCheckProcessor.java
+++ b/android/src/main/java/com/capitual/processors/LivenessCheckProcessor.java
@@ -44,7 +44,7 @@ public void processSessionWhileFaceTecSDKWaits(final FaceTecSessionResult sessio
NetworkingHelpers.cancelPendingRequests();
faceScanResultCallback.cancel();
capFaceModule.sendEvent("onCloseModal", false);
- capFaceModule.processorPromise.reject("Status is not session completed successfully!", "FaceTecDifferentStatus");
+ capFaceModule.processorPromise.reject("The session status has not been completed!", "CapFaceInvalidSession");
return;
}
@@ -92,13 +92,14 @@ public void onResponse(@NonNull Call call, @NonNull okhttp3.Response response) t
"successMessage", "Liveness\nConfirmed");
success = faceScanResultCallback.proceedToNextStep(scanResultBlob);
if (success) {
+ capFaceModule.sendEvent("onCloseModal", false);
capFaceModule.processorPromise.resolve(true);
}
} else {
faceScanResultCallback.cancel();
capFaceModule.sendEvent("onCloseModal", false);
- capFaceModule.processorPromise.reject("FaceTec SDK wasn't have to values processed!",
- "FaceTecWasntProcessed");
+ capFaceModule.processorPromise.reject("CapFace SDK values were not processed!",
+ "CapFaceValuesWereNotProcessed");
}
} catch (JSONException e) {
e.printStackTrace();
diff --git a/android/src/main/java/com/capitual/processors/PhotoIDMatchProcessor.java b/android/src/main/java/com/capitual/processors/PhotoIDMatchProcessor.java
index 3e4848c..c0337ac 100644
--- a/android/src/main/java/com/capitual/processors/PhotoIDMatchProcessor.java
+++ b/android/src/main/java/com/capitual/processors/PhotoIDMatchProcessor.java
@@ -120,7 +120,7 @@ public void processSessionWhileFaceTecSDKWaits(final FaceTecSessionResult sessio
NetworkingHelpers.cancelPendingRequests();
faceScanResultCallback.cancel();
capFaceModule.sendEvent("onCloseModal", false);
- capFaceModule.processorPromise.reject("Status is not session completed successfully!", "FaceTecDifferentStatus");
+ capFaceModule.processorPromise.reject("The session status has not been completed!", "CapFaceInvalidSession");
return;
}
@@ -173,8 +173,8 @@ public void onResponse(@NonNull Call call, @NonNull okhttp3.Response response) t
} else {
faceScanResultCallback.cancel();
capFaceModule.sendEvent("onCloseModal", false);
- capFaceModule.processorPromise.reject("FaceTec SDK wasn't have to liveness values processed!",
- "FaceTecLivenessWasntProcessed");
+ capFaceModule.processorPromise.reject("CapFace SDK wasn't have to liveness values processed!",
+ "CapFaceLivenessWasntProcessed");
}
} catch (JSONException e) {
e.printStackTrace();
@@ -204,7 +204,7 @@ public void processIDScanWhileFaceTecSDKWaits(final FaceTecIDScanResult idScanRe
NetworkingHelpers.cancelPendingRequests();
idScanResultCallback.cancel();
capFaceModule.sendEvent("onCloseModal", false);
- capFaceModule.processorPromise.reject("Status is not success!", "FaceTecDifferentStatus");
+ capFaceModule.processorPromise.reject("The scan status has not been completed!", "CapFaceInvalidSession");
return;
}
@@ -309,13 +309,14 @@ public void onResponse(@NonNull Call call, @NonNull okhttp3.Response response) t
success = idScanResultCallback.proceedToNextStep(scanResultBlob);
if (success) {
+ capFaceModule.sendEvent("onCloseModal", false);
capFaceModule.processorPromise.resolve(true);
}
} else {
idScanResultCallback.cancel();
capFaceModule.sendEvent("onCloseModal", false);
- capFaceModule.processorPromise.reject("FaceTec SDK wasn't have to scan values processed!",
- "FaceTecScanWasntProcessed");
+ capFaceModule.processorPromise.reject("CapFace SDK wasn't have to scan values processed!",
+ "CapFaceScanWasntProcessed");
}
} catch (JSONException e) {
e.printStackTrace();
diff --git a/android/src/main/java/com/capitual/processors/PhotoIDScanProcessor.java b/android/src/main/java/com/capitual/processors/PhotoIDScanProcessor.java
index a360ece..5ce3ec9 100644
--- a/android/src/main/java/com/capitual/processors/PhotoIDScanProcessor.java
+++ b/android/src/main/java/com/capitual/processors/PhotoIDScanProcessor.java
@@ -122,7 +122,7 @@ public void processIDScanWhileFaceTecSDKWaits(final FaceTecIDScanResult idScanRe
NetworkingHelpers.cancelPendingRequests();
idScanResultCallback.cancel();
capFaceModule.sendEvent("onCloseModal", false);
- capFaceModule.processorPromise.reject("Status is not success!", "FaceTecDifferentStatus");
+ capFaceModule.processorPromise.reject("The scan status has not been completed!", "CapFaceInvalidSession");
return;
}
@@ -226,13 +226,14 @@ public void onResponse(@NonNull Call call, @NonNull okhttp3.Response response) t
success = idScanResultCallback.proceedToNextStep(scanResultBlob);
if (success) {
+ capFaceModule.sendEvent("onCloseModal", false);
capFaceModule.processorPromise.resolve(true);
}
} else {
idScanResultCallback.cancel();
capFaceModule.sendEvent("onCloseModal", false);
- capFaceModule.processorPromise.reject("FaceTec SDK wasn't have to values processed!",
- "FaceTecWasntProcessed");
+ capFaceModule.processorPromise.reject("CapFace SDK values were not processed!",
+ "CapFaceValuesWereNotProcessed");
}
} catch (JSONException e) {
e.printStackTrace();
diff --git a/android/src/main/java/com/capitual/reactnativecapfacesdk/ReactNativeCapfaceSdkModule.java b/android/src/main/java/com/capitual/reactnativecapfacesdk/ReactNativeCapfaceSdkModule.java
index 2c13e52..9d5be31 100644
--- a/android/src/main/java/com/capitual/reactnativecapfacesdk/ReactNativeCapfaceSdkModule.java
+++ b/android/src/main/java/com/capitual/reactnativecapfacesdk/ReactNativeCapfaceSdkModule.java
@@ -62,15 +62,22 @@ private boolean isDeveloperMode(Map params) {
return false;
}
- private void handleFaceTecSDKConfiguration(Map params, ReadableMap headers) {
+ private String getKeyValue(@NonNull Map object, String key) {
+ if (object.containsKey(key)) {
+ return object.get(key).toString();
+ }
+ return null;
+ }
+
+ private void handleCapFaceConfiguration(@NonNull Map params, ReadableMap headers) {
try {
- Config.setDevice(params.get("device").toString());
- Config.setUrl(params.get("url").toString());
- Config.setKey(params.get("key").toString());
- Config.setProductionKeyText(params.get("productionKey").toString());
+ Config.setDevice(getKeyValue(params, "device"));
+ Config.setUrl(getKeyValue(params, "url"));
+ Config.setKey(getKeyValue(params, "key"));
+ Config.setProductionKeyText(getKeyValue(params, "productionKey"));
Config.setHeaders(headers);
} catch (Exception error) {
- Log.d("Capitual - SDK", "Error while setting FaceTecSDK configuration!");
+ Log.d("Capitual - SDK", "CapFace SDK Configuration doesn't exists!");
}
}
@@ -83,29 +90,20 @@ public void initializeSdk(ReadableMap params, ReadableMap headers, com.facebook.
return;
}
- handleFaceTecSDKConfiguration(params.toHashMap(), headers);
+ handleCapFaceConfiguration(params.toHashMap(), headers);
if (Config.hasConfig()) {
- Config.initializeFaceTecSDKFromAutogeneratedConfig(
- reactContext,
- isDeveloperMode(params.toHashMap()),
- new FaceTecSDK.InitializeCallback() {
- @Override
- public void onCompletion(final boolean successful) {
- isInitialized = successful;
- callback.invoke(successful);
- if (!successful) {
- String status = FaceTecSDK.getStatus(reactContext).toString();
- Log.d("Capitual - SDK", "FaceTecSDK doesn't initialized!");
- } else {
- Log.d("Capitual - SDK", "FaceTecSDK initialized!");
- }
- }
- });
+ Config.initialize(reactContext, isDeveloperMode(params.toHashMap()), new FaceTecSDK.InitializeCallback() {
+ @Override
+ public void onCompletion(final boolean successful) {
+ isInitialized = successful;
+ callback.invoke(successful);
+ }
+ });
} else {
isInitialized = false;
callback.invoke(false);
- Log.d("Capitual - SDK", "FaceTecSDK doesn't initialized!");
+ Log.d("Capitual - SDK", "CapFace SDK doesn't initialized!");
}
this.handleTheme(Config.Theme);
@@ -202,8 +200,8 @@ public void removeListeners(Integer count) {
public void handleLivenessCheck(ReadableMap data, Promise promise) {
setProcessorPromise(promise);
if (!isInitialized) {
- Log.d("Capitual - SDK", "FaceTecSDK doesn't initialized!");
- this.processorPromise.reject("FaceTecSDK doesn't initialized!", "FaceTecDoenstInitialized");
+ Log.d("Capitual - SDK", "CapFace SDK has not been initialized!");
+ this.processorPromise.reject("CapFace SDK has not been initialized!", "CapFaceHasNotBeenInitialized");
return;
}
@@ -224,8 +222,8 @@ public void onSessionTokenReceived(String sessionToken) {
public void handleEnrollUser(ReadableMap data, Promise promise) {
setProcessorPromise(promise);
if (!isInitialized) {
- Log.d("Capitual - SDK", "FaceTecSDK doesn't initialized!");
- this.processorPromise.reject("FaceTecSDK doesn't initialized!", "FaceTecDoenstInitialized");
+ Log.d("Capitual - SDK", "CapFace SDK has not been initialized!");
+ this.processorPromise.reject("CapFace SDK has not been initialized!", "CapFaceHasNotBeenInitialized");
return;
}
@@ -247,8 +245,8 @@ public void onSessionTokenReceived(String sessionToken) {
public void handleAuthenticateUser(ReadableMap data, Promise promise) {
setProcessorPromise(promise);
if (!isInitialized) {
- Log.d("Capitual - SDK", "FaceTecSDK doesn't initialized!");
- this.processorPromise.reject("FaceTecSDK doesn't initialized!", "FaceTecDoenstInitialized");
+ Log.d("Capitual - SDK", "CapFace SDK has not been initialized!");
+ this.processorPromise.reject("CapFace SDK has not been initialized!", "CapFaceHasNotBeenInitialized");
return;
}
@@ -269,8 +267,8 @@ public void onSessionTokenReceived(String sessionToken) {
public void handlePhotoIDMatch(ReadableMap data, Promise promise) {
setProcessorPromise(promise);
if (!isInitialized) {
- Log.d("Capitual - SDK", "FaceTecSDK doesn't initialized!");
- this.processorPromise.reject("FaceTecSDK doesn't initialized!", "FaceTecDoenstInitialized");
+ Log.d("Capitual - SDK", "CapFace SDK has not been initialized!");
+ this.processorPromise.reject("CapFace SDK has not been initialized!", "CapFaceHasNotBeenInitialized");
return;
}
@@ -292,8 +290,8 @@ public void onSessionTokenReceived(String sessionToken) {
public void handlePhotoIDScan(ReadableMap data, Promise promise) {
setProcessorPromise(promise);
if (!isInitialized) {
- Log.d("Capitual - SDK", "FaceTecSDK doesn't initialized!");
- this.processorPromise.reject("FaceTecSDK doesn't initialized!", "FaceTecDoenstInitialized");
+ Log.d("Capitual - SDK", "CapFace SDK has not been initialized!");
+ this.processorPromise.reject("CapFace SDK has not been initialized!", "CapFaceHasNotBeenInitialized");
return;
}
diff --git a/android/src/main/res/drawable-nodpi/facetec_review.png b/android/src/main/res/drawable-nodpi/facetec_review.png
deleted file mode 100644
index d93830b..0000000
Binary files a/android/src/main/res/drawable-nodpi/facetec_review.png and /dev/null differ
diff --git a/android/src/main/res/drawable/facetec_additional_review_animation.xml b/android/src/main/res/drawable/facetec_additional_review_animation.xml
deleted file mode 100644
index c1f38dc..0000000
--- a/android/src/main/res/drawable/facetec_additional_review_animation.xml
+++ /dev/null
@@ -1,157 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/android/src/main/res/mipmap-hdpi/appicon.png b/android/src/main/res/mipmap-hdpi/appicon.png
deleted file mode 100644
index 42e66bb..0000000
Binary files a/android/src/main/res/mipmap-hdpi/appicon.png and /dev/null differ
diff --git a/android/src/main/res/mipmap-mdpi/appicon.png b/android/src/main/res/mipmap-mdpi/appicon.png
deleted file mode 100644
index 1b8e1ec..0000000
Binary files a/android/src/main/res/mipmap-mdpi/appicon.png and /dev/null differ
diff --git a/android/src/main/res/mipmap-xhdpi/appicon.png b/android/src/main/res/mipmap-xhdpi/appicon.png
deleted file mode 100644
index 858aee5..0000000
Binary files a/android/src/main/res/mipmap-xhdpi/appicon.png and /dev/null differ
diff --git a/android/src/main/res/mipmap-xxhdpi/appicon.png b/android/src/main/res/mipmap-xxhdpi/appicon.png
deleted file mode 100644
index 0a9fb11..0000000
Binary files a/android/src/main/res/mipmap-xxhdpi/appicon.png and /dev/null differ
diff --git a/android/src/main/res/mipmap-xxxhdpi/appicon.png b/android/src/main/res/mipmap-xxxhdpi/appicon.png
deleted file mode 100644
index 134ee6e..0000000
Binary files a/android/src/main/res/mipmap-xxxhdpi/appicon.png and /dev/null differ
diff --git a/android/src/main/res/strings.xml b/android/src/main/res/strings.xml
deleted file mode 100644
index 8014b13..0000000
--- a/android/src/main/res/strings.xml
+++ /dev/null
@@ -1,5 +0,0 @@
-
-
- 認証する
- 登録します
-
\ No newline at end of file
diff --git a/android/src/main/res/values-ja/strings.xml b/android/src/main/res/values-ja/strings.xml
deleted file mode 100644
index 8014b13..0000000
--- a/android/src/main/res/values-ja/strings.xml
+++ /dev/null
@@ -1,5 +0,0 @@
-
-
- 認証する
- 登録します
-
\ No newline at end of file
diff --git a/android/src/main/res/values-pt-rBR/strings.xml b/android/src/main/res/values-pt-rBR/strings.xml
deleted file mode 100644
index 102588b..0000000
--- a/android/src/main/res/values-pt-rBR/strings.xml
+++ /dev/null
@@ -1,5 +0,0 @@
-
-
- Inscrever
- Autenticar
-
\ No newline at end of file
diff --git a/android/src/main/res/values-pt-rPT/strings.xml b/android/src/main/res/values-pt-rPT/strings.xml
deleted file mode 100644
index 102588b..0000000
--- a/android/src/main/res/values-pt-rPT/strings.xml
+++ /dev/null
@@ -1,5 +0,0 @@
-
-
- Inscrever
- Autenticar
-
\ No newline at end of file
diff --git a/android/src/main/res/values/strings.xml b/android/src/main/res/values/strings.xml
index f8fc825..0e4b109 100644
--- a/android/src/main/res/values/strings.xml
+++ b/android/src/main/res/values/strings.xml
@@ -1,12 +1,3 @@
- FaceTec SDK
- Enroll User
- Authenticate User
- 3D Liveness Check
- Match Face to ID
- Scan & OCR ID
- View Session Result
- View Audit Trail
- Design Showcase
- Network Connection Slow…
+ CapFace SDK Example
diff --git a/example/package-lock.json b/example/package-lock.json
index b119882..6211fab 100644
--- a/example/package-lock.json
+++ b/example/package-lock.json
@@ -4559,14 +4559,14 @@
}
},
"node_modules/array.prototype.flatmap": {
- "version": "1.3.1",
- "resolved": "https://registry.npmjs.org/array.prototype.flatmap/-/array.prototype.flatmap-1.3.1.tgz",
- "integrity": "sha512-8UGn9O1FDVvMNB0UlLv4voxRMze7+FpHyF5mSMRjWHUMlpoDViniy05870VlxhfgTnLbpuwTzvD76MTtWxB/mQ==",
+ "version": "1.3.2",
+ "resolved": "https://registry.npmjs.org/array.prototype.flatmap/-/array.prototype.flatmap-1.3.2.tgz",
+ "integrity": "sha512-Ewyx0c9PmpcsByhSW4r+9zDU7sGjFc86qf/kKtuSCRdhfbk0SNLLkaT5qvcHnRGgc5NP/ly/y+qkXkqONX54CQ==",
"dev": true,
"dependencies": {
"call-bind": "^1.0.2",
- "define-properties": "^1.1.4",
- "es-abstract": "^1.20.4",
+ "define-properties": "^1.2.0",
+ "es-abstract": "^1.22.1",
"es-shim-unscopables": "^1.0.0"
},
"engines": {
@@ -4577,16 +4577,16 @@
}
},
"node_modules/array.prototype.tosorted": {
- "version": "1.1.1",
- "resolved": "https://registry.npmjs.org/array.prototype.tosorted/-/array.prototype.tosorted-1.1.1.tgz",
- "integrity": "sha512-pZYPXPRl2PqWcsUs6LOMn+1f1532nEoPTYowBtqLwAW+W8vSVhkIGnmOX1t/UQjD6YGI0vcD2B1U7ZFGQH9jnQ==",
+ "version": "1.1.2",
+ "resolved": "https://registry.npmjs.org/array.prototype.tosorted/-/array.prototype.tosorted-1.1.2.tgz",
+ "integrity": "sha512-HuQCHOlk1Weat5jzStICBCd83NxiIMwqDg/dHEsoefabn/hJRj5pVdWcPUSpRrwhwxZOsQassMpgN/xRYFBMIg==",
"dev": true,
"dependencies": {
"call-bind": "^1.0.2",
- "define-properties": "^1.1.4",
- "es-abstract": "^1.20.4",
+ "define-properties": "^1.2.0",
+ "es-abstract": "^1.22.1",
"es-shim-unscopables": "^1.0.0",
- "get-intrinsic": "^1.1.3"
+ "get-intrinsic": "^1.2.1"
}
},
"node_modules/arraybuffer.prototype.slice": {
@@ -4969,9 +4969,9 @@
}
},
"node_modules/caniuse-lite": {
- "version": "1.0.30001527",
- "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001527.tgz",
- "integrity": "sha512-YkJi7RwPgWtXVSgK4lG9AHH57nSzvvOp9MesgXmw4Q7n0C3H04L0foHqfxcmSAm5AcWb8dW9AYj2tR7/5GnddQ==",
+ "version": "1.0.30001529",
+ "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001529.tgz",
+ "integrity": "sha512-n2pUQYGAkrLG4QYj2desAh+NqsJpHbNmVZz87imptDdxLAtjxary7Df/psdfyDGmskJK/9Dt9cPnx5RZ3CU4Og==",
"funding": [
{
"type": "opencollective",
@@ -5184,9 +5184,9 @@
"integrity": "sha512-ASFBup0Mz1uyiIjANan1jzLQami9z1PoYSZCiiYW2FczPbenXc45FZdBZLzOT+r6+iciuEModtmCti+hjaAk0A=="
},
"node_modules/core-js-compat": {
- "version": "3.32.1",
- "resolved": "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.32.1.tgz",
- "integrity": "sha512-GSvKDv4wE0bPnQtjklV101juQ85g6H3rm5PDP20mqlS5j0kXF3pP97YvAu5hl+uFHqMictp3b2VxOHljWMAtuA==",
+ "version": "3.32.2",
+ "resolved": "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.32.2.tgz",
+ "integrity": "sha512-+GjlguTDINOijtVRUxrQOv3kfu9rl+qPNdX2LTbJ/ZyVTuxK+ksVSAGX1nHstu4hrv1En/uPTtWgq2gI5wt4AQ==",
"dependencies": {
"browserslist": "^4.21.10"
},
@@ -5409,9 +5409,9 @@
"integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow=="
},
"node_modules/electron-to-chromium": {
- "version": "1.4.508",
- "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.508.tgz",
- "integrity": "sha512-FFa8QKjQK/A5QuFr2167myhMesGrhlOBD+3cYNxO9/S4XzHEXesyTD/1/xF644gC8buFPz3ca6G1LOQD0tZrrg=="
+ "version": "1.4.512",
+ "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.512.tgz",
+ "integrity": "sha512-1W8wRbYlQE4ph7eoj3TJ+uqwO6+xvAE/L+KGU7WTQQvX3tnSIGZAb90MTsMoJqzntamiwJhBAj4WZmygXhsOUg=="
},
"node_modules/emoji-regex": {
"version": "8.0.0",
@@ -5792,12 +5792,11 @@
}
},
"node_modules/eslint-plugin-react-native": {
- "version": "4.0.0",
- "resolved": "https://registry.npmjs.org/eslint-plugin-react-native/-/eslint-plugin-react-native-4.0.0.tgz",
- "integrity": "sha512-kMmdxrSY7A1WgdqaGC+rY/28rh7kBGNBRsk48ovqkQmdg5j4K+DaFmegENDzMrdLkoufKGRNkKX6bgSwQTCAxQ==",
+ "version": "4.1.0",
+ "resolved": "https://registry.npmjs.org/eslint-plugin-react-native/-/eslint-plugin-react-native-4.1.0.tgz",
+ "integrity": "sha512-QLo7rzTBOl43FvVqDdq5Ql9IoElIuTdjrz9SKAXCvULvBoRZ44JGSkx9z4999ZusCsb4rK3gjS8gOGyeYqZv2Q==",
"dev": true,
"dependencies": {
- "@babel/traverse": "^7.7.4",
"eslint-plugin-react-native-globals": "^0.1.1"
},
"peerDependencies": {
@@ -10697,14 +10696,14 @@
}
},
"node_modules/string.prototype.trim": {
- "version": "1.2.7",
- "resolved": "https://registry.npmjs.org/string.prototype.trim/-/string.prototype.trim-1.2.7.tgz",
- "integrity": "sha512-p6TmeT1T3411M8Cgg9wBTMRtY2q9+PNy9EV1i2lIXUN/btt763oIfxwN3RR8VU6wHX8j/1CFy0L+YuThm6bgOg==",
+ "version": "1.2.8",
+ "resolved": "https://registry.npmjs.org/string.prototype.trim/-/string.prototype.trim-1.2.8.tgz",
+ "integrity": "sha512-lfjY4HcixfQXOfaqCvcBuOIapyaroTXhbkfJN3gcB1OtyupngWK4sEET9Knd0cXd28kTUqu/kHoV4HKSJdnjiQ==",
"dev": true,
"dependencies": {
"call-bind": "^1.0.2",
- "define-properties": "^1.1.4",
- "es-abstract": "^1.20.4"
+ "define-properties": "^1.2.0",
+ "es-abstract": "^1.22.1"
},
"engines": {
"node": ">= 0.4"
@@ -10714,14 +10713,14 @@
}
},
"node_modules/string.prototype.trimend": {
- "version": "1.0.6",
- "resolved": "https://registry.npmjs.org/string.prototype.trimend/-/string.prototype.trimend-1.0.6.tgz",
- "integrity": "sha512-JySq+4mrPf9EsDBEDYMOb/lM7XQLulwg5R/m1r0PXEFqrV0qHvl58sdTilSXtKOflCsK2E8jxf+GKC0T07RWwQ==",
+ "version": "1.0.7",
+ "resolved": "https://registry.npmjs.org/string.prototype.trimend/-/string.prototype.trimend-1.0.7.tgz",
+ "integrity": "sha512-Ni79DqeB72ZFq1uH/L6zJ+DKZTkOtPIHovb3YZHQViE+HDouuU4mBrLOLDn5Dde3RF8qw5qVETEjhu9locMLvA==",
"dev": true,
"dependencies": {
"call-bind": "^1.0.2",
- "define-properties": "^1.1.4",
- "es-abstract": "^1.20.4"
+ "define-properties": "^1.2.0",
+ "es-abstract": "^1.22.1"
},
"funding": {
"url": "https://github.com/sponsors/ljharb"
diff --git a/example/types/index.d.ts b/example/types/index.d.ts
index 03e78f4..343b4c9 100644
--- a/example/types/index.d.ts
+++ b/example/types/index.d.ts
@@ -1 +1 @@
-declare module '@capitual/react-native-capface-sdk';
\ No newline at end of file
+declare module '@capitual/react-native-capface-sdk';
diff --git a/package-lock.json b/package-lock.json
index d4e60c6..7f57e60 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -16,7 +16,6 @@
"@commitlint/config-conventional": "^17.0.2",
"@evilmartians/lefthook": "^1.2.2",
"@react-native-community/eslint-config": "^3.2.0",
- "@react-native/eslint-config": "^0.72.2",
"@semantic-release/changelog": "6.0.3",
"@semantic-release/commit-analyzer": "10.0.1",
"@semantic-release/git": "10.0.1",
@@ -2239,7 +2238,6 @@
"integrity": "sha512-ooWCrlZP11i8GImSjTHYHLkvFDP48nS4+204nGb1RiX/WXYHmJA2III9/e2DWVabCESdW7hBAEzHRqUn9OUVvQ==",
"dev": true,
"optional": true,
- "peer": true,
"engines": {
"node": ">=0.1.90"
}
@@ -5470,37 +5468,6 @@
"@babel/preset-env": "^7.1.6"
}
},
- "node_modules/@react-native/eslint-config": {
- "version": "0.72.2",
- "resolved": "https://registry.npmjs.org/@react-native/eslint-config/-/eslint-config-0.72.2.tgz",
- "integrity": "sha512-rAYuQQXzi63W7+9Pu/+23od/b/lTSzHjMFibum3sKgdG2LIyvhoMEWQ5+Chu7TqebqYy1b9SDn/KEMHvpWFtNg==",
- "dev": true,
- "dependencies": {
- "@babel/core": "^7.20.0",
- "@babel/eslint-parser": "^7.20.0",
- "@react-native/eslint-plugin": "^0.72.0",
- "@typescript-eslint/eslint-plugin": "^5.30.5",
- "@typescript-eslint/parser": "^5.30.5",
- "eslint-config-prettier": "^8.5.0",
- "eslint-plugin-eslint-comments": "^3.2.0",
- "eslint-plugin-ft-flow": "^2.0.1",
- "eslint-plugin-jest": "^26.5.3",
- "eslint-plugin-prettier": "^4.2.1",
- "eslint-plugin-react": "^7.30.1",
- "eslint-plugin-react-hooks": "^4.6.0",
- "eslint-plugin-react-native": "^4.0.0"
- },
- "peerDependencies": {
- "eslint": ">=8",
- "prettier": ">=2"
- }
- },
- "node_modules/@react-native/eslint-plugin": {
- "version": "0.72.0",
- "resolved": "https://registry.npmjs.org/@react-native/eslint-plugin/-/eslint-plugin-0.72.0.tgz",
- "integrity": "sha512-xWQthnyKd+H22TBqeJUTFebsyWAAwzUb7EQCT8F/WMZsS1sv5UG+2cM/cU9/2HEbVZgxHYuLIi915WznjKPvlg==",
- "dev": true
- },
"node_modules/@react-native/gradle-plugin": {
"version": "0.72.11",
"resolved": "https://registry.npmjs.org/@react-native/gradle-plugin/-/gradle-plugin-0.72.11.tgz",
@@ -7034,14 +7001,14 @@
}
},
"node_modules/array.prototype.flatmap": {
- "version": "1.3.1",
- "resolved": "https://registry.npmjs.org/array.prototype.flatmap/-/array.prototype.flatmap-1.3.1.tgz",
- "integrity": "sha512-8UGn9O1FDVvMNB0UlLv4voxRMze7+FpHyF5mSMRjWHUMlpoDViniy05870VlxhfgTnLbpuwTzvD76MTtWxB/mQ==",
+ "version": "1.3.2",
+ "resolved": "https://registry.npmjs.org/array.prototype.flatmap/-/array.prototype.flatmap-1.3.2.tgz",
+ "integrity": "sha512-Ewyx0c9PmpcsByhSW4r+9zDU7sGjFc86qf/kKtuSCRdhfbk0SNLLkaT5qvcHnRGgc5NP/ly/y+qkXkqONX54CQ==",
"dev": true,
"dependencies": {
"call-bind": "^1.0.2",
- "define-properties": "^1.1.4",
- "es-abstract": "^1.20.4",
+ "define-properties": "^1.2.0",
+ "es-abstract": "^1.22.1",
"es-shim-unscopables": "^1.0.0"
},
"engines": {
@@ -7052,14 +7019,14 @@
}
},
"node_modules/array.prototype.map": {
- "version": "1.0.5",
- "resolved": "https://registry.npmjs.org/array.prototype.map/-/array.prototype.map-1.0.5.tgz",
- "integrity": "sha512-gfaKntvwqYIuC7mLLyv2wzZIJqrRhn5PZ9EfFejSx6a78sV7iDsGpG9P+3oUPtm1Rerqm6nrKS4FYuTIvWfo3g==",
+ "version": "1.0.6",
+ "resolved": "https://registry.npmjs.org/array.prototype.map/-/array.prototype.map-1.0.6.tgz",
+ "integrity": "sha512-nK1psgF2cXqP3wSyCSq0Hc7zwNq3sfljQqaG27r/7a7ooNUnn5nGq6yYWyks9jMO5EoFQ0ax80hSg6oXSRNXaw==",
"dev": true,
"dependencies": {
"call-bind": "^1.0.2",
- "define-properties": "^1.1.4",
- "es-abstract": "^1.20.4",
+ "define-properties": "^1.2.0",
+ "es-abstract": "^1.22.1",
"es-array-method-boxes-properly": "^1.0.0",
"is-string": "^1.0.7"
},
@@ -7071,16 +7038,16 @@
}
},
"node_modules/array.prototype.tosorted": {
- "version": "1.1.1",
- "resolved": "https://registry.npmjs.org/array.prototype.tosorted/-/array.prototype.tosorted-1.1.1.tgz",
- "integrity": "sha512-pZYPXPRl2PqWcsUs6LOMn+1f1532nEoPTYowBtqLwAW+W8vSVhkIGnmOX1t/UQjD6YGI0vcD2B1U7ZFGQH9jnQ==",
+ "version": "1.1.2",
+ "resolved": "https://registry.npmjs.org/array.prototype.tosorted/-/array.prototype.tosorted-1.1.2.tgz",
+ "integrity": "sha512-HuQCHOlk1Weat5jzStICBCd83NxiIMwqDg/dHEsoefabn/hJRj5pVdWcPUSpRrwhwxZOsQassMpgN/xRYFBMIg==",
"dev": true,
"dependencies": {
"call-bind": "^1.0.2",
- "define-properties": "^1.1.4",
- "es-abstract": "^1.20.4",
+ "define-properties": "^1.2.0",
+ "es-abstract": "^1.22.1",
"es-shim-unscopables": "^1.0.0",
- "get-intrinsic": "^1.1.3"
+ "get-intrinsic": "^1.2.1"
}
},
"node_modules/arraybuffer.prototype.slice": {
@@ -7922,9 +7889,9 @@
}
},
"node_modules/caniuse-lite": {
- "version": "1.0.30001527",
- "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001527.tgz",
- "integrity": "sha512-YkJi7RwPgWtXVSgK4lG9AHH57nSzvvOp9MesgXmw4Q7n0C3H04L0foHqfxcmSAm5AcWb8dW9AYj2tR7/5GnddQ==",
+ "version": "1.0.30001529",
+ "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001529.tgz",
+ "integrity": "sha512-n2pUQYGAkrLG4QYj2desAh+NqsJpHbNmVZz87imptDdxLAtjxary7Df/psdfyDGmskJK/9Dt9cPnx5RZ3CU4Og==",
"dev": true,
"funding": [
{
@@ -8055,7 +8022,6 @@
"resolved": "https://registry.npmjs.org/cli-table3/-/cli-table3-0.6.3.tgz",
"integrity": "sha512-w5Jac5SykAeZJKntOxJCrm63Eg5/4dhMWIcuTbo9rpE+brgaSZo0RuNJZeOyMgsUdhDeojvgyQLmjI+K50ZGyg==",
"dev": true,
- "peer": true,
"dependencies": {
"string-width": "^4.2.0"
},
@@ -8499,9 +8465,9 @@
"dev": true
},
"node_modules/core-js-compat": {
- "version": "3.32.1",
- "resolved": "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.32.1.tgz",
- "integrity": "sha512-GSvKDv4wE0bPnQtjklV101juQ85g6H3rm5PDP20mqlS5j0kXF3pP97YvAu5hl+uFHqMictp3b2VxOHljWMAtuA==",
+ "version": "3.32.2",
+ "resolved": "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.32.2.tgz",
+ "integrity": "sha512-+GjlguTDINOijtVRUxrQOv3kfu9rl+qPNdX2LTbJ/ZyVTuxK+ksVSAGX1nHstu4hrv1En/uPTtWgq2gI5wt4AQ==",
"dev": true,
"dependencies": {
"browserslist": "^4.21.10"
@@ -9355,9 +9321,9 @@
"dev": true
},
"node_modules/electron-to-chromium": {
- "version": "1.4.508",
- "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.508.tgz",
- "integrity": "sha512-FFa8QKjQK/A5QuFr2167myhMesGrhlOBD+3cYNxO9/S4XzHEXesyTD/1/xF644gC8buFPz3ca6G1LOQD0tZrrg==",
+ "version": "1.4.512",
+ "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.512.tgz",
+ "integrity": "sha512-1W8wRbYlQE4ph7eoj3TJ+uqwO6+xvAE/L+KGU7WTQQvX3tnSIGZAb90MTsMoJqzntamiwJhBAj4WZmygXhsOUg==",
"dev": true
},
"node_modules/emittery": {
@@ -10039,12 +10005,11 @@
}
},
"node_modules/eslint-plugin-react-native": {
- "version": "4.0.0",
- "resolved": "https://registry.npmjs.org/eslint-plugin-react-native/-/eslint-plugin-react-native-4.0.0.tgz",
- "integrity": "sha512-kMmdxrSY7A1WgdqaGC+rY/28rh7kBGNBRsk48ovqkQmdg5j4K+DaFmegENDzMrdLkoufKGRNkKX6bgSwQTCAxQ==",
+ "version": "4.1.0",
+ "resolved": "https://registry.npmjs.org/eslint-plugin-react-native/-/eslint-plugin-react-native-4.1.0.tgz",
+ "integrity": "sha512-QLo7rzTBOl43FvVqDdq5Ql9IoElIuTdjrz9SKAXCvULvBoRZ44JGSkx9z4999ZusCsb4rK3gjS8gOGyeYqZv2Q==",
"dev": true,
"dependencies": {
- "@babel/traverse": "^7.7.4",
"eslint-plugin-react-native-globals": "^0.1.1"
},
"peerDependencies": {
@@ -24200,14 +24165,14 @@
}
},
"node_modules/string.prototype.trim": {
- "version": "1.2.7",
- "resolved": "https://registry.npmjs.org/string.prototype.trim/-/string.prototype.trim-1.2.7.tgz",
- "integrity": "sha512-p6TmeT1T3411M8Cgg9wBTMRtY2q9+PNy9EV1i2lIXUN/btt763oIfxwN3RR8VU6wHX8j/1CFy0L+YuThm6bgOg==",
+ "version": "1.2.8",
+ "resolved": "https://registry.npmjs.org/string.prototype.trim/-/string.prototype.trim-1.2.8.tgz",
+ "integrity": "sha512-lfjY4HcixfQXOfaqCvcBuOIapyaroTXhbkfJN3gcB1OtyupngWK4sEET9Knd0cXd28kTUqu/kHoV4HKSJdnjiQ==",
"dev": true,
"dependencies": {
"call-bind": "^1.0.2",
- "define-properties": "^1.1.4",
- "es-abstract": "^1.20.4"
+ "define-properties": "^1.2.0",
+ "es-abstract": "^1.22.1"
},
"engines": {
"node": ">= 0.4"
@@ -24217,14 +24182,14 @@
}
},
"node_modules/string.prototype.trimend": {
- "version": "1.0.6",
- "resolved": "https://registry.npmjs.org/string.prototype.trimend/-/string.prototype.trimend-1.0.6.tgz",
- "integrity": "sha512-JySq+4mrPf9EsDBEDYMOb/lM7XQLulwg5R/m1r0PXEFqrV0qHvl58sdTilSXtKOflCsK2E8jxf+GKC0T07RWwQ==",
+ "version": "1.0.7",
+ "resolved": "https://registry.npmjs.org/string.prototype.trimend/-/string.prototype.trimend-1.0.7.tgz",
+ "integrity": "sha512-Ni79DqeB72ZFq1uH/L6zJ+DKZTkOtPIHovb3YZHQViE+HDouuU4mBrLOLDn5Dde3RF8qw5qVETEjhu9locMLvA==",
"dev": true,
"dependencies": {
"call-bind": "^1.0.2",
- "define-properties": "^1.1.4",
- "es-abstract": "^1.20.4"
+ "define-properties": "^1.2.0",
+ "es-abstract": "^1.22.1"
},
"funding": {
"url": "https://github.com/sponsors/ljharb"
diff --git a/package.json b/package.json
index b1b14f1..28191fb 100644
--- a/package.json
+++ b/package.json
@@ -57,7 +57,6 @@
"devDependencies": {
"@commitlint/config-conventional": "^17.0.2",
"@evilmartians/lefthook": "^1.2.2",
- "@react-native/eslint-config": "^0.72.2",
"@semantic-release/changelog": "6.0.3",
"@semantic-release/commit-analyzer": "10.0.1",
"@semantic-release/git": "10.0.1",
@@ -108,7 +107,7 @@
"eslintConfig": {
"root": true,
"extends": [
- "@react-native/eslint-config",
+ "@react-native-community",
"prettier"
],
"rules": {
@@ -119,15 +118,15 @@
"singleQuote": true,
"tabWidth": 2,
"trailingComma": "es5",
- "useTabs": false
+ "useTabs": false,
+ "endOfLine": "auto"
}
]
}
},
"eslintIgnore": [
"node_modules/",
- "lib/",
- "example/"
+ "lib/"
],
"prettier": {
"quoteProps": "consistent",
diff --git a/src/types/index.ts b/src/types/index.ts
index f321763..0605d34 100644
--- a/src/types/index.ts
+++ b/src/types/index.ts
@@ -759,26 +759,21 @@ export declare namespace CapfaceSdk {
enum Errors {
/**
* @description When some processors method is runned, but CapfaceSDK
- * **wasn't initialized**.
+ * **has not been initialized!**.
*/
- CapfaceDoenstInitialized = 'CapfaceDoenstInitialized',
+ CapFaceHasNotBeenInitialized = 'CapFaceHasNotBeenInitialized',
/**
* @description When the image sent to the processors cannot be processed
* due to inconsistency.
*/
- CapfaceWasntProcessed = 'CapfaceWasntProcessed',
+ CapFaceValuesWereNotProcessed = 'CapFaceValuesWereNotProcessed',
/**
* @description When exists some network error.
*/
HTTPSError = 'HTTPSError',
- /**
- * @description When parameters is not provided.
- */
- NoParametersProvided = 'NoParametersProvided',
-
/**
* @description When exists some problem in getting data in request of
* **base URL** information. Only Android.
@@ -786,10 +781,9 @@ export declare namespace CapfaceSdk {
JSONError = 'JSONError',
/**
- * @description When session status is different completed successfully.
- * Only Android.
+ * @description When session status is invalid. Only Android.
*/
- CapfaceDifferentStatus = 'CapfaceDifferentStatus',
+ CapFaceInvalidSession = 'CapFaceInvalidSession',
/**
* @description When the image user sent to the processors cannot be
@@ -811,16 +805,69 @@ export declare namespace CapfaceSdk {
*/
interface Methods {
/**
- * @description ....
+ * @description This is the **principal** method to be called, he must be
+ * **called first** to initialize the Capface SDK. If he doens't be called
+ * the other methods **don't works!**
+ *
+ * @param {CapfaceSdk.Params} params - Initialization SDK parameters.
+ * @param {CapfaceSdk.Headers} headers - Headers your requests, to each
+ * request it's sent. The headers is optional.
+ * @param {Function} callback - Callback function to be called after with
+ * the response of the successfully. The callback is optional.
+ *
+ * @return {Promise} Represents if initialization was a successful.
*/
initializeSdk(
params: Params,
headers?: Headers,
callback?: Function
): Promise;
+
+ /**
+ * @description This method make to read from face and documents for user,
+ * after comparate face and face documents from user to check veracity.
+ *
+ * @param {Object|undefined} data - The object with data to be will send on
+ * photo ID match. The data is optional.
+ *
+ * @return {Promise} Represents if photo match was a successful.
+ * @throws If photo ID match was a unsuccessful or occurred some interference.
+ */
handlePhotoIDMatch(data?: Object): Promise;
+
+ /**
+ * @description This method makes a 3D reading of the user's face. But, you
+ * must use to **subscribe** user in Capface SDK or in your server.
+ *
+ * @param {Object|undefined} data - The object with data to be will send on
+ * enrollment. The data is optional.
+ *
+ * @return {Promise} Represents if enrollment was a successful.
+ * @throws If enrollment was a unsuccessful or occurred some interference.
+ */
handleEnrollUser(data?: Object): Promise;
+
+ /**
+ * @description This method makes a 3D reading of the user's face. But, you
+ * must use to **authenticate** user in Capface SDK or in your server.
+ *
+ * @param {Object|undefined} data - The object with data to be will send on
+ * authentication. The data is optional.
+ *
+ * @return {Promise} Represents if authentication was a successful.
+ * @throws If authenticate was a unsuccessful or occurred some interference.
+ */
handleAuthenticateUser(data?: Object): Promise;
+
+ /**
+ * @description This method must be used to **set** the **theme** of the
+ * Capface SDK screen.
+ *
+ * @param {CapfaceSdk.Theme|undefined} options - The object theme options.
+ * All options are optional.
+ *
+ * @return {void}
+ */
handleTheme(options?: Theme): void;
}
}