react-native-biometric-verifier 0.0.49 → 0.0.51

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-biometric-verifier",
3
- "version": "0.0.49",
3
+ "version": "0.0.51",
4
4
  "description": "A React Native module for biometric verification with face recognition and QR code scanning",
5
5
  "main": "src/index.js",
6
6
  "private": false,
@@ -118,6 +118,7 @@ const CaptureImageWithoutEdit = React.memo(
118
118
  );
119
119
 
120
120
  const onFacesUpdate = useCallback((payload) => {
121
+ console.log('qqqqqq',JSON.stringify(payload))
121
122
  if (!isMounted.current) return;
122
123
  try {
123
124
  const { count, progress, antiSpoofState } = payload;
@@ -20,10 +20,6 @@ export const useGeolocation = (notifyMessage) => {
20
20
  PermissionsAndroid.PERMISSIONS.ACCESS_COARSE_LOCATION,
21
21
  ];
22
22
 
23
- if (Platform.Version >= 31) {
24
- permissions.push(PermissionsAndroid.PERMISSIONS.NEARBY_WIFI_DEVICES);
25
- }
26
-
27
23
  const result = await PermissionsAndroid.requestMultiple(permissions);
28
24
 
29
25
  const granted = Object.values(result).every(
@@ -53,7 +53,7 @@ export class Global {
53
53
  static REQUIRED_BLINKS = 3;
54
54
 
55
55
  // Anti-spoofing
56
- static ANTI_SPOOF_CONFIDENCE_THRESHOLD = 0.7;
56
+ static ANTI_SPOOF_CONFIDENCE_THRESHOLD = 7; // Confidence is in 0-10 range from Kotlin
57
57
  static REQUIRED_CONSECUTIVE_LIVE_FRAMES = 3;
58
58
 
59
59
  // Face centering