@symbiote-native/cellular 1.0.0 → 2.0.0
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 +34 -27
- package/package.json +13 -13
package/README.md
CHANGED
|
@@ -89,12 +89,12 @@ function CellularScreen() {
|
|
|
89
89
|
|
|
90
90
|
return (
|
|
91
91
|
<>
|
|
92
|
-
<
|
|
92
|
+
<text>
|
|
93
93
|
{generation === null ? 'checking…' : CellularGeneration[generation]}
|
|
94
|
-
</
|
|
95
|
-
<
|
|
96
|
-
<
|
|
97
|
-
<
|
|
94
|
+
</text>
|
|
95
|
+
<text>{carrierName ?? 'checking…'}</text>
|
|
96
|
+
<text>{status === null ? 'checking…' : status.status}</text>
|
|
97
|
+
<button title="Request permission" onPress={() => requestPermission()} />
|
|
98
98
|
</>
|
|
99
99
|
);
|
|
100
100
|
}
|
|
@@ -125,12 +125,12 @@ onMounted(() => {
|
|
|
125
125
|
});
|
|
126
126
|
</script>
|
|
127
127
|
<template>
|
|
128
|
-
<
|
|
128
|
+
<text>{{
|
|
129
129
|
generation === null ? 'checking…' : CellularGeneration[generation]
|
|
130
|
-
}}</
|
|
131
|
-
<
|
|
132
|
-
<
|
|
133
|
-
<
|
|
130
|
+
}}</text>
|
|
131
|
+
<text>{{ carrierName ?? 'checking…' }}</text>
|
|
132
|
+
<text>{{ status === null ? 'checking…' : status.status }}</text>
|
|
133
|
+
<button title="Request permission" :onPress="() => requestPermission()" />
|
|
134
134
|
</template>
|
|
135
135
|
```
|
|
136
136
|
|
|
@@ -156,10 +156,13 @@ onMounted(() => {
|
|
|
156
156
|
);
|
|
157
157
|
</script>
|
|
158
158
|
|
|
159
|
-
<
|
|
160
|
-
|
|
161
|
-
<
|
|
162
|
-
<
|
|
159
|
+
<text>{generation === null ? 'checking…' : CellularGeneration[generation]}</text
|
|
160
|
+
>
|
|
161
|
+
<text>{carrierName ?? 'checking…'}</text>
|
|
162
|
+
<text
|
|
163
|
+
>{permissions.status === null ? 'checking…' : permissions.status.status}</text
|
|
164
|
+
>
|
|
165
|
+
<button title="Request permission" onPress={() => permissions.request()} />
|
|
163
166
|
```
|
|
164
167
|
|
|
165
168
|
```tsx
|
|
@@ -173,7 +176,9 @@ import {
|
|
|
173
176
|
import { createPermissions } from '@symbiote-native/cellular/solid';
|
|
174
177
|
|
|
175
178
|
function CellularScreen() {
|
|
176
|
-
const [generation, setGeneration] = createSignal<CellularGeneration | null>(
|
|
179
|
+
const [generation, setGeneration] = createSignal<CellularGeneration | null>(
|
|
180
|
+
null,
|
|
181
|
+
);
|
|
177
182
|
const [carrierName, setCarrierName] = createSignal<string | null>(null);
|
|
178
183
|
const { status, request: requestPermission } = createPermissions();
|
|
179
184
|
|
|
@@ -186,12 +191,14 @@ function CellularScreen() {
|
|
|
186
191
|
|
|
187
192
|
return (
|
|
188
193
|
<>
|
|
189
|
-
<
|
|
190
|
-
{generation() === null
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
<
|
|
194
|
+
<text>
|
|
195
|
+
{generation() === null
|
|
196
|
+
? 'checking…'
|
|
197
|
+
: CellularGeneration[generation()!]}
|
|
198
|
+
</text>
|
|
199
|
+
<text>{carrierName() ?? 'checking…'}</text>
|
|
200
|
+
<text>{status() === null ? 'checking…' : status()!.status}</text>
|
|
201
|
+
<button title="Request permission" onPress={() => requestPermission()} />
|
|
195
202
|
</>
|
|
196
203
|
);
|
|
197
204
|
}
|
|
@@ -210,15 +217,15 @@ import {
|
|
|
210
217
|
@Component({
|
|
211
218
|
selector: 'CellularScreen',
|
|
212
219
|
template: `
|
|
213
|
-
<
|
|
220
|
+
<text>{{
|
|
214
221
|
generation() === null ? 'checking…' : CellularGeneration[generation()!]
|
|
215
|
-
}}</
|
|
216
|
-
<
|
|
217
|
-
<
|
|
218
|
-
<
|
|
222
|
+
}}</text>
|
|
223
|
+
<text>{{ carrierName() ?? 'checking…' }}</text>
|
|
224
|
+
<text>{{ permissionStatus()?.status ?? 'checking…' }}</text>
|
|
225
|
+
<button
|
|
219
226
|
title="Request permission"
|
|
220
227
|
(press)="permissionsService.request()"
|
|
221
|
-
></
|
|
228
|
+
></button>
|
|
222
229
|
`,
|
|
223
230
|
})
|
|
224
231
|
export class CellularScreen {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@symbiote-native/cellular",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "expo-cellular wrapped for SymbioteNative — one framework-agnostic core, built once and reachable from the React, Vue, Svelte, Solid, and Angular adapters. Cellular generation (2G/3G/4G/5G), carrier/SIM info on Android (ISO country code, carrier name, MCC/MNC), VoIP-support detection, and the permission get/request pair gating carrier info on Android.",
|
|
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": "^0.
|
|
85
|
-
"@symbiote-native/react": "^
|
|
86
|
-
"@symbiote-native/solid": "^
|
|
87
|
-
"@symbiote-native/svelte": "^
|
|
88
|
-
"@symbiote-native/vue": "^
|
|
83
|
+
"@symbiote-native/angular": "^2.0.0",
|
|
84
|
+
"@symbiote-native/engine": "^0.5.0",
|
|
85
|
+
"@symbiote-native/react": "^2.0.0",
|
|
86
|
+
"@symbiote-native/solid": "^2.0.0",
|
|
87
|
+
"@symbiote-native/svelte": "^2.0.0",
|
|
88
|
+
"@symbiote-native/vue": "^2.0.0"
|
|
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": "0.
|
|
138
|
-
"@symbiote-native/react": "
|
|
139
|
-
"@symbiote-native/solid": "
|
|
140
|
-
"@symbiote-native/svelte": "
|
|
136
|
+
"@symbiote-native/angular": "2.0.0",
|
|
137
|
+
"@symbiote-native/engine": "0.5.0",
|
|
138
|
+
"@symbiote-native/react": "2.0.0",
|
|
139
|
+
"@symbiote-native/solid": "2.0.0",
|
|
140
|
+
"@symbiote-native/svelte": "2.0.0",
|
|
141
141
|
"@symbiote-native/test-utils": "0.3.0",
|
|
142
|
-
"@symbiote-native/vue": "
|
|
142
|
+
"@symbiote-native/vue": "2.0.0"
|
|
143
143
|
},
|
|
144
144
|
"scripts": {
|
|
145
145
|
"typecheck": "tsc --build",
|