@mentra/bluetooth-sdk 3.5.0-dev.1478 → 3.5.0-dev.1480

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.
@@ -3,9 +3,9 @@ package com.mentra.bluetoothsdk
3
3
  /** Generated by release CI. Do not edit in a release checkout. */
4
4
  internal object GeneratedReleaseMetadata {
5
5
  const val FAMILY_BASE_VERSION: String = "3.5.0"
6
- const val RELEASE_IDENTITY: String = "3.5.0-dev.1478"
7
- const val RELEASE_SET_ID: String = "mentra-3.5.0-dev.1478"
8
- const val SOURCE_COMMIT: String = "499e1ebf989aa56c8faff16156ce435a4dfb1119"
9
- const val OTA_MANIFEST_URL: String = "https://artifactscdn.mentraglass.com/Mentra-Community/MentraOS/releases/mentra-builds-v3.5.0/mentra-live-ota-3.5.0-dev.1478.json"
10
- const val OTA_MANIFEST_SHA256: String = "368a26fd07471867eadda2f616190ae8cda88b0ba93609035381b24816910dfc"
6
+ const val RELEASE_IDENTITY: String = "3.5.0-dev.1480"
7
+ const val RELEASE_SET_ID: String = "mentra-3.5.0-dev.1480"
8
+ const val SOURCE_COMMIT: String = "85f3034198350eae7425fd6186f187e39923b529"
9
+ const val OTA_MANIFEST_URL: String = "https://artifactscdn.mentraglass.com/Mentra-Community/MentraOS/releases/mentra-builds-v3.5.0/mentra-live-ota-3.5.0-dev.1480.json"
10
+ const val OTA_MANIFEST_SHA256: String = "62eb4f4d6ddceaf73fb7f4fab5b72d94b9a76ffe4580fde03ed61acc09b56018"
11
11
  }
@@ -1,10 +1,10 @@
1
1
  export const BLUETOOTH_SDK_RELEASE_METADATA = Object.freeze({
2
2
  "schemaVersion": 1,
3
3
  "familyBaseVersion": "3.5.0",
4
- "releaseIdentity": "3.5.0-dev.1478",
5
- "releaseSetId": "mentra-3.5.0-dev.1478",
6
- "sourceCommit": "499e1ebf989aa56c8faff16156ce435a4dfb1119",
7
- "otaManifestUrl": "https://artifactscdn.mentraglass.com/Mentra-Community/MentraOS/releases/mentra-builds-v3.5.0/mentra-live-ota-3.5.0-dev.1478.json",
8
- "otaManifestSha256": "368a26fd07471867eadda2f616190ae8cda88b0ba93609035381b24816910dfc"
4
+ "releaseIdentity": "3.5.0-dev.1480",
5
+ "releaseSetId": "mentra-3.5.0-dev.1480",
6
+ "sourceCommit": "85f3034198350eae7425fd6186f187e39923b529",
7
+ "otaManifestUrl": "https://artifactscdn.mentraglass.com/Mentra-Community/MentraOS/releases/mentra-builds-v3.5.0/mentra-live-ota-3.5.0-dev.1480.json",
8
+ "otaManifestSha256": "62eb4f4d6ddceaf73fb7f4fab5b72d94b9a76ffe4580fde03ed61acc09b56018"
9
9
  });
10
10
  //# sourceMappingURL=releaseMetadata.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"releaseMetadata.js","sourceRoot":"","sources":["../../src/generated/releaseMetadata.ts"],"names":[],"mappings":"AAWA,MAAM,CAAC,MAAM,8BAA8B,GAA0C,MAAM,CAAC,MAAM,CAAC;IACjG,eAAe,EAAE,CAAC;IAClB,mBAAmB,EAAE,OAAO;IAC5B,iBAAiB,EAAE,gBAAgB;IACnC,cAAc,EAAE,uBAAuB;IACvC,cAAc,EAAE,0CAA0C;IAC1D,gBAAgB,EAAE,kIAAkI;IACpJ,mBAAmB,EAAE,kEAAkE;CACxF,CAAC,CAAA","sourcesContent":["/** Generated by release CI. Do not edit in a release checkout. */\nexport interface BluetoothSdkReleaseMetadata {\n schemaVersion: 1\n familyBaseVersion: string | null\n releaseIdentity: string | null\n releaseSetId: string | null\n sourceCommit: string | null\n otaManifestUrl: string | null\n otaManifestSha256: string | null\n}\n\nexport const BLUETOOTH_SDK_RELEASE_METADATA: Readonly<BluetoothSdkReleaseMetadata> = Object.freeze({\n \"schemaVersion\": 1,\n \"familyBaseVersion\": \"3.5.0\",\n \"releaseIdentity\": \"3.5.0-dev.1478\",\n \"releaseSetId\": \"mentra-3.5.0-dev.1478\",\n \"sourceCommit\": \"499e1ebf989aa56c8faff16156ce435a4dfb1119\",\n \"otaManifestUrl\": \"https://artifactscdn.mentraglass.com/Mentra-Community/MentraOS/releases/mentra-builds-v3.5.0/mentra-live-ota-3.5.0-dev.1478.json\",\n \"otaManifestSha256\": \"368a26fd07471867eadda2f616190ae8cda88b0ba93609035381b24816910dfc\"\n})\n"]}
1
+ {"version":3,"file":"releaseMetadata.js","sourceRoot":"","sources":["../../src/generated/releaseMetadata.ts"],"names":[],"mappings":"AAWA,MAAM,CAAC,MAAM,8BAA8B,GAA0C,MAAM,CAAC,MAAM,CAAC;IACjG,eAAe,EAAE,CAAC;IAClB,mBAAmB,EAAE,OAAO;IAC5B,iBAAiB,EAAE,gBAAgB;IACnC,cAAc,EAAE,uBAAuB;IACvC,cAAc,EAAE,0CAA0C;IAC1D,gBAAgB,EAAE,kIAAkI;IACpJ,mBAAmB,EAAE,kEAAkE;CACxF,CAAC,CAAA","sourcesContent":["/** Generated by release CI. Do not edit in a release checkout. */\nexport interface BluetoothSdkReleaseMetadata {\n schemaVersion: 1\n familyBaseVersion: string | null\n releaseIdentity: string | null\n releaseSetId: string | null\n sourceCommit: string | null\n otaManifestUrl: string | null\n otaManifestSha256: string | null\n}\n\nexport const BLUETOOTH_SDK_RELEASE_METADATA: Readonly<BluetoothSdkReleaseMetadata> = Object.freeze({\n \"schemaVersion\": 1,\n \"familyBaseVersion\": \"3.5.0\",\n \"releaseIdentity\": \"3.5.0-dev.1480\",\n \"releaseSetId\": \"mentra-3.5.0-dev.1480\",\n \"sourceCommit\": \"85f3034198350eae7425fd6186f187e39923b529\",\n \"otaManifestUrl\": \"https://artifactscdn.mentraglass.com/Mentra-Community/MentraOS/releases/mentra-builds-v3.5.0/mentra-live-ota-3.5.0-dev.1480.json\",\n \"otaManifestSha256\": \"62eb4f4d6ddceaf73fb7f4fab5b72d94b9a76ffe4580fde03ed61acc09b56018\"\n})\n"]}
@@ -17,7 +17,7 @@ enum BluetoothSdkDefaults {
17
17
  /// persist.mentra.wear_detection_off=1.
18
18
  static let autoPowerOffEnabled = true
19
19
  private static let infoSdkVersionKey = "MentraBluetoothSdkVersion"
20
- private static let swiftPackageSdkVersion = "3.5.0-dev.1478"
20
+ private static let swiftPackageSdkVersion = "3.5.0-dev.1480"
21
21
  private static let swiftPackageSdkVersionPlaceholder = "__MENTRA" + "_BLUETOOTH_SDK_VERSION__"
22
22
 
23
23
  private static func normalizedSdkVersion(_ value: String?) -> String? {
@@ -157,7 +157,7 @@ class Bridge {
157
157
  let voiceActivityDetectionEnabled =
158
158
  DeviceStore.shared.get("glasses", "voiceActivityDetectionEnabled") as? Bool
159
159
  ?? BluetoothSdkDefaults.voiceActivityDetectionEnabled
160
- let frameSizeBytes = DeviceStore.shared.get("bluetooth", "lc3_frame_size") as? Int ?? defaultLc3FrameSizeBytes
160
+ let frameSizeBytes = intValue(DeviceStore.shared.get("bluetooth", "lc3_frame_size")) ?? defaultLc3FrameSizeBytes
161
161
  return [
162
162
  "lc3": data,
163
163
  "sampleRate": micSampleRate,
@@ -216,12 +216,12 @@ struct ViewState {
216
216
  }
217
217
 
218
218
  private var brightness: Int {
219
- get { DeviceStore.shared.get("bluetooth", "brightness") as? Int ?? 50 }
219
+ get { intValue(DeviceStore.shared.get("bluetooth", "brightness")) ?? 50 }
220
220
  set { DeviceStore.shared.apply("bluetooth", "brightness", newValue) }
221
221
  }
222
222
 
223
223
  private var headUpAngle: Int {
224
- get { DeviceStore.shared.get("bluetooth", "head_up_angle") as? Int ?? 30 }
224
+ get { intValue(DeviceStore.shared.get("bluetooth", "head_up_angle")) ?? 30 }
225
225
  set { DeviceStore.shared.apply("bluetooth", "head_up_angle", newValue) }
226
226
  }
227
227
 
@@ -443,7 +443,7 @@ struct ViewState {
443
443
  Bridge.log("MAN: ERROR - LC3 converter not initialized but format is LC3")
444
444
  return
445
445
  }
446
- let frameSize = DeviceStore.shared.get("bluetooth", "lc3_frame_size") as! Int
446
+ let frameSize = intValue(DeviceStore.shared.get("bluetooth", "lc3_frame_size")) ?? 60
447
447
  let lc3Data = lc3Converter.encode(pcmData, frameSize: frameSize) as Data
448
448
  guard lc3Data.count > 0 else {
449
449
  Bridge.log("MAN: ERROR - LC3 encoding returned empty data")
@@ -1076,9 +1076,9 @@ struct ViewState {
1076
1076
  // have disconnected or switched glasses during the 2s window, and we must not push to a
1077
1077
  // stale/torn-down connection.
1078
1078
  guard let sgc = self?.sgc else { return }
1079
- let h = DeviceStore.shared.get("bluetooth", "dashboard_height") as? Int ?? 4
1079
+ let h = intValue(DeviceStore.shared.get("bluetooth", "dashboard_height")) ?? 4
1080
1080
  // Fall back to the canonical default (2), matching DeviceStore, not 1.
1081
- let rawDepth = DeviceStore.shared.get("bluetooth", "dashboard_depth") as? Int ?? 2
1081
+ let rawDepth = intValue(DeviceStore.shared.get("bluetooth", "dashboard_depth")) ?? 2
1082
1082
  let d = sgc.type == DeviceTypes.NIMO ? min(max(rawDepth, 0), 10) : min(max(rawDepth, 1), 4)
1083
1083
  sgc.setDashboardPosition(h, d)
1084
1084
  }
@@ -134,7 +134,7 @@ class DeviceStore {
134
134
  dashboardHeightDebounceTask?.cancel()
135
135
  dashboardHeightDebounceTask = Task { @MainActor in
136
136
  try? await Task.yield()
137
- let h = store.get("bluetooth", "dashboard_height") as? Int ?? 4
137
+ let h = intValue(store.get("bluetooth", "dashboard_height")) ?? 4
138
138
  DeviceManager.shared.sgc?.setDashboardHeightOnly(h)
139
139
  }
140
140
  }
@@ -143,7 +143,7 @@ class DeviceStore {
143
143
  dashboardDepthDebounceTask?.cancel()
144
144
  dashboardDepthDebounceTask = Task { @MainActor in
145
145
  try? await Task.yield()
146
- let d = store.get("bluetooth", "dashboard_depth") as? Int ?? 2
146
+ let d = intValue(store.get("bluetooth", "dashboard_depth")) ?? 2
147
147
  DeviceManager.shared.sgc?.setDashboardDepthOnly(d)
148
148
  }
149
149
  }
@@ -230,7 +230,7 @@ class DeviceStore {
230
230
  }
231
231
 
232
232
  case ("bluetooth", "brightness"):
233
- let b = value as? Int ?? 50
233
+ let b = intValue(value) ?? 50
234
234
  let auto = store.get("bluetooth", "auto_brightness") as? Bool ?? true
235
235
  Task {
236
236
  guard let device = DeviceManager.shared.sgc else { return }
@@ -242,7 +242,7 @@ class DeviceStore {
242
242
  }
243
243
 
244
244
  case ("bluetooth", "auto_brightness"):
245
- let b = store.get("bluetooth", "brightness") as? Int ?? 50
245
+ let b = intValue(store.get("bluetooth", "brightness")) ?? 50
246
246
  let auto = value as? Bool ?? true
247
247
  let autoBrightnessChanged = (oldValue as? Bool) != auto
248
248
  Task {
@@ -264,7 +264,7 @@ class DeviceStore {
264
264
  scheduleDashboardDepthToGlasses()
265
265
 
266
266
  case ("bluetooth", "head_up_angle"):
267
- if let angle = value as? Int {
267
+ if let angle = intValue(value) {
268
268
  DeviceManager.shared.sgc?.setHeadUpAngle(angle)
269
269
  }
270
270
 
@@ -3,9 +3,9 @@ import Foundation
3
3
  /// Generated by release CI. Do not edit in a release checkout.
4
4
  enum GeneratedReleaseMetadata {
5
5
  static let familyBaseVersion = "3.5.0"
6
- static let releaseIdentity = "3.5.0-dev.1478"
7
- static let releaseSetId = "mentra-3.5.0-dev.1478"
8
- static let sourceCommit = "499e1ebf989aa56c8faff16156ce435a4dfb1119"
9
- static let otaManifestUrl = "https://artifactscdn.mentraglass.com/Mentra-Community/MentraOS/releases/mentra-builds-v3.5.0/mentra-live-ota-3.5.0-dev.1478.json"
10
- static let otaManifestSha256 = "368a26fd07471867eadda2f616190ae8cda88b0ba93609035381b24816910dfc"
6
+ static let releaseIdentity = "3.5.0-dev.1480"
7
+ static let releaseSetId = "mentra-3.5.0-dev.1480"
8
+ static let sourceCommit = "85f3034198350eae7425fd6186f187e39923b529"
9
+ static let otaManifestUrl = "https://artifactscdn.mentraglass.com/Mentra-Community/MentraOS/releases/mentra-builds-v3.5.0/mentra-live-ota-3.5.0-dev.1480.json"
10
+ static let otaManifestSha256 = "62eb4f4d6ddceaf73fb7f4fab5b72d94b9a76ffe4580fde03ed61acc09b56018"
11
11
  }
@@ -3303,7 +3303,7 @@ class G2: NSObject, SGCManager {
3303
3303
  DispatchQueue.main.asyncAfter(deadline: .now() + 0.5) { [weak self] in
3304
3304
  guard let self = self else { return }
3305
3305
  // activate the dashboard by setting dept to the current setting:
3306
- let currentDepth = DeviceStore.shared.get("bluetooth", "dashboard_depth") as? Int ?? 0
3306
+ let currentDepth = intValue(DeviceStore.shared.get("bluetooth", "dashboard_depth")) ?? 0
3307
3307
  self.setDashboardDepthOnly(currentDepth)
3308
3308
  }
3309
3309
  }
@@ -4789,7 +4789,7 @@ class MentraLive: NSObject, SGCManager {
4789
4789
  }
4790
4790
 
4791
4791
  func sendGalleryMode() {
4792
- let active = DeviceStore.shared.get("bluetooth", "gallery_mode") as! Bool
4792
+ let active = DeviceStore.shared.get("bluetooth", "gallery_mode") as? Bool ?? true
4793
4793
  sendGalleryMode(requestId: nil, active: active)
4794
4794
  }
4795
4795
 
@@ -8423,7 +8423,7 @@ extension MentraLive {
8423
8423
  sendButtonVideoRecordingSettings()
8424
8424
 
8425
8425
  // Send button max recording time
8426
- let maxTime = DeviceStore.shared.get("bluetooth", "button_max_recording_time") as! Int
8426
+ let maxTime = intValue(DeviceStore.shared.get("bluetooth", "button_max_recording_time")) ?? 10
8427
8427
  sendButtonMaxRecordingTime(maxTime)
8428
8428
 
8429
8429
  // Send button photo settings
@@ -8752,7 +8752,7 @@ extension MentraLive {
8752
8752
  }
8753
8753
 
8754
8754
  func sendButtonMaxRecordingTime() {
8755
- let maxTime = DeviceStore.shared.get("bluetooth", "button_max_recording_time") as? Int ?? 10
8755
+ let maxTime = intValue(DeviceStore.shared.get("bluetooth", "button_max_recording_time")) ?? 10
8756
8756
  sendButtonMaxRecordingTime(requestId: nil, minutes: maxTime)
8757
8757
  }
8758
8758
 
@@ -8783,10 +8783,10 @@ extension MentraLive {
8783
8783
  let zsl = DeviceStore.shared.get("bluetooth", "button_photo_zsl") as? Bool ?? legacyZslMfnr
8784
8784
  let noiseReduction = DeviceStore.shared.get("bluetooth", "button_photo_noise_reduction") as? Bool
8785
8785
  let edgeEnhancement = DeviceStore.shared.get("bluetooth", "button_photo_edge_enhancement") as? Bool
8786
- let ispDigitalGain = DeviceStore.shared.get("bluetooth", "button_photo_isp_digital_gain") as? Int
8786
+ let ispDigitalGain = intValue(DeviceStore.shared.get("bluetooth", "button_photo_isp_digital_gain"))
8787
8787
  let ispAnalogGain = DeviceStore.shared.get("bluetooth", "button_photo_isp_analog_gain") as? String
8788
- let aeExposureDivisor = DeviceStore.shared.get("bluetooth", "button_photo_ae_exposure_divisor") as? Int
8789
- let isoCap = DeviceStore.shared.get("bluetooth", "button_photo_iso_cap") as? Int
8788
+ let aeExposureDivisor = intValue(DeviceStore.shared.get("bluetooth", "button_photo_ae_exposure_divisor"))
8789
+ let isoCap = intValue(DeviceStore.shared.get("bluetooth", "button_photo_iso_cap"))
8790
8790
  let compressStr = DeviceStore.shared.get("bluetooth", "button_photo_compress") as? String
8791
8791
  if let compressStr, PhotoCompression(rawValue: compressStr) == nil {
8792
8792
  Bridge.log("LIVE: Invalid stored photo compression: \(compressStr)")
@@ -415,12 +415,12 @@ extension SGCManager {
415
415
  // MARK: - Dashboard (default: combined wire format; Nex implements single-field)
416
416
 
417
417
  func setDashboardHeightOnly(_ height: Int) {
418
- let d = DeviceStore.shared.get("bluetooth", "dashboard_depth") as? Int ?? 2
418
+ let d = intValue(DeviceStore.shared.get("bluetooth", "dashboard_depth")) ?? 2
419
419
  setDashboardPosition(height, d)
420
420
  }
421
421
 
422
422
  func setDashboardDepthOnly(_ depth: Int) {
423
- let h = DeviceStore.shared.get("bluetooth", "dashboard_height") as? Int ?? 4
423
+ let h = intValue(DeviceStore.shared.get("bluetooth", "dashboard_height")) ?? 4
424
424
  setDashboardPosition(h, depth)
425
425
  }
426
426
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mentra/bluetooth-sdk",
3
- "version": "3.5.0-dev.1478",
3
+ "version": "3.5.0-dev.1480",
4
4
  "description": "SDK for communicating with smart glasses",
5
5
  "main": "build/index.js",
6
6
  "react-native": "src/index.ts",
@@ -115,7 +115,7 @@
115
115
  "registry": "https://registry.npmjs.org/"
116
116
  },
117
117
  "dependencies": {
118
- "@mentra/cloud-protocol": "3.5.0-dev.1478"
118
+ "@mentra/cloud-protocol": "3.5.0-dev.1480"
119
119
  },
120
120
  "devDependencies": {
121
121
  "@types/node": "^25.9.3",
@@ -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.5.0",
15
- "releaseIdentity": "3.5.0-dev.1478",
16
- "releaseSetId": "mentra-3.5.0-dev.1478",
17
- "sourceCommit": "499e1ebf989aa56c8faff16156ce435a4dfb1119",
18
- "otaManifestUrl": "https://artifactscdn.mentraglass.com/Mentra-Community/MentraOS/releases/mentra-builds-v3.5.0/mentra-live-ota-3.5.0-dev.1478.json",
19
- "otaManifestSha256": "368a26fd07471867eadda2f616190ae8cda88b0ba93609035381b24816910dfc"
15
+ "releaseIdentity": "3.5.0-dev.1480",
16
+ "releaseSetId": "mentra-3.5.0-dev.1480",
17
+ "sourceCommit": "85f3034198350eae7425fd6186f187e39923b529",
18
+ "otaManifestUrl": "https://artifactscdn.mentraglass.com/Mentra-Community/MentraOS/releases/mentra-builds-v3.5.0/mentra-live-ota-3.5.0-dev.1480.json",
19
+ "otaManifestSha256": "62eb4f4d6ddceaf73fb7f4fab5b72d94b9a76ffe4580fde03ed61acc09b56018"
20
20
  })