@mentra/bluetooth-sdk 3.4.1-beta.1427 → 3.4.1-beta.1430

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.4.1"
6
- const val RELEASE_IDENTITY: String = "3.4.1-beta.1427"
7
- const val RELEASE_SET_ID: String = "mentra-3.4.1-beta.1427"
8
- const val SOURCE_COMMIT: String = "33e444ea60f1ca3e773fc230f8b00106441ea1d4"
9
- const val OTA_MANIFEST_URL: String = "https://artifactscdn.mentraglass.com/Mentra-Community/MentraOS/releases/mentra-builds-v3.4.1/mentra-live-ota-3.4.1-beta.1427.json"
10
- const val OTA_MANIFEST_SHA256: String = "5653eef15862e946959e03a66a0313f304dc5bb683146e0ff8ce02a602462cc4"
6
+ const val RELEASE_IDENTITY: String = "3.4.1-beta.1430"
7
+ const val RELEASE_SET_ID: String = "mentra-3.4.1-beta.1430"
8
+ const val SOURCE_COMMIT: String = "6590b8b85102e588c6043899db373e4561f42502"
9
+ const val OTA_MANIFEST_URL: String = "https://artifactscdn.mentraglass.com/Mentra-Community/MentraOS/releases/mentra-builds-v3.4.1/mentra-live-ota-3.4.1-beta.1430.json"
10
+ const val OTA_MANIFEST_SHA256: String = "103217d1b465b2a695483d21cfeaedc463a661e6bf85282f982f6293ea4bd180"
11
11
  }
@@ -1,10 +1,10 @@
1
1
  export const BLUETOOTH_SDK_RELEASE_METADATA = Object.freeze({
2
2
  "schemaVersion": 1,
3
3
  "familyBaseVersion": "3.4.1",
4
- "releaseIdentity": "3.4.1-beta.1427",
5
- "releaseSetId": "mentra-3.4.1-beta.1427",
6
- "sourceCommit": "33e444ea60f1ca3e773fc230f8b00106441ea1d4",
7
- "otaManifestUrl": "https://artifactscdn.mentraglass.com/Mentra-Community/MentraOS/releases/mentra-builds-v3.4.1/mentra-live-ota-3.4.1-beta.1427.json",
8
- "otaManifestSha256": "5653eef15862e946959e03a66a0313f304dc5bb683146e0ff8ce02a602462cc4"
4
+ "releaseIdentity": "3.4.1-beta.1430",
5
+ "releaseSetId": "mentra-3.4.1-beta.1430",
6
+ "sourceCommit": "6590b8b85102e588c6043899db373e4561f42502",
7
+ "otaManifestUrl": "https://artifactscdn.mentraglass.com/Mentra-Community/MentraOS/releases/mentra-builds-v3.4.1/mentra-live-ota-3.4.1-beta.1430.json",
8
+ "otaManifestSha256": "103217d1b465b2a695483d21cfeaedc463a661e6bf85282f982f6293ea4bd180"
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,iBAAiB;IACpC,cAAc,EAAE,wBAAwB;IACxC,cAAc,EAAE,0CAA0C;IAC1D,gBAAgB,EAAE,mIAAmI;IACrJ,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.4.1\",\n \"releaseIdentity\": \"3.4.1-beta.1427\",\n \"releaseSetId\": \"mentra-3.4.1-beta.1427\",\n \"sourceCommit\": \"33e444ea60f1ca3e773fc230f8b00106441ea1d4\",\n \"otaManifestUrl\": \"https://artifactscdn.mentraglass.com/Mentra-Community/MentraOS/releases/mentra-builds-v3.4.1/mentra-live-ota-3.4.1-beta.1427.json\",\n \"otaManifestSha256\": \"5653eef15862e946959e03a66a0313f304dc5bb683146e0ff8ce02a602462cc4\"\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,iBAAiB;IACpC,cAAc,EAAE,wBAAwB;IACxC,cAAc,EAAE,0CAA0C;IAC1D,gBAAgB,EAAE,mIAAmI;IACrJ,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.4.1\",\n \"releaseIdentity\": \"3.4.1-beta.1430\",\n \"releaseSetId\": \"mentra-3.4.1-beta.1430\",\n \"sourceCommit\": \"6590b8b85102e588c6043899db373e4561f42502\",\n \"otaManifestUrl\": \"https://artifactscdn.mentraglass.com/Mentra-Community/MentraOS/releases/mentra-builds-v3.4.1/mentra-live-ota-3.4.1-beta.1430.json\",\n \"otaManifestSha256\": \"103217d1b465b2a695483d21cfeaedc463a661e6bf85282f982f6293ea4bd180\"\n})\n"]}
@@ -16,7 +16,7 @@ enum BluetoothSdkDefaults {
16
16
  /// 20-minute unworn power-off on every pair the app touches.
17
17
  static let autoPowerOffEnabled = false
18
18
  private static let infoSdkVersionKey = "MentraBluetoothSdkVersion"
19
- private static let swiftPackageSdkVersion = "3.4.1-beta.1427"
19
+ private static let swiftPackageSdkVersion = "3.4.1-beta.1430"
20
20
  private static let swiftPackageSdkVersionPlaceholder = "__MENTRA" + "_BLUETOOTH_SDK_VERSION__"
21
21
 
22
22
  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
  }
@@ -133,7 +133,7 @@ class DeviceStore {
133
133
  dashboardHeightDebounceTask?.cancel()
134
134
  dashboardHeightDebounceTask = Task { @MainActor in
135
135
  try? await Task.yield()
136
- let h = store.get("bluetooth", "dashboard_height") as? Int ?? 4
136
+ let h = intValue(store.get("bluetooth", "dashboard_height")) ?? 4
137
137
  DeviceManager.shared.sgc?.setDashboardHeightOnly(h)
138
138
  }
139
139
  }
@@ -142,7 +142,7 @@ class DeviceStore {
142
142
  dashboardDepthDebounceTask?.cancel()
143
143
  dashboardDepthDebounceTask = Task { @MainActor in
144
144
  try? await Task.yield()
145
- let d = store.get("bluetooth", "dashboard_depth") as? Int ?? 2
145
+ let d = intValue(store.get("bluetooth", "dashboard_depth")) ?? 2
146
146
  DeviceManager.shared.sgc?.setDashboardDepthOnly(d)
147
147
  }
148
148
  }
@@ -229,7 +229,7 @@ class DeviceStore {
229
229
  }
230
230
 
231
231
  case ("bluetooth", "brightness"):
232
- let b = value as? Int ?? 50
232
+ let b = intValue(value) ?? 50
233
233
  let auto = store.get("bluetooth", "auto_brightness") as? Bool ?? true
234
234
  Task {
235
235
  guard let device = DeviceManager.shared.sgc else { return }
@@ -241,7 +241,7 @@ class DeviceStore {
241
241
  }
242
242
 
243
243
  case ("bluetooth", "auto_brightness"):
244
- let b = store.get("bluetooth", "brightness") as? Int ?? 50
244
+ let b = intValue(store.get("bluetooth", "brightness")) ?? 50
245
245
  let auto = value as? Bool ?? true
246
246
  let autoBrightnessChanged = (oldValue as? Bool) != auto
247
247
  Task {
@@ -263,7 +263,7 @@ class DeviceStore {
263
263
  scheduleDashboardDepthToGlasses()
264
264
 
265
265
  case ("bluetooth", "head_up_angle"):
266
- if let angle = value as? Int {
266
+ if let angle = intValue(value) {
267
267
  DeviceManager.shared.sgc?.setHeadUpAngle(angle)
268
268
  }
269
269
 
@@ -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.4.1"
6
- static let releaseIdentity = "3.4.1-beta.1427"
7
- static let releaseSetId = "mentra-3.4.1-beta.1427"
8
- static let sourceCommit = "33e444ea60f1ca3e773fc230f8b00106441ea1d4"
9
- static let otaManifestUrl = "https://artifactscdn.mentraglass.com/Mentra-Community/MentraOS/releases/mentra-builds-v3.4.1/mentra-live-ota-3.4.1-beta.1427.json"
10
- static let otaManifestSha256 = "5653eef15862e946959e03a66a0313f304dc5bb683146e0ff8ce02a602462cc4"
6
+ static let releaseIdentity = "3.4.1-beta.1430"
7
+ static let releaseSetId = "mentra-3.4.1-beta.1430"
8
+ static let sourceCommit = "6590b8b85102e588c6043899db373e4561f42502"
9
+ static let otaManifestUrl = "https://artifactscdn.mentraglass.com/Mentra-Community/MentraOS/releases/mentra-builds-v3.4.1/mentra-live-ota-3.4.1-beta.1430.json"
10
+ static let otaManifestSha256 = "103217d1b465b2a695483d21cfeaedc463a661e6bf85282f982f6293ea4bd180"
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
  }
@@ -4701,7 +4701,7 @@ class MentraLive: NSObject, SGCManager {
4701
4701
  }
4702
4702
 
4703
4703
  func sendGalleryMode() {
4704
- let active = DeviceStore.shared.get("bluetooth", "gallery_mode") as! Bool
4704
+ let active = DeviceStore.shared.get("bluetooth", "gallery_mode") as? Bool ?? true
4705
4705
  sendGalleryMode(requestId: nil, active: active)
4706
4706
  }
4707
4707
 
@@ -8052,7 +8052,7 @@ extension MentraLive {
8052
8052
  sendButtonVideoRecordingSettings()
8053
8053
 
8054
8054
  // Send button max recording time
8055
- let maxTime = DeviceStore.shared.get("bluetooth", "button_max_recording_time") as! Int
8055
+ let maxTime = intValue(DeviceStore.shared.get("bluetooth", "button_max_recording_time")) ?? 10
8056
8056
  sendButtonMaxRecordingTime(maxTime)
8057
8057
 
8058
8058
  // Send button photo settings
@@ -8381,7 +8381,7 @@ extension MentraLive {
8381
8381
  }
8382
8382
 
8383
8383
  func sendButtonMaxRecordingTime() {
8384
- let maxTime = DeviceStore.shared.get("bluetooth", "button_max_recording_time") as? Int ?? 10
8384
+ let maxTime = intValue(DeviceStore.shared.get("bluetooth", "button_max_recording_time")) ?? 10
8385
8385
  sendButtonMaxRecordingTime(requestId: nil, minutes: maxTime)
8386
8386
  }
8387
8387
 
@@ -8412,10 +8412,10 @@ extension MentraLive {
8412
8412
  let zsl = DeviceStore.shared.get("bluetooth", "button_photo_zsl") as? Bool ?? legacyZslMfnr
8413
8413
  let noiseReduction = DeviceStore.shared.get("bluetooth", "button_photo_noise_reduction") as? Bool
8414
8414
  let edgeEnhancement = DeviceStore.shared.get("bluetooth", "button_photo_edge_enhancement") as? Bool
8415
- let ispDigitalGain = DeviceStore.shared.get("bluetooth", "button_photo_isp_digital_gain") as? Int
8415
+ let ispDigitalGain = intValue(DeviceStore.shared.get("bluetooth", "button_photo_isp_digital_gain"))
8416
8416
  let ispAnalogGain = DeviceStore.shared.get("bluetooth", "button_photo_isp_analog_gain") as? String
8417
- let aeExposureDivisor = DeviceStore.shared.get("bluetooth", "button_photo_ae_exposure_divisor") as? Int
8418
- let isoCap = DeviceStore.shared.get("bluetooth", "button_photo_iso_cap") as? Int
8417
+ let aeExposureDivisor = intValue(DeviceStore.shared.get("bluetooth", "button_photo_ae_exposure_divisor"))
8418
+ let isoCap = intValue(DeviceStore.shared.get("bluetooth", "button_photo_iso_cap"))
8419
8419
  let compressStr = DeviceStore.shared.get("bluetooth", "button_photo_compress") as? String
8420
8420
  if let compressStr, PhotoCompression(rawValue: compressStr) == nil {
8421
8421
  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.4.1-beta.1427",
3
+ "version": "3.4.1-beta.1430",
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.4.1-beta.1427"
118
+ "@mentra/cloud-protocol": "3.4.1-beta.1430"
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.4.1",
15
- "releaseIdentity": "3.4.1-beta.1427",
16
- "releaseSetId": "mentra-3.4.1-beta.1427",
17
- "sourceCommit": "33e444ea60f1ca3e773fc230f8b00106441ea1d4",
18
- "otaManifestUrl": "https://artifactscdn.mentraglass.com/Mentra-Community/MentraOS/releases/mentra-builds-v3.4.1/mentra-live-ota-3.4.1-beta.1427.json",
19
- "otaManifestSha256": "5653eef15862e946959e03a66a0313f304dc5bb683146e0ff8ce02a602462cc4"
15
+ "releaseIdentity": "3.4.1-beta.1430",
16
+ "releaseSetId": "mentra-3.4.1-beta.1430",
17
+ "sourceCommit": "6590b8b85102e588c6043899db373e4561f42502",
18
+ "otaManifestUrl": "https://artifactscdn.mentraglass.com/Mentra-Community/MentraOS/releases/mentra-builds-v3.4.1/mentra-live-ota-3.4.1-beta.1430.json",
19
+ "otaManifestSha256": "103217d1b465b2a695483d21cfeaedc463a661e6bf85282f982f6293ea4bd180"
20
20
  })