@mentra/bluetooth-sdk 3.2.0-dev.181 → 3.2.0-dev.187
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/README.md +22 -0
- package/android/src/main/java/com/mentra/bluetoothsdk/BluetoothSdkModule.kt +15 -0
- package/android/src/main/java/com/mentra/bluetoothsdk/DeviceManager.kt +8 -0
- package/android/src/main/java/com/mentra/bluetoothsdk/GeneratedReleaseMetadata.kt +5 -5
- package/android/src/main/java/com/mentra/bluetoothsdk/MentraBluetoothSdk.kt +9 -0
- package/android/src/main/java/com/mentra/bluetoothsdk/NativeNotifications.kt +42 -0
- package/android/src/main/java/com/mentra/bluetoothsdk/sgcs/EvenFileService.kt +101 -0
- package/android/src/main/java/com/mentra/bluetoothsdk/sgcs/EvenNotificationProtocol.kt +113 -0
- package/android/src/main/java/com/mentra/bluetoothsdk/sgcs/G2.kt +378 -24
- package/android/src/main/java/com/mentra/bluetoothsdk/sgcs/NotificationIds.kt +19 -0
- package/android/src/main/java/com/mentra/bluetoothsdk/sgcs/SGCManager.kt +11 -0
- package/android/src/test/java/com/mentra/bluetoothsdk/sgcs/EvenFileServiceTest.kt +153 -0
- package/build/BluetoothSdk.types.d.ts +50 -0
- package/build/BluetoothSdk.types.d.ts.map +1 -1
- package/build/BluetoothSdk.types.js.map +1 -1
- package/build/_private/BluetoothSdkModule.d.ts +5 -1
- package/build/_private/BluetoothSdkModule.d.ts.map +1 -1
- 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 -0
- package/build/index.d.ts.map +1 -1
- package/build/index.js +4 -0
- package/build/index.js.map +1 -1
- package/ios/BluetoothSdkModule.swift +23 -0
- package/ios/Source/BluetoothSdkDefaults.swift +1 -1
- package/ios/Source/GeneratedReleaseMetadata.swift +5 -5
- package/ios/Source/MentraBluetoothSDK.swift +10 -0
- package/ios/Source/NativeNotifications.swift +52 -0
- package/ios/Source/sgcs/G2.swift +131 -21
- package/ios/Source/sgcs/SGCManager.swift +22 -0
- package/ios/Tests/NativeNotificationTests.swift +20 -0
- package/package.json +1 -1
- package/src/BluetoothSdk.types.ts +54 -0
- package/src/_private/BluetoothSdkModule.ts +8 -0
- package/src/generated/releaseMetadata.ts +5 -5
- package/src/index.ts +6 -0
|
@@ -27,6 +27,9 @@ import {
|
|
|
27
27
|
GalleryStatusEvent,
|
|
28
28
|
HotspotStatusChangeEvent,
|
|
29
29
|
MicPreference,
|
|
30
|
+
NativePhoneNotification,
|
|
31
|
+
NativeNotificationConfig,
|
|
32
|
+
NativeNotificationStatus,
|
|
30
33
|
ObservableStoreCategory,
|
|
31
34
|
OtaQueryResult,
|
|
32
35
|
OtaStartAckEvent,
|
|
@@ -264,6 +267,11 @@ declare class BluetoothSdkNativeModule extends NativeModule<BluetoothSdkModuleEv
|
|
|
264
267
|
speed: number,
|
|
265
268
|
): Promise<boolean>
|
|
266
269
|
|
|
270
|
+
/** Android G2 content upload. iOS receives ANCS directly and rejects uploads. */
|
|
271
|
+
sendPhoneNotification(notification: NativePhoneNotification): Promise<void>
|
|
272
|
+
configureNativeNotifications(config: NativeNotificationConfig): Promise<void>
|
|
273
|
+
getNativeNotificationStatus(): Promise<NativeNotificationStatus>
|
|
274
|
+
|
|
267
275
|
// Helper methods for type-safe observable store access
|
|
268
276
|
updateGlasses(values: Partial<GlassesStatus>): Promise<void>
|
|
269
277
|
updateBluetoothSettings(values: BluetoothSettingsUpdate): Promise<void>
|
|
@@ -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.
|
|
16
|
-
"releaseSetId": "mentra-3.2.0-dev.
|
|
17
|
-
"sourceCommit": "
|
|
18
|
-
"otaManifestUrl": "https://github.com/Mentra-Community/MentraOS/releases/download/mentra-builds-v3.2.0/mentra-live-ota-3.2.0-dev.
|
|
19
|
-
"otaManifestSha256": "
|
|
15
|
+
"releaseIdentity": "3.2.0-dev.187",
|
|
16
|
+
"releaseSetId": "mentra-3.2.0-dev.187",
|
|
17
|
+
"sourceCommit": "d8b34892f11593baa3c075b94380253b06eb874d",
|
|
18
|
+
"otaManifestUrl": "https://github.com/Mentra-Community/MentraOS/releases/download/mentra-builds-v3.2.0/mentra-live-ota-3.2.0-dev.187.json",
|
|
19
|
+
"otaManifestSha256": "cf21f4ab6347acb12eefa38d2f0a3b433bc0e05428c527bcda57a8693d7a72f9"
|
|
20
20
|
})
|
package/src/index.ts
CHANGED
|
@@ -10,6 +10,8 @@ import type {
|
|
|
10
10
|
import {getReleaseChangelogs} from "./changelogs"
|
|
11
11
|
|
|
12
12
|
const PUBLIC_EVENT_NAMES = new Set<BluetoothSdkEventName>([
|
|
13
|
+
"native_notification_status",
|
|
14
|
+
"native_notification_delivery",
|
|
13
15
|
"log",
|
|
14
16
|
"device_discovered",
|
|
15
17
|
"default_device_changed",
|
|
@@ -85,6 +87,8 @@ const bindPublicMethod = <K extends keyof BluetoothSdkPublicModule>(name: K): Bl
|
|
|
85
87
|
}
|
|
86
88
|
|
|
87
89
|
export const BluetoothSdk: BluetoothSdkPublicModule = Object.freeze({
|
|
90
|
+
configureNativeNotifications: bindPublicMethod("configureNativeNotifications"),
|
|
91
|
+
getNativeNotificationStatus: bindPublicMethod("getNativeNotificationStatus"),
|
|
88
92
|
addListener,
|
|
89
93
|
getGlassesStatus: bindPublicMethod("getGlassesStatus"),
|
|
90
94
|
getBluetoothStatus: bindPublicMethod("getBluetoothStatus"),
|
|
@@ -310,3 +314,5 @@ export type {
|
|
|
310
314
|
WifiStatus,
|
|
311
315
|
WifiStatusChangeEvent,
|
|
312
316
|
} from "./BluetoothSdk.types"
|
|
317
|
+
|
|
318
|
+
export type {NativeNotificationConfig, NativeNotificationStatus, NativeNotificationDelivery} from "./BluetoothSdk.types"
|