react-native-usesense 2.3.8 → 2.4.0

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.
@@ -51,7 +51,19 @@ dependencies {
51
51
  // 4.6.7 is the floor: from it the runner reports whether the subject
52
52
  // scanned the document or chose a file, so failure guidance can name an
53
53
  // action they can actually take. Below it the server guesses from config.
54
- implementation "ai.usesense:sdk:4.6.7"
54
+ // 4.7.0 is the floor: below it frames_manifest reported a hardcoded
55
+ // 640x480 regardless of what was captured. That is right for the legacy
56
+ // path but wrong for v4, which captures 1280x720, and the server now
57
+ // scales its screen-replay sharpness thresholds off that value, so
58
+ // under-reporting made spoof detection more permissive on the better
59
+ // capture path. 4.7.0 reports the real encoded size, caps frames at 960,
60
+ // gzips the metadata, raises the 30s upload write timeout to 300s, and
61
+ // emits real upload progress.
62
+ // 4.8.0 is the floor: below it the Android SDK never ran its face mesh
63
+ // pipeline, so no session uploaded a verification_package and the server
64
+ // could not verify mesh integrity (it now excludes mesh for older Android
65
+ // SDKs and applies the org's mesh policy from 4.8.0).
66
+ implementation "ai.usesense:sdk:4.8.0"
55
67
 
56
68
  implementation "org.jetbrains.kotlin:kotlin-stdlib:${safeExtGet('kotlinVersion', '2.0.0')}"
57
69
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-usesense",
3
- "version": "2.3.8",
3
+ "version": "2.4.0",
4
4
  "description": "React Native plugin for human presence verification. Wraps the native UseSense iOS and Android SDKs.",
5
5
  "main": "lib/commonjs/index.js",
6
6
  "module": "lib/module/index.js",
@@ -36,5 +36,15 @@ Pod::Spec.new do |s|
36
36
  # 4.6.3 is the floor: from it the runner reports whether the subject scanned
37
37
  # the document or chose a file, so failure guidance can name an action they
38
38
  # can actually take. Below it the server has to guess from the step config.
39
- s.dependency "UseSenseSDK", "~> 4.6.3"
39
+ # 4.7.0 is the floor: below it the signals upload could not complete on a
40
+ # slow connection. Frames were encoded at the camera's full 1080x1920 with no
41
+ # downscale, so a session put 12.9 MB on the wire, against a 30s request
42
+ # timeout and a 120s URLSession resource timeout. A measured production
43
+ # session uploaded at 14.6 KB/s, so the transfer was cancelled every time and
44
+ # the subject just saw a spinner. 4.7.0 caps frames at 960, raises both
45
+ # timeouts to 300s, gzips the metadata, and emits real upload progress.
46
+ #
47
+ # Note `~> 4.7.0` means >= 4.7.0, < 4.8.0. The previous `~> 4.6.3` excluded
48
+ # 4.7.0 outright, so this pin has to be raised by hand for every native fix.
49
+ s.dependency "UseSenseSDK", "~> 4.7.1"
40
50
  end