@mentra/bluetooth-sdk 3.4.0-dev.1058 → 3.4.0-dev.1060
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/BesCrashReportWaiters.kt +68 -0
- package/android/src/main/java/com/mentra/bluetoothsdk/BluetoothSdkModule.kt +9 -0
- package/android/src/main/java/com/mentra/bluetoothsdk/DeviceManager.kt +7 -0
- package/android/src/main/java/com/mentra/bluetoothsdk/GeneratedReleaseMetadata.kt +5 -5
- package/android/src/main/java/com/mentra/bluetoothsdk/MentraBluetoothSdk.kt +22 -0
- package/android/src/main/java/com/mentra/bluetoothsdk/events/BluetoothEvents.kt +16 -0
- package/android/src/main/java/com/mentra/bluetoothsdk/sgcs/MentraLive.kt +85 -7
- package/android/src/main/java/com/mentra/bluetoothsdk/sgcs/SGCManager.kt +6 -0
- package/android/src/main/java/com/mentra/bluetoothsdk/utils/IncidentLogBleRelayNaming.java +11 -0
- package/android/src/test/java/com/mentra/bluetoothsdk/BesCrashReportWaitersTest.kt +112 -0
- package/android/src/test/java/com/mentra/bluetoothsdk/sgcs/MentraLiveIncidentDispatchTest.kt +175 -0
- package/android/src/test/java/com/mentra/bluetoothsdk/utils/IncidentLogBleRelayNamingTest.kt +23 -0
- package/build/BluetoothSdk.types.d.ts +47 -0
- package/build/BluetoothSdk.types.d.ts.map +1 -1
- package/build/BluetoothSdk.types.js.map +1 -1
- package/build/_private/BluetoothSdkModule.d.ts +6 -0
- package/build/_private/BluetoothSdkModule.d.ts.map +1 -1
- package/build/_private/BluetoothSdkModule.js +1 -0
- package/build/_private/BluetoothSdkModule.js.map +1 -1
- 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 +1 -0
- package/build/index.js.map +1 -1
- package/ios/BluetoothSdkModule.swift +8 -0
- package/ios/Source/BesCrashReportWaiters.swift +64 -0
- package/ios/Source/BluetoothSdkDefaults.swift +1 -1
- package/ios/Source/DeviceManager.swift +7 -0
- package/ios/Source/GeneratedReleaseMetadata.swift +5 -5
- package/ios/Source/MentraBluetoothSDK.swift +25 -0
- package/ios/Source/events/BluetoothEvents.swift +41 -0
- package/ios/Source/sgcs/MentraLive.swift +88 -12
- package/ios/Source/sgcs/SGCManager.swift +6 -0
- package/ios/Tests/BesCrashReportTests.swift +142 -0
- package/ios/Tests/IncidentLogDispatchTests.swift +158 -0
- package/package.json +2 -2
- package/src/BluetoothSdk.types.ts +51 -0
- package/src/_private/BluetoothSdkModule.ts +10 -0
- package/src/generated/releaseMetadata.ts +5 -5
- package/src/index.ts +5 -0
|
@@ -131,6 +131,12 @@ declare class BluetoothSdkNativeModule extends NativeModule<BluetoothSdkModuleEv
|
|
|
131
131
|
|
|
132
132
|
// Incident Reporting
|
|
133
133
|
sendIncidentId(incidentId: string, apiBaseUrl?: string | null): Promise<void>
|
|
134
|
+
/**
|
|
135
|
+
* Tell Mentra Live that Cloud recorded `reportId` for the BES crash incident
|
|
136
|
+
* `incidentKey`. Resolves only on the glasses' matching `ok:true` ack; rejects
|
|
137
|
+
* on `ok:false`, disconnect, or after 10 s. Call `sendIncidentId` only after it resolves.
|
|
138
|
+
*/
|
|
139
|
+
sendBesCrashReported(incidentKey: string, reportId: string): Promise<void>
|
|
134
140
|
|
|
135
141
|
// WiFi Commands
|
|
136
142
|
requestWifiScan(): Promise<WifiSearchResult[]>
|
|
@@ -756,5 +762,9 @@ NativeBluetoothSdkModule.requestWearTuning = bindNativeMethod<() => Promise<void
|
|
|
756
762
|
)
|
|
757
763
|
NativeBluetoothSdkModule.resetWearTuning = bindNativeMethod<() => Promise<void>>(nativeWearModule, "resetWearTuning")
|
|
758
764
|
|
|
765
|
+
NativeBluetoothSdkModule.sendBesCrashReported = bindNativeMethod<
|
|
766
|
+
(incidentKey: string, reportId: string) => Promise<void>
|
|
767
|
+
>(NativeBluetoothSdkModule as unknown as Record<string, unknown>, "sendBesCrashReported")
|
|
768
|
+
|
|
759
769
|
export default NativeBluetoothSdkModule
|
|
760
770
|
export const BluetoothSdk = NativeBluetoothSdkModule as BluetoothSdkInternalModule
|
|
@@ -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.0",
|
|
15
|
-
"releaseIdentity": "3.4.0-dev.
|
|
16
|
-
"releaseSetId": "mentra-3.4.0-dev.
|
|
17
|
-
"sourceCommit": "
|
|
18
|
-
"otaManifestUrl": "https://artifactscdn.mentraglass.com/Mentra-Community/MentraOS/releases/mentra-builds-v3.4.0/mentra-live-ota-3.4.0-dev.
|
|
19
|
-
"otaManifestSha256": "
|
|
15
|
+
"releaseIdentity": "3.4.0-dev.1060",
|
|
16
|
+
"releaseSetId": "mentra-3.4.0-dev.1060",
|
|
17
|
+
"sourceCommit": "fd4ed21ac4972faedcbad1dd4d1b7e800fbf23b9",
|
|
18
|
+
"otaManifestUrl": "https://artifactscdn.mentraglass.com/Mentra-Community/MentraOS/releases/mentra-builds-v3.4.0/mentra-live-ota-3.4.0-dev.1060.json",
|
|
19
|
+
"otaManifestSha256": "6bf9aedb0c946cc97bd125c01eda779ce39ce94238eafb530b80c9305ebe9641"
|
|
20
20
|
})
|
package/src/index.ts
CHANGED
|
@@ -63,6 +63,7 @@ const PUBLIC_EVENT_NAMES = new Set<BluetoothSdkEventName>([
|
|
|
63
63
|
"ota_start_ack",
|
|
64
64
|
"ota_status",
|
|
65
65
|
"ar99_ota_status",
|
|
66
|
+
"bes_crash_detected",
|
|
66
67
|
"version_info",
|
|
67
68
|
"extraction_progress",
|
|
68
69
|
])
|
|
@@ -221,6 +222,10 @@ export type {
|
|
|
221
222
|
AudioDisconnectedEvent,
|
|
222
223
|
AudioPairingNeededEvent,
|
|
223
224
|
BatteryStatusEvent,
|
|
225
|
+
BesCrashDetectedEvent,
|
|
226
|
+
BesCrashEviction,
|
|
227
|
+
BesCrashIncidentState,
|
|
228
|
+
BesCrashSummary,
|
|
224
229
|
BluetoothSdkEvent,
|
|
225
230
|
BluetoothSdkEventListener,
|
|
226
231
|
BluetoothSdkEventMap,
|