react-native-nitro-pose-exercises 1.1.17 → 1.1.18

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.
@@ -122,5 +122,6 @@ dependencies {
122
122
  implementation project(":react-native-nitro-modules")
123
123
  implementation 'com.google.mlkit:pose-detection:18.0.0-beta5'
124
124
  implementation project(":react-native-vision-camera")
125
+ implementation "androidx.camera:camera-core:1.3.4"
125
126
  }
126
127
 
@@ -4,6 +4,7 @@ import com.margelo.nitro.camera.HybridFrameSpec
4
4
  import com.margelo.nitro.camera.public.NativeFrame
5
5
  import com.google.android.gms.tasks.Tasks
6
6
  import java.util.concurrent.TimeUnit
7
+ import androidx.camera.core.ImageProxy
7
8
 
8
9
  // import android.graphics.Matrix
9
10
  import androidx.annotation.Keep
@@ -214,10 +215,6 @@ override fun isReady(): Boolean {
214
215
  // Frame Processing (ML Kit — async with cached results)
215
216
  // ═══════════════════════════════════════════════════════════
216
217
 
217
- // Reusable scratch — allocated once, never GC'd per frame
218
- @Volatile private var lastProcessTime: Long = 0L
219
- private val minIntervalMs: Long = 66L // ~15fps cap; bump down to 33 for ~30fps
220
-
221
218
  // Time-based throttle — more reliable than frame-count under variable FPS
222
219
  @Volatile private var lastProcessTime: Long = 0L
223
220
  private val minIntervalMs: Long = 66L // ~15fps; lower to 33 for ~30fps once release build is fast enough
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-nitro-pose-exercises",
3
- "version": "1.1.17",
3
+ "version": "1.1.18",
4
4
  "description": "Real-time on-device exercise tracking for React Native. Rep counting, form validation, and skeleton overlay powered by Apple Vision (iOS) and Google ML Kit (Android) with VisionCamera v5 via Nitro Modules.",
5
5
  "main": "./lib/module/index.js",
6
6
  "types": "./lib/typescript/src/index.d.ts",