Skip to content

Commit 3d7da2e

Browse files
author
Jenkins
committed
7.2.386
1 parent 71ae46c commit 3d7da2e

17 files changed

Lines changed: 371 additions & 199 deletions

File tree

README.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,11 @@
33

44
[![pub package](https://img.shields.io/pub/v/flutter_face_api.svg)](https://pub.dev/packages/flutter_face_api)
55

6-
Face SDK is a framework that is used for face matching, recognition and liveness detection.
6+
Face SDK is a framework that is used for face matching, recognition and liveness detection. This plugin makes possible to use it with flutter.
77

88
## Documentation
9-
10-
You can find documentation [here](https://docs.regulaforensics.com/develop/face-sdk/mobile/).
9+
* [Documentation](https://docs.regulaforensics.com/develop/face-sdk/mobile/)
10+
* [API Reference](https://pub.dev/documentation/flutter_face_api)
1111

1212
## Support
13-
14-
Please do not hesitate to [contact us](https://support.regulaforensics.com/hc/requests/new), if you need any assistance or want to report a bug / suggest an improvement.
13+
If you have any technical questions, feel free to [contact](mailto:support@regulaforensics.com) us or create issues [here](https://github.com/regulaforensics/flutter_face_api/issues).

android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ android {
2828
}
2929

3030
dependencies {
31-
implementation('com.regula.face:api:7.1.3897') {
31+
implementation('com.regula.face:api:7.2.3994') {
3232
transitive = true
3333
}
3434

android/src/main/kotlin/com/regula/plugin/facesdk/JSONConstructor.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -833,6 +833,7 @@ fun searchPersonRequestFromJSON(it: JSONObject) = object : SearchPersonRequest()
833833
groupIdsForSearch = it.getJSONArrayOrNull("groupIdsForSearch").toArray()
834834
threshold = it.getDoubleOrNull("threshold")?.toFloat()
835835
limit = it.getIntOrNull("limit")
836+
tag = it.getStringOrNull("tag")
836837
imageUpload = imageUploadFromJSON(it.getJSONObjectOrNull("imageUpload"))
837838
isDetectAll = it.optBoolean("detectAll", false)
838839
outputImageParams = outputImageParamsFromJSON(it.getJSONObjectOrNull("outputImageParams"))
@@ -843,6 +844,7 @@ fun generateSearchPersonRequest(it: SearchPersonRequest) = mapOf(
843844
"groupIdsForSearch" to it.groupIdsForSearch.toJson(),
844845
"threshold" to it.threshold,
845846
"limit" to it.limit,
847+
"tag" to it.tag,
846848
"imageUpload" to generateImageUpload(it.imageUpload),
847849
"detectAll" to it.isDetectAll,
848850
"outputImageParams" to generateOutputImageParams(it.outputImageParams)

android/src/main/kotlin/com/regula/plugin/facesdk/Main.kt

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,12 @@ fun methodCall(method: String, callback: (Any?) -> Unit): Any = when (method) {
3030
"getVersion" -> getVersion(callback)
3131
"getServiceUrl" -> getServiceUrl(callback)
3232
"setServiceUrl" -> setServiceUrl(argsNullable(0))
33+
"getTenant" -> getTenant(callback)
34+
"setTenant" -> setTenant(argsNullable(0))
35+
"getEnv" -> getEnv(callback)
36+
"setEnv" -> setEnv(argsNullable(0))
37+
"getLocale" -> getLocale(callback)
38+
"setLocale" -> setLocale(argsNullable(0))
3339
"setLocalizationDictionary" -> setLocalizationDictionary(args(0))
3440
"setRequestHeaders" -> setRequestHeaders(args(0))
3541
"setCustomization" -> setCustomization(args(0))
@@ -81,6 +87,18 @@ fun getServiceUrl(callback: Callback) = callback(Instance().serviceUrl)
8187

8288
fun setServiceUrl(url: String?) = url.let { Instance().serviceUrl = it }
8389

90+
fun getTenant(callback: Callback) = callback(Instance().tenant)
91+
92+
fun setTenant(tag: String?) = tag.let { Instance().tenant = it }
93+
94+
fun getEnv(callback: Callback) = callback(Instance().env)
95+
96+
fun setEnv(tag: String?) = tag.let { Instance().env = it }
97+
98+
fun getLocale(callback: Callback) = callback(Instance().locale)
99+
100+
fun setLocale(locale: String?) = locale.let { Instance().locale = it }
101+
84102
fun setLocalizationDictionary(dictionary: JSONObject) {
85103
localizationCallbacks = LocalizationCallbacks { if (dictionary.has(it)) dictionary.getString(it) else null }
86104
Instance().setLocalizationCallback(localizationCallbacks!!)

example/README.md

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,8 @@
11
# How to build the demo application
22

33
1. Download or the clone current repository using the command `git clone https://github.com/regulaforensics/flutter_face_api.git.git`.
4-
2. Run the following commands in Terminal:
5-
```bash
6-
$ cd example
7-
# Install packages
8-
$ flutter pub get
9-
# Check that supported devices are running
10-
$ flutter devices
11-
# Run the app
12-
$ flutter run
13-
```
4+
2. Execute `flutter pub get` within this directory.
5+
3. Run the app: `flutter run`.
146

157
# How to use offline match
168
1. Place a license that supports offline match at `assets/regula.license`.

example/android/app/src/main/AndroidManifest.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
android:exported="true"
1515
android:hardwareAccelerated="true"
1616
android:launchMode="singleTop"
17-
android:taskAffinity=""
1817
android:theme="@style/LaunchTheme"
1918
android:windowSoftInputMode="adjustResize">
2019
<meta-data

example/assets/images/portrait.png

2.25 KB
Loading

0 commit comments

Comments
 (0)