react-native-vision-camera-spoof-detector 1.1.7 → 1.1.9
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.
Potentially problematic release.
This version of react-native-vision-camera-spoof-detector might be problematic. Click here for more details.
|
@@ -231,6 +231,8 @@ class FaceAntiSpoofModule(reactContext: ReactApplicationContext) : ReactContextB
|
|
|
231
231
|
}
|
|
232
232
|
}
|
|
233
233
|
|
|
234
|
+
@Suppress("DEPRECATION")
|
|
235
|
+
@Deprecated("React Native deprecated this lifecycle callback; retained for compatibility.")
|
|
234
236
|
override fun onCatalystInstanceDestroy() {
|
|
235
237
|
// Cleanup when React Native is shutting down
|
|
236
238
|
try {
|
package/index.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { useMemo, useRef } from 'react';
|
|
2
2
|
import { NativeModules } from 'react-native';
|
|
3
3
|
import { NitroModules } from 'react-native-nitro-modules';
|
|
4
|
-
import { scheduleOnRN } from 'react-native-worklets';
|
|
5
4
|
|
|
6
5
|
const { FaceAntiSpoof } = NativeModules;
|
|
7
6
|
|
|
@@ -16,7 +15,6 @@ export const useFaceAntiSpoofFrameOutput = ({ onResult, ...options } = {}) => {
|
|
|
16
15
|
);
|
|
17
16
|
return useMemo(
|
|
18
17
|
() => factory.createSpoofDetectorOutput({
|
|
19
|
-
targetResolution: options.targetResolution ?? { width: 256, height: 256 },
|
|
20
18
|
onResult(result) {
|
|
21
19
|
resultRef.current?.(result);
|
|
22
20
|
},
|
|
@@ -24,7 +22,7 @@ export const useFaceAntiSpoofFrameOutput = ({ onResult, ...options } = {}) => {
|
|
|
24
22
|
errorRef.current?.(error);
|
|
25
23
|
},
|
|
26
24
|
}),
|
|
27
|
-
[factory
|
|
25
|
+
[factory],
|
|
28
26
|
);
|
|
29
27
|
};
|
|
30
28
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-vision-camera-spoof-detector",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.9",
|
|
4
4
|
"description": "High-performance face anti-spoofing and liveness detection module for React Native Vision Camera. Uses TensorFlow Lite with GPU acceleration and optimized YUV processing.",
|
|
5
5
|
"homepage": "https://github.com/dpraful/react-native-vision-camera-spoof-detector",
|
|
6
6
|
"repository": {
|