@mentra/bluetooth-sdk 3.5.0-dev.1284 → 3.5.0-dev.1289

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/MIGRATION.md CHANGED
@@ -1,12 +1,12 @@
1
1
  # Bluetooth SDK migration: Mentra Live pairing state
2
2
 
3
- This note covers the public pairing API in `@mentra/bluetooth-sdk` `3.3.0` relative to the published `3.2.1` package. `3.3.0` is the current release family in `package.json` and is not on npm yet.
3
+ This note covers the public pairing API change in `@mentra/bluetooth-sdk` `3.3.0`, for apps upgrading from `3.2`.
4
4
 
5
5
  ## Version
6
6
 
7
7
  The SDK version is `package.json` `"version"`. The iOS podspec (`ios/MentraBluetoothSDK.podspec`) and the Android Gradle module (`android/build.gradle`) read that same value. Swift package metadata is injected from it at pack time.
8
8
 
9
- This repository keeps the Bluetooth SDK version aligned with the matching Mentra Live software release. It does not cut an independent major for a breaking SDK change. The break below ships in the unpublished `3.3.0` family. No further version bump was applied in this change. Integrators on `3.2.1` pick it up by moving to `3.3.0` when that release is published.
9
+ This repository keeps the Bluetooth SDK version aligned with the matching Mentra Live software release. It does not cut an independent major for a breaking SDK change. The break below shipped in `3.3.0`. Apps on `3.2.1` pick it up by moving to `3.3.0` or later.
10
10
 
11
11
  ## Removed
12
12
 
package/README.md CHANGED
@@ -452,7 +452,12 @@ await saveDeviceToYourAppStorage(null)
452
452
 
453
453
  ## Mentra Live pairing
454
454
 
455
- `confirmReplaceOwner()` and `confirm_replace_owner_result` are removed. `owner_replaced` is deprecated and is never emitted. The replacement is `GlassesStatus.pairingState`, also delivered as `pairing_state_changed`. Full steps are in [MIGRATION.md](./MIGRATION.md). The version stays `3.3.0` in `package.json` (podspec and Gradle read it). npm still publishes `3.2.1`.
455
+ React Native apps should use `MentraLivePairingFlow` or `useMentraLivePairing` from
456
+ `@mentra/engine/pairing`. They provide the same scan, bond adoption, connect, Pair
457
+ Audio and failure flow as the Mentra App. See
458
+ [Pair Mentra Live](https://docs.mentraglass.com/bluetooth-sdk/pairing).
459
+
460
+ `confirmReplaceOwner()` and `confirm_replace_owner_result` are removed. `owner_replaced` is deprecated and is never emitted. The replacement is `GlassesStatus.pairingState`, also delivered as `pairing_state_changed`. SDK `3.3.0` removed them; apps upgrading from `3.2` follow [MIGRATION.md](./MIGRATION.md).
456
461
 
457
462
  On supported Mentra Live firmware, three power-button presses open one 120-second window and the glasses speak a 4-character code. Three presses again cancel it. The phone that was already paired pauses automatic reconnect for that window plus a 30-second margin (`pairingState.endsAtMs`), then reconnects after `pairing_mode_ended` with `reason` `"timeout"` or `"cancelled"`. If the glasses stop accepting this phone (another phone paired, or repeated authentication rejections on secure-pairing firmware), this phone's state becomes `pairing_rejected`: reconnect stops, and the UI should show Pair Again. That state clears only after a successful explicit pair or `forget()`.
458
463
 
@@ -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.1284"
7
- const val RELEASE_SET_ID: String = "mentra-3.5.0-dev.1284"
8
- const val SOURCE_COMMIT: String = "5fb60f92de196da3737bc35d8839cad438a1840b"
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.1284.json"
10
- const val OTA_MANIFEST_SHA256: String = "fe9b0117a0901aeb8a137a0e0a2ae87143abab909f3867b22a415d202207d53e"
6
+ const val RELEASE_IDENTITY: String = "3.5.0-dev.1289"
7
+ const val RELEASE_SET_ID: String = "mentra-3.5.0-dev.1289"
8
+ const val SOURCE_COMMIT: String = "fb98c4575d9e2016a7c535eb4afdb2b412d3d589"
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.1289.json"
10
+ const val OTA_MANIFEST_SHA256: String = "8726f1e1dfc07bdd5c0b55a79cd5fc882ba6971dfc961c2ef846b50da9bc865d"
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.1284",
5
- "releaseSetId": "mentra-3.5.0-dev.1284",
6
- "sourceCommit": "5fb60f92de196da3737bc35d8839cad438a1840b",
7
- "otaManifestUrl": "https://artifactscdn.mentraglass.com/Mentra-Community/MentraOS/releases/mentra-builds-v3.5.0/mentra-live-ota-3.5.0-dev.1284.json",
8
- "otaManifestSha256": "fe9b0117a0901aeb8a137a0e0a2ae87143abab909f3867b22a415d202207d53e"
4
+ "releaseIdentity": "3.5.0-dev.1289",
5
+ "releaseSetId": "mentra-3.5.0-dev.1289",
6
+ "sourceCommit": "fb98c4575d9e2016a7c535eb4afdb2b412d3d589",
7
+ "otaManifestUrl": "https://artifactscdn.mentraglass.com/Mentra-Community/MentraOS/releases/mentra-builds-v3.5.0/mentra-live-ota-3.5.0-dev.1289.json",
8
+ "otaManifestSha256": "8726f1e1dfc07bdd5c0b55a79cd5fc882ba6971dfc961c2ef846b50da9bc865d"
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.1284\",\n \"releaseSetId\": \"mentra-3.5.0-dev.1284\",\n \"sourceCommit\": \"5fb60f92de196da3737bc35d8839cad438a1840b\",\n \"otaManifestUrl\": \"https://artifactscdn.mentraglass.com/Mentra-Community/MentraOS/releases/mentra-builds-v3.5.0/mentra-live-ota-3.5.0-dev.1284.json\",\n \"otaManifestSha256\": \"fe9b0117a0901aeb8a137a0e0a2ae87143abab909f3867b22a415d202207d53e\"\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.1289\",\n \"releaseSetId\": \"mentra-3.5.0-dev.1289\",\n \"sourceCommit\": \"fb98c4575d9e2016a7c535eb4afdb2b412d3d589\",\n \"otaManifestUrl\": \"https://artifactscdn.mentraglass.com/Mentra-Community/MentraOS/releases/mentra-builds-v3.5.0/mentra-live-ota-3.5.0-dev.1289.json\",\n \"otaManifestSha256\": \"8726f1e1dfc07bdd5c0b55a79cd5fc882ba6971dfc961c2ef846b50da9bc865d\"\n})\n"]}
@@ -16,7 +16,7 @@ enum BluetoothSdkDefaults {
16
16
  /// silently disable it on every pair the app touches.
17
17
  static let autoPowerOffEnabled = true
18
18
  private static let infoSdkVersionKey = "MentraBluetoothSdkVersion"
19
- private static let swiftPackageSdkVersion = "3.5.0-dev.1284"
19
+ private static let swiftPackageSdkVersion = "3.5.0-dev.1289"
20
20
  private static let swiftPackageSdkVersionPlaceholder = "__MENTRA" + "_BLUETOOTH_SDK_VERSION__"
21
21
 
22
22
  private static func normalizedSdkVersion(_ value: String?) -> String? {
@@ -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.1284"
7
- static let releaseSetId = "mentra-3.5.0-dev.1284"
8
- static let sourceCommit = "5fb60f92de196da3737bc35d8839cad438a1840b"
9
- static let otaManifestUrl = "https://artifactscdn.mentraglass.com/Mentra-Community/MentraOS/releases/mentra-builds-v3.5.0/mentra-live-ota-3.5.0-dev.1284.json"
10
- static let otaManifestSha256 = "fe9b0117a0901aeb8a137a0e0a2ae87143abab909f3867b22a415d202207d53e"
6
+ static let releaseIdentity = "3.5.0-dev.1289"
7
+ static let releaseSetId = "mentra-3.5.0-dev.1289"
8
+ static let sourceCommit = "fb98c4575d9e2016a7c535eb4afdb2b412d3d589"
9
+ static let otaManifestUrl = "https://artifactscdn.mentraglass.com/Mentra-Community/MentraOS/releases/mentra-builds-v3.5.0/mentra-live-ota-3.5.0-dev.1289.json"
10
+ static let otaManifestSha256 = "8726f1e1dfc07bdd5c0b55a79cd5fc882ba6971dfc961c2ef846b50da9bc865d"
11
11
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mentra/bluetooth-sdk",
3
- "version": "3.5.0-dev.1284",
3
+ "version": "3.5.0-dev.1289",
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.1284"
118
+ "@mentra/cloud-protocol": "3.5.0-dev.1289"
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.1284",
16
- "releaseSetId": "mentra-3.5.0-dev.1284",
17
- "sourceCommit": "5fb60f92de196da3737bc35d8839cad438a1840b",
18
- "otaManifestUrl": "https://artifactscdn.mentraglass.com/Mentra-Community/MentraOS/releases/mentra-builds-v3.5.0/mentra-live-ota-3.5.0-dev.1284.json",
19
- "otaManifestSha256": "fe9b0117a0901aeb8a137a0e0a2ae87143abab909f3867b22a415d202207d53e"
15
+ "releaseIdentity": "3.5.0-dev.1289",
16
+ "releaseSetId": "mentra-3.5.0-dev.1289",
17
+ "sourceCommit": "fb98c4575d9e2016a7c535eb4afdb2b412d3d589",
18
+ "otaManifestUrl": "https://artifactscdn.mentraglass.com/Mentra-Community/MentraOS/releases/mentra-builds-v3.5.0/mentra-live-ota-3.5.0-dev.1289.json",
19
+ "otaManifestSha256": "8726f1e1dfc07bdd5c0b55a79cd5fc882ba6971dfc961c2ef846b50da9bc865d"
20
20
  })