@symbiote-native/sensors 3.0.0 → 3.0.2
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/README.md +19 -3
- package/package.json +14 -14
package/README.md
CHANGED
|
@@ -13,14 +13,28 @@ project never depends on) — every sensor's logic is hand-ported into this pack
|
|
|
13
13
|
|
|
14
14
|
## Install
|
|
15
15
|
|
|
16
|
+
**New app:**
|
|
17
|
+
|
|
16
18
|
```bash
|
|
17
|
-
|
|
19
|
+
npx @symbiote-native/cli new my-app --sensors
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
**Existing SymbioteNative app:**
|
|
23
|
+
|
|
24
|
+
```bash
|
|
25
|
+
npx @symbiote-native/cli add --sensors
|
|
18
26
|
```
|
|
19
27
|
|
|
20
|
-
|
|
21
|
-
`add --sensors` in an existing app) installs and wires this for you — see
|
|
28
|
+
Either way: installs `@symbiote-native/sensors` and wires the native autolinking automatically — see
|
|
22
29
|
[`@symbiote-native/cli`](../cli).
|
|
23
30
|
|
|
31
|
+
<details>
|
|
32
|
+
<summary>Manual install (no CLI — installing and wiring native autolinking by hand)</summary>
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
npm install @symbiote-native/sensors
|
|
36
|
+
```
|
|
37
|
+
|
|
24
38
|
Depends on `expo-sensors` and `expo-modules-core` directly (regular dependencies, pinned to exact
|
|
25
39
|
versions — never a caret range, since this package's `core/` is hand-ported against one specific
|
|
26
40
|
native API shape and a newer resolve could silently drift the two apart). Never install
|
|
@@ -49,6 +63,8 @@ Permissions ship with the native module itself — nothing to reimplement, just
|
|
|
49
63
|
permission string each sensor needs (e.g. DeviceMotion/Pedometer need `NSMotionUsageDescription`
|
|
50
64
|
on iOS).
|
|
51
65
|
|
|
66
|
+
</details>
|
|
67
|
+
|
|
52
68
|
## Shape
|
|
53
69
|
|
|
54
70
|
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@symbiote-native/sensors",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.2",
|
|
4
4
|
"description": "expo-sensors wrapped for SymbioteNative — one framework-agnostic core, built once and reachable from the React, Vue, Svelte, Solid, and Angular adapters. Accelerometer, Barometer, DeviceMotion, Gyroscope, LightSensor, Magnetometer, MagnetometerUncalibrated, Pedometer.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"keywords": [
|
|
@@ -81,12 +81,12 @@
|
|
|
81
81
|
"svelte": ">=5.56.0",
|
|
82
82
|
"solid-js": ">=1.9.0",
|
|
83
83
|
"vue": ">=3.5.0",
|
|
84
|
-
"@symbiote-native/angular": "^3.
|
|
85
|
-
"@symbiote-native/engine": "^1.
|
|
86
|
-
"@symbiote-native/react": "^3.0.
|
|
87
|
-
"@symbiote-native/solid": "^3.0.
|
|
88
|
-
"@symbiote-native/svelte": "^3.0.
|
|
89
|
-
"@symbiote-native/vue": "^3.0.
|
|
84
|
+
"@symbiote-native/angular": "^3.1.2",
|
|
85
|
+
"@symbiote-native/engine": "^1.3.1",
|
|
86
|
+
"@symbiote-native/react": "^3.0.4",
|
|
87
|
+
"@symbiote-native/solid": "^3.0.4",
|
|
88
|
+
"@symbiote-native/svelte": "^3.0.4",
|
|
89
|
+
"@symbiote-native/vue": "^3.0.4"
|
|
90
90
|
},
|
|
91
91
|
"peerDependenciesMeta": {
|
|
92
92
|
"@symbiote-native/angular": {
|
|
@@ -134,13 +134,13 @@
|
|
|
134
134
|
"solid-js": "^1.9.14",
|
|
135
135
|
"svelte": "^5.56.0",
|
|
136
136
|
"typescript": "~6.0.0",
|
|
137
|
-
"@symbiote-native/angular": "3.
|
|
138
|
-
"@symbiote-native/engine": "1.
|
|
139
|
-
"@symbiote-native/react": "3.0.
|
|
140
|
-
"@symbiote-native/solid": "3.0.
|
|
141
|
-
"@symbiote-native/svelte": "3.0.
|
|
142
|
-
"@symbiote-native/test-utils": "0.
|
|
143
|
-
"@symbiote-native/vue": "3.0.
|
|
137
|
+
"@symbiote-native/angular": "3.1.2",
|
|
138
|
+
"@symbiote-native/engine": "1.3.1",
|
|
139
|
+
"@symbiote-native/react": "3.0.4",
|
|
140
|
+
"@symbiote-native/solid": "3.0.4",
|
|
141
|
+
"@symbiote-native/svelte": "3.0.4",
|
|
142
|
+
"@symbiote-native/test-utils": "0.4.4",
|
|
143
|
+
"@symbiote-native/vue": "3.0.4"
|
|
144
144
|
},
|
|
145
145
|
"scripts": {
|
|
146
146
|
"typecheck": "tsc --build",
|