@pose-tracker/react-native-pose-estimation-light 0.3.3 → 0.3.4
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/lib/sdkVersion.d.ts +1 -1
- package/lib/sdkVersion.js +1 -1
- package/package.json +1 -1
- package/react-native.config.js +24 -3
- package/src/sdkVersion.ts +1 -1
package/lib/sdkVersion.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/** AUTO-GENERATED by scripts/sync-sdk-version.mjs — do not edit. */
|
|
2
|
-
export declare const SDK_VERSION = "0.3.
|
|
2
|
+
export declare const SDK_VERSION = "0.3.4";
|
package/lib/sdkVersion.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pose-tracker/react-native-pose-estimation-light",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.4",
|
|
4
4
|
"description": "Human pose estimation SDK for React Native (light / online) — MoveNet Lightning via CDN + model URL each session, no bundled weights. iOS & Android (Expo Go). Optional API-key exercise engine.",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
package/react-native.config.js
CHANGED
|
@@ -1,12 +1,33 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Autolinking
|
|
3
|
-
*
|
|
2
|
+
* Autolinking for the Apple Vision frame-processor plugin.
|
|
3
|
+
*
|
|
4
|
+
* Android has no native project. On iOS the plugin compiles against the
|
|
5
|
+
* VisionCamera pod, so it is linked only when the host app installed
|
|
6
|
+
* react-native-vision-camera. Apps that only use the WebView camera must
|
|
7
|
+
* not fail `pod install` looking for a pod they never added.
|
|
4
8
|
*/
|
|
9
|
+
const fs = require('fs');
|
|
10
|
+
const path = require('path');
|
|
11
|
+
|
|
12
|
+
function directoryHasVisionCamera(dir) {
|
|
13
|
+
return fs.existsSync(path.join(dir, 'node_modules', 'react-native-vision-camera', 'package.json'));
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
function hostHasVisionCamera() {
|
|
17
|
+
const cwd = process.cwd();
|
|
18
|
+
const candidates = [cwd];
|
|
19
|
+
const base = path.basename(cwd);
|
|
20
|
+
if (base === 'ios' || base === 'android') {
|
|
21
|
+
candidates.push(path.dirname(cwd));
|
|
22
|
+
}
|
|
23
|
+
return candidates.some(directoryHasVisionCamera);
|
|
24
|
+
}
|
|
25
|
+
|
|
5
26
|
module.exports = {
|
|
6
27
|
dependency: {
|
|
7
28
|
platforms: {
|
|
8
29
|
android: null,
|
|
9
|
-
ios: {},
|
|
30
|
+
ios: hostHasVisionCamera() ? {} : null,
|
|
10
31
|
},
|
|
11
32
|
},
|
|
12
33
|
};
|
package/src/sdkVersion.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/** AUTO-GENERATED by scripts/sync-sdk-version.mjs — do not edit. */
|
|
2
|
-
export const SDK_VERSION = '0.3.
|
|
2
|
+
export const SDK_VERSION = '0.3.4';
|