@mentra/bluetooth-sdk 3.2.0-dev.254 → 3.2.0-dev.259
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/android/src/main/java/com/mentra/bluetoothsdk/GeneratedReleaseMetadata.kt +5 -5
- package/android/src/main/java/com/mentra/bluetoothsdk/streaming/StreamModels.kt +11 -0
- package/android/src/test/java/com/mentra/bluetoothsdk/StreamDegradationPreferenceTest.kt +61 -0
- package/android/src/test/java/com/mentra/bluetoothsdk/StreamRequestTest.kt +134 -0
- package/android/src/test/java/com/mentra/bluetoothsdk/utils/BleJsonCompactTest.java +31 -0
- package/build/BluetoothSdk.types.d.ts +7 -0
- package/build/BluetoothSdk.types.d.ts.map +1 -1
- package/build/BluetoothSdk.types.js.map +1 -1
- package/build/_private/BluetoothSdkModule.d.ts.map +1 -1
- package/build/_private/BluetoothSdkModule.js +5 -0
- package/build/_private/BluetoothSdkModule.js.map +1 -1
- package/build/_private/streamRequestPayload.d.ts +8 -0
- package/build/_private/streamRequestPayload.d.ts.map +1 -0
- package/build/_private/streamRequestPayload.js +42 -0
- package/build/_private/streamRequestPayload.js.map +1 -0
- package/build/generated/releaseMetadata.js +5 -5
- package/build/generated/releaseMetadata.js.map +1 -1
- package/build/index.d.ts +1 -1
- package/build/index.d.ts.map +1 -1
- package/build/index.js.map +1 -1
- package/ios/Source/BluetoothSdkDefaults.swift +1 -1
- package/ios/Source/GeneratedReleaseMetadata.swift +5 -5
- package/ios/Source/streaming/StreamModels.swift +34 -6
- package/ios/Tests/StreamDegradationPreferenceTests.swift +55 -0
- package/ios/Tests/StreamRequestTests.swift +113 -0
- package/package.json +2 -2
- package/src/BluetoothSdk.types.ts +8 -0
- package/src/_private/BluetoothSdkModule.ts +9 -0
- package/src/_private/streamRequestPayload.ts +43 -0
- package/src/generated/releaseMetadata.ts +5 -5
- package/src/index.ts +1 -0
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import type {StreamStartRequest} from "../BluetoothSdk.types"
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Normalizes stream start request parameters for the native module bridge.
|
|
5
|
+
* Preserves omission of telemetry when undefined so the glasses use their build default,
|
|
6
|
+
* and forwards explicit true / false.
|
|
7
|
+
*/
|
|
8
|
+
export function streamRequestParamsForNative(params: StreamStartRequest): Record<string, unknown> {
|
|
9
|
+
const payload: Record<string, unknown> = {
|
|
10
|
+
streamUrl: params.streamUrl,
|
|
11
|
+
}
|
|
12
|
+
if (params.type !== undefined) {
|
|
13
|
+
payload.type = params.type
|
|
14
|
+
}
|
|
15
|
+
if (params.streamId !== undefined) {
|
|
16
|
+
payload.streamId = params.streamId
|
|
17
|
+
}
|
|
18
|
+
if (params.sound !== undefined) {
|
|
19
|
+
payload.sound = params.sound
|
|
20
|
+
}
|
|
21
|
+
if (params.video !== undefined) {
|
|
22
|
+
payload.video = params.video
|
|
23
|
+
}
|
|
24
|
+
if (params.audio !== undefined) {
|
|
25
|
+
payload.audio = params.audio
|
|
26
|
+
}
|
|
27
|
+
if (params.ice !== undefined) {
|
|
28
|
+
payload.ice = params.ice
|
|
29
|
+
}
|
|
30
|
+
if (params.captureAudio !== undefined) {
|
|
31
|
+
payload.captureAudio = params.captureAudio
|
|
32
|
+
}
|
|
33
|
+
if (params.traceId !== undefined && params.traceId.length > 0) {
|
|
34
|
+
payload.traceId = params.traceId
|
|
35
|
+
}
|
|
36
|
+
if (params.authToken !== undefined && params.authToken.length > 0) {
|
|
37
|
+
payload.authToken = params.authToken
|
|
38
|
+
}
|
|
39
|
+
if (params.telemetry !== undefined) {
|
|
40
|
+
payload.telemetry = params.telemetry
|
|
41
|
+
}
|
|
42
|
+
return payload
|
|
43
|
+
}
|
|
@@ -12,9 +12,9 @@ export interface BluetoothSdkReleaseMetadata {
|
|
|
12
12
|
export const BLUETOOTH_SDK_RELEASE_METADATA: Readonly<BluetoothSdkReleaseMetadata> = Object.freeze({
|
|
13
13
|
"schemaVersion": 1,
|
|
14
14
|
"familyBaseVersion": "3.2.0",
|
|
15
|
-
"releaseIdentity": "3.2.0-dev.
|
|
16
|
-
"releaseSetId": "mentra-3.2.0-dev.
|
|
17
|
-
"sourceCommit": "
|
|
18
|
-
"otaManifestUrl": "https://github.com/Mentra-Community/MentraOS/releases/download/mentra-builds-v3.2.0/mentra-live-ota-3.2.0-dev.
|
|
19
|
-
"otaManifestSha256": "
|
|
15
|
+
"releaseIdentity": "3.2.0-dev.259",
|
|
16
|
+
"releaseSetId": "mentra-3.2.0-dev.259",
|
|
17
|
+
"sourceCommit": "a813257666fd73103cf743ec50a4a158ed021d41",
|
|
18
|
+
"otaManifestUrl": "https://github.com/Mentra-Community/MentraOS/releases/download/mentra-builds-v3.2.0/mentra-live-ota-3.2.0-dev.259.json",
|
|
19
|
+
"otaManifestSha256": "b72673f29592ac9357d40b639d093bd50914c8f6f0f4bb02cf0f4fe03fbf0f38"
|
|
20
20
|
})
|