@symbiote-native/battery 2.0.0 → 3.0.1
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 +20 -0
- package/package.json +14 -14
package/README.md
CHANGED
|
@@ -12,6 +12,24 @@ depended on directly and never the `expo` meta-package, why the upstream JS is h
|
|
|
12
12
|
|
|
13
13
|
## Install
|
|
14
14
|
|
|
15
|
+
**New app:**
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
npx @symbiote-native/cli new my-app --battery
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
**Existing SymbioteNative app:**
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
npx @symbiote-native/cli add --battery
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
Either way: installs `@symbiote-native/battery` and wires the native autolinking automatically — see
|
|
28
|
+
[`@symbiote-native/cli`](../cli).
|
|
29
|
+
|
|
30
|
+
<details>
|
|
31
|
+
<summary>Manual install (no CLI — installing and wiring native autolinking by hand)</summary>
|
|
32
|
+
|
|
15
33
|
```bash
|
|
16
34
|
npm install @symbiote-native/battery
|
|
17
35
|
```
|
|
@@ -41,6 +59,8 @@ peer-dependency exclusion list — live in the `symbiote-expo-native-module` ski
|
|
|
41
59
|
implementation: `examples/expo-react/ios/Podfile` and
|
|
42
60
|
`examples/expo-react/android/app/src/main/java/com/canaryexpo/MainApplication.kt`.
|
|
43
61
|
|
|
62
|
+
</details>
|
|
63
|
+
|
|
44
64
|
No platform permission string is needed for battery's basic surface —
|
|
45
65
|
`isBatteryOptimizationEnabledAsync` reads an Android-only system state with no runtime permission
|
|
46
66
|
prompt either.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@symbiote-native/battery",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.1",
|
|
4
4
|
"description": "expo-battery wrapped for SymbioteNative — one framework-agnostic core, built once and reachable from the React, Vue, Svelte, Solid, and Angular adapters. Battery level and state (charging/full/unplugged/unknown), low-power-mode detection, plus event listeners for level and state changes.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -80,12 +80,12 @@
|
|
|
80
80
|
"solid-js": ">=1.9.0",
|
|
81
81
|
"svelte": ">=5.56.0",
|
|
82
82
|
"vue": ">=3.5.0",
|
|
83
|
-
"@symbiote-native/angular": "^
|
|
84
|
-
"@symbiote-native/engine": "^
|
|
85
|
-
"@symbiote-native/react": "^
|
|
86
|
-
"@symbiote-native/solid": "^
|
|
87
|
-
"@symbiote-native/svelte": "^
|
|
88
|
-
"@symbiote-native/vue": "^
|
|
83
|
+
"@symbiote-native/angular": "^3.1.1",
|
|
84
|
+
"@symbiote-native/engine": "^1.3.0",
|
|
85
|
+
"@symbiote-native/react": "^3.0.3",
|
|
86
|
+
"@symbiote-native/solid": "^3.0.3",
|
|
87
|
+
"@symbiote-native/svelte": "^3.0.3",
|
|
88
|
+
"@symbiote-native/vue": "^3.0.3"
|
|
89
89
|
},
|
|
90
90
|
"peerDependenciesMeta": {
|
|
91
91
|
"@symbiote-native/angular": {
|
|
@@ -133,13 +133,13 @@
|
|
|
133
133
|
"solid-js": "^1.9.14",
|
|
134
134
|
"svelte": "^5.56.0",
|
|
135
135
|
"typescript": "~6.0.0",
|
|
136
|
-
"@symbiote-native/angular": "
|
|
137
|
-
"@symbiote-native/engine": "
|
|
138
|
-
"@symbiote-native/react": "
|
|
139
|
-
"@symbiote-native/solid": "
|
|
140
|
-
"@symbiote-native/svelte": "
|
|
141
|
-
"@symbiote-native/test-utils": "0.3
|
|
142
|
-
"@symbiote-native/vue": "
|
|
136
|
+
"@symbiote-native/angular": "3.1.1",
|
|
137
|
+
"@symbiote-native/engine": "1.3.0",
|
|
138
|
+
"@symbiote-native/react": "3.0.3",
|
|
139
|
+
"@symbiote-native/solid": "3.0.3",
|
|
140
|
+
"@symbiote-native/svelte": "3.0.3",
|
|
141
|
+
"@symbiote-native/test-utils": "0.4.3",
|
|
142
|
+
"@symbiote-native/vue": "3.0.3"
|
|
143
143
|
},
|
|
144
144
|
"scripts": {
|
|
145
145
|
"typecheck": "tsc --build",
|