@regulaforensics/face-sdk 8.1.613-nightly → 8.1.619-nightly
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/RNFaceSDK.podspec +2 -2
- package/android/CVDFaceSDK.kt +3 -0
- package/android/build.gradle +1 -1
- package/android/cordova.gradle +1 -1
- package/android/src/main/java/com/regula/plugin/facesdk/Main.kt +4 -4
- package/android/src/main/java/com/regula/plugin/facesdk/RNFaceApiModule.kt +3 -0
- package/examples/capacitor/package.json +2 -2
- package/examples/ionic/package-lock.json +4729 -2204
- package/examples/ionic/package.json +11 -11
- package/examples/react_native/package-lock.json +3 -3
- package/examples/react_native/package.json +2 -2
- package/package.json +1 -1
- package/plugin.xml +2 -2
- package/test/package-lock.json +1 -1
package/RNFaceSDK.podspec
CHANGED
|
@@ -5,7 +5,7 @@ source = File.join(__dir__, 'ios')
|
|
|
5
5
|
|
|
6
6
|
Pod::Spec.new do |s|
|
|
7
7
|
s.name = 'RNFaceSDK'
|
|
8
|
-
s.version = '8.1.
|
|
8
|
+
s.version = '8.1.619-nightly'
|
|
9
9
|
s.summary = package['description']
|
|
10
10
|
s.license = package['license']
|
|
11
11
|
|
|
@@ -16,6 +16,6 @@ Pod::Spec.new do |s|
|
|
|
16
16
|
s.ios.deployment_target = '13.0'
|
|
17
17
|
s.source_files = 'ios/**/*.{h,m}'
|
|
18
18
|
s.exclude_files = [ 'ios/CVDFaceSDK.h', 'ios/CVDFaceSDK.m' ]
|
|
19
|
-
s.dependency 'FaceSDKNightly', '8.1.
|
|
19
|
+
s.dependency 'FaceSDKNightly', '8.1.3411'
|
|
20
20
|
s.dependency 'React'
|
|
21
21
|
end
|
package/android/CVDFaceSDK.kt
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
package com.regula.plugin.facesdk
|
|
2
2
|
|
|
3
|
+
import android.app.Activity
|
|
3
4
|
import android.content.Context
|
|
4
5
|
import android.util.Log
|
|
5
6
|
import org.apache.cordova.CallbackContext
|
|
@@ -13,6 +14,8 @@ lateinit var args: JSONArray
|
|
|
13
14
|
lateinit var binding: CordovaPlugin
|
|
14
15
|
val context: Context
|
|
15
16
|
get() = binding.cordova.context
|
|
17
|
+
val activity: Activity
|
|
18
|
+
get() = binding.cordova.activity
|
|
16
19
|
|
|
17
20
|
fun sendEvent(callbackId: String, data: Any? = "") {
|
|
18
21
|
val pluginResult = when (data) {
|
package/android/build.gradle
CHANGED
|
@@ -29,7 +29,7 @@ dependencies {
|
|
|
29
29
|
//noinspection GradleDynamicVersion
|
|
30
30
|
implementation 'com.facebook.react:react-native:+'
|
|
31
31
|
//noinspection GradleDependency
|
|
32
|
-
implementation('com.regula.face:api:8.1.
|
|
32
|
+
implementation('com.regula.face:api:8.1.4196'){
|
|
33
33
|
transitive = true
|
|
34
34
|
}
|
|
35
35
|
}
|
package/android/cordova.gradle
CHANGED
|
@@ -128,13 +128,13 @@ fun deinitialize() = Instance().deinitialize()
|
|
|
128
128
|
|
|
129
129
|
fun startFaceCapture(callback: Callback, config: JSONObject?) = config?.let {
|
|
130
130
|
Instance().presentFaceCaptureActivity(
|
|
131
|
-
|
|
131
|
+
activity,
|
|
132
132
|
faceCaptureConfigFromJSON(it),
|
|
133
133
|
faceCaptureCompletion(callback),
|
|
134
134
|
faceCaptureNotificationCompletion()
|
|
135
135
|
)
|
|
136
136
|
} ?: Instance().presentFaceCaptureActivity(
|
|
137
|
-
|
|
137
|
+
activity,
|
|
138
138
|
faceCaptureCompletion(callback),
|
|
139
139
|
faceCaptureNotificationCompletion()
|
|
140
140
|
)
|
|
@@ -143,13 +143,13 @@ fun stopFaceCapture() = Instance().stopFaceCaptureActivity(context)
|
|
|
143
143
|
|
|
144
144
|
fun startLiveness(callback: Callback, config: JSONObject?) = config?.let {
|
|
145
145
|
Instance().startLiveness(
|
|
146
|
-
|
|
146
|
+
activity,
|
|
147
147
|
livenessConfigFromJSON(it),
|
|
148
148
|
livenessCompletion(callback),
|
|
149
149
|
livenessNotificationCompletion()
|
|
150
150
|
)
|
|
151
151
|
} ?: Instance().startLiveness(
|
|
152
|
-
|
|
152
|
+
activity,
|
|
153
153
|
livenessCompletion(callback),
|
|
154
154
|
livenessNotificationCompletion()
|
|
155
155
|
)
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
package com.regula.plugin.facesdk
|
|
2
2
|
|
|
3
|
+
import android.app.Activity
|
|
3
4
|
import android.content.Context
|
|
4
5
|
import android.util.Log
|
|
5
6
|
import com.facebook.react.ReactPackage
|
|
@@ -20,6 +21,8 @@ lateinit var args: JSONArray
|
|
|
20
21
|
lateinit var binding: ReactContext
|
|
21
22
|
val context: Context
|
|
22
23
|
get() = binding.applicationContext
|
|
24
|
+
val activity: Activity
|
|
25
|
+
get() = binding.currentActivity!!
|
|
23
26
|
|
|
24
27
|
fun sendEvent(event: String, data: Any? = "") {
|
|
25
28
|
if (listenerCount <= 0) return
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
"android": "scripts/android.sh"
|
|
7
7
|
},
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@regulaforensics/face-sdk": "8.1.
|
|
10
|
-
"@regulaforensics/face-core-basic": "8.1.
|
|
9
|
+
"@regulaforensics/face-sdk": "8.1.619-nightly",
|
|
10
|
+
"@regulaforensics/face-core-basic": "8.1.326-nightly",
|
|
11
11
|
"@awesome-cordova-plugins/file": "6.6.0",
|
|
12
12
|
"@awesome-cordova-plugins/camera": "6.6.0",
|
|
13
13
|
"cordova-plugin-file": "8.1.3",
|