@symbiote-native/brightness 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 CHANGED
@@ -16,14 +16,28 @@ depended on directly and never the `expo` meta-package, why the upstream JS is h
16
16
 
17
17
  ## Install
18
18
 
19
+ **New app:**
20
+
19
21
  ```bash
20
- npm install @symbiote-native/brightness
22
+ npx @symbiote-native/cli new my-app --brightness
23
+ ```
24
+
25
+ **Existing SymbioteNative app:**
26
+
27
+ ```bash
28
+ npx @symbiote-native/cli add --brightness
21
29
  ```
22
30
 
23
- Scaffolding or extending a SymbioteNative app? `npx @symbiote-native/cli new --brightness` (or
24
- `add --brightness` in an existing app) installs and wires this for you — see
31
+ Either way: installs `@symbiote-native/brightness` and wires the native autolinking automatically — see
25
32
  [`@symbiote-native/cli`](../cli).
26
33
 
34
+ <details>
35
+ <summary>Manual install (no CLI — installing and wiring native autolinking by hand)</summary>
36
+
37
+ ```bash
38
+ npm install @symbiote-native/brightness
39
+ ```
40
+
27
41
  `expo-brightness` and `expo-modules-core` come along as regular, pinned dependencies — never
28
42
  install either yourself, and never add the `expo` meta-package to this project (it bundles its own
29
43
  Metro/Babel pipeline that conflicts with this project's own).
@@ -50,6 +64,8 @@ implementation: `examples/expo-react/android/app/src/main/AndroidManifest.xml` (
50
64
  `examples/expo-react/android/app/src/main/java/com/canaryexpo/MainApplication.kt` (the
51
65
  `BrightnessModule` registration) — the Vue and Angular Expo canaries wire the same three layers.
52
66
 
67
+ </details>
68
+
53
69
  ## Shape
54
70
 
55
71
  ```
package/native-link.json CHANGED
@@ -7,6 +7,7 @@
7
7
  "className": "BrightnessModule",
8
8
  "nativeName": "ExpoBrightness"
9
9
  }
10
- ]
10
+ ],
11
+ "manifestPermissions": ["android.permission.WRITE_SETTINGS"]
11
12
  }
12
13
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@symbiote-native/brightness",
3
- "version": "3.0.0",
3
+ "version": "3.0.2",
4
4
  "description": "expo-brightness wrapped for SymbioteNative — one framework-agnostic core, built once and reachable from the React, Vue, Svelte, Solid, and Angular adapters. Screen brightness get/set, Android-only system-brightness-mode control, an iOS-only brightness-change listener, and permission get/request.",
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": "^3.0.0",
84
- "@symbiote-native/engine": "^1.0.0",
85
- "@symbiote-native/react": "^3.0.0",
86
- "@symbiote-native/solid": "^3.0.0",
87
- "@symbiote-native/svelte": "^3.0.0",
88
- "@symbiote-native/vue": "^3.0.0"
83
+ "@symbiote-native/angular": "^3.1.2",
84
+ "@symbiote-native/engine": "^1.3.1",
85
+ "@symbiote-native/react": "^3.0.4",
86
+ "@symbiote-native/solid": "^3.0.4",
87
+ "@symbiote-native/svelte": "^3.0.4",
88
+ "@symbiote-native/vue": "^3.0.4"
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": "3.0.0",
137
- "@symbiote-native/engine": "1.0.0",
138
- "@symbiote-native/react": "3.0.0",
139
- "@symbiote-native/solid": "3.0.0",
140
- "@symbiote-native/svelte": "3.0.0",
141
- "@symbiote-native/test-utils": "0.3.1",
142
- "@symbiote-native/vue": "3.0.0"
136
+ "@symbiote-native/angular": "3.1.2",
137
+ "@symbiote-native/engine": "1.3.1",
138
+ "@symbiote-native/react": "3.0.4",
139
+ "@symbiote-native/solid": "3.0.4",
140
+ "@symbiote-native/svelte": "3.0.4",
141
+ "@symbiote-native/test-utils": "0.4.4",
142
+ "@symbiote-native/vue": "3.0.4"
143
143
  },
144
144
  "scripts": {
145
145
  "typecheck": "tsc --build",