react-native-nitro-pose-exercises 1.0.4 → 1.0.5

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.
@@ -34,7 +34,6 @@ target_sources(
34
34
  ../nitrogen/generated/android/nitroposeexercisesOnLoad.cpp
35
35
  # Shared Nitrogen C++ sources
36
36
  ../nitrogen/generated/shared/c++/HybridNitroPoseExercisesSpec.cpp
37
- ../nitrogen/generated/shared/c++/HybridWorkletQueueFactorySpec.cpp
38
37
  # Android-specific Nitrogen C++ sources
39
38
  ../nitrogen/generated/android/c++/JHybridNitroPoseExercisesSpec.cpp
40
39
  )
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-nitro-pose-exercises",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "description": "Real-time on-device exercise tracking for React Native. Rep counting, form validation, and skeleton overlay powered by MediaPipe Pose Landmarker and VisionCamera v5 via Nitro Modules.",
5
5
  "main": "./lib/module/index.js",
6
6
  "types": "./lib/typescript/src/index.d.ts",
@@ -1,22 +0,0 @@
1
- ///
2
- /// HybridWorkletQueueFactorySpec.cpp
3
- /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
4
- /// https://github.com/mrousavy/nitro
5
- /// Copyright © Marc Rousavy @ Margelo
6
- ///
7
-
8
- #include "HybridWorkletQueueFactorySpec.hpp"
9
-
10
- namespace margelo::nitro::camera::worklets {
11
-
12
- void HybridWorkletQueueFactorySpec::loadHybridMethods() {
13
- // load base methods/properties
14
- HybridObject::loadHybridMethods();
15
- // load custom methods/properties
16
- registerHybrids(this, [](Prototype& prototype) {
17
- prototype.registerHybridMethod("wrapThreadInQueue", &HybridWorkletQueueFactorySpec::wrapThreadInQueue);
18
- prototype.registerHybridMethod("getCurrentThreadMarker", &HybridWorkletQueueFactorySpec::getCurrentThreadMarker);
19
- });
20
- }
21
-
22
- } // namespace margelo::nitro::camera::worklets
@@ -1,66 +0,0 @@
1
- ///
2
- /// HybridWorkletQueueFactorySpec.hpp
3
- /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
4
- /// https://github.com/mrousavy/nitro
5
- /// Copyright © Marc Rousavy @ Margelo
6
- ///
7
-
8
- #pragma once
9
-
10
- #if __has_include(<NitroModules/HybridObject.hpp>)
11
- #include <NitroModules/HybridObject.hpp>
12
- #else
13
- #error NitroModules cannot be found! Are you sure you installed NitroModules properly?
14
- #endif
15
-
16
- // Forward declaration of `HybridNativeThreadSpec` to properly resolve imports.
17
- namespace margelo::nitro::camera { class HybridNativeThreadSpec; }
18
-
19
- #include "JSIConverter+AsyncQueue.hpp"
20
- #include <memory>
21
- #include <VisionCamera/HybridNativeThreadSpec.hpp>
22
-
23
- namespace margelo::nitro::camera::worklets {
24
-
25
- using namespace margelo::nitro;
26
-
27
- /**
28
- * An abstract base class for `WorkletQueueFactory`
29
- * Inherit this class to create instances of `HybridWorkletQueueFactorySpec` in C++.
30
- * You must explicitly call `HybridObject`'s constructor yourself, because it is virtual.
31
- * @example
32
- * ```cpp
33
- * class HybridWorkletQueueFactory: public HybridWorkletQueueFactorySpec {
34
- * public:
35
- * HybridWorkletQueueFactory(...): HybridObject(TAG) { ... }
36
- * // ...
37
- * };
38
- * ```
39
- */
40
- class HybridWorkletQueueFactorySpec: public virtual HybridObject {
41
- public:
42
- // Constructor
43
- explicit HybridWorkletQueueFactorySpec(): HybridObject(TAG) { }
44
-
45
- // Destructor
46
- ~HybridWorkletQueueFactorySpec() override = default;
47
-
48
- public:
49
- // Properties
50
-
51
-
52
- public:
53
- // Methods
54
- virtual std::shared_ptr<::worklets::AsyncQueue> wrapThreadInQueue(const std::shared_ptr<margelo::nitro::camera::HybridNativeThreadSpec>& thread) = 0;
55
- virtual double getCurrentThreadMarker() = 0;
56
-
57
- protected:
58
- // Hybrid Setup
59
- void loadHybridMethods() override;
60
-
61
- protected:
62
- // Tag for logging
63
- static constexpr auto TAG = "WorkletQueueFactory";
64
- };
65
-
66
- } // namespace margelo::nitro::camera::worklets