@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.
Files changed (31) hide show
  1. package/android/src/main/java/com/mentra/bluetoothsdk/GeneratedReleaseMetadata.kt +5 -5
  2. package/android/src/main/java/com/mentra/bluetoothsdk/streaming/StreamModels.kt +11 -0
  3. package/android/src/test/java/com/mentra/bluetoothsdk/StreamDegradationPreferenceTest.kt +61 -0
  4. package/android/src/test/java/com/mentra/bluetoothsdk/StreamRequestTest.kt +134 -0
  5. package/android/src/test/java/com/mentra/bluetoothsdk/utils/BleJsonCompactTest.java +31 -0
  6. package/build/BluetoothSdk.types.d.ts +7 -0
  7. package/build/BluetoothSdk.types.d.ts.map +1 -1
  8. package/build/BluetoothSdk.types.js.map +1 -1
  9. package/build/_private/BluetoothSdkModule.d.ts.map +1 -1
  10. package/build/_private/BluetoothSdkModule.js +5 -0
  11. package/build/_private/BluetoothSdkModule.js.map +1 -1
  12. package/build/_private/streamRequestPayload.d.ts +8 -0
  13. package/build/_private/streamRequestPayload.d.ts.map +1 -0
  14. package/build/_private/streamRequestPayload.js +42 -0
  15. package/build/_private/streamRequestPayload.js.map +1 -0
  16. package/build/generated/releaseMetadata.js +5 -5
  17. package/build/generated/releaseMetadata.js.map +1 -1
  18. package/build/index.d.ts +1 -1
  19. package/build/index.d.ts.map +1 -1
  20. package/build/index.js.map +1 -1
  21. package/ios/Source/BluetoothSdkDefaults.swift +1 -1
  22. package/ios/Source/GeneratedReleaseMetadata.swift +5 -5
  23. package/ios/Source/streaming/StreamModels.swift +34 -6
  24. package/ios/Tests/StreamDegradationPreferenceTests.swift +55 -0
  25. package/ios/Tests/StreamRequestTests.swift +113 -0
  26. package/package.json +2 -2
  27. package/src/BluetoothSdk.types.ts +8 -0
  28. package/src/_private/BluetoothSdkModule.ts +9 -0
  29. package/src/_private/streamRequestPayload.ts +43 -0
  30. package/src/generated/releaseMetadata.ts +5 -5
  31. 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.254",
16
- "releaseSetId": "mentra-3.2.0-dev.254",
17
- "sourceCommit": "3904125bbe5ca46725778ec45e125922ae894396",
18
- "otaManifestUrl": "https://github.com/Mentra-Community/MentraOS/releases/download/mentra-builds-v3.2.0/mentra-live-ota-3.2.0-dev.254.json",
19
- "otaManifestSha256": "acc95c125c0edd6f953f1b7740573fc39f9e7681e5457d21303f74a918eae503"
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
  })
package/src/index.ts CHANGED
@@ -298,6 +298,7 @@ export type {
298
298
  SettingsAckSuccessStatus,
299
299
  SettingsAckStatus,
300
300
  StreamAudioConfig,
301
+ StreamDegradationPreference,
301
302
  StreamResolvedConfig,
302
303
  StreamStartRequest,
303
304
  StreamStatusEvent,