@mentra/bluetooth-sdk 3.2.0-dev.181 → 3.2.0-dev.190

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.
Files changed (37) hide show
  1. package/README.md +22 -0
  2. package/android/src/main/java/com/mentra/bluetoothsdk/BluetoothSdkModule.kt +15 -0
  3. package/android/src/main/java/com/mentra/bluetoothsdk/DeviceManager.kt +8 -0
  4. package/android/src/main/java/com/mentra/bluetoothsdk/GeneratedReleaseMetadata.kt +5 -5
  5. package/android/src/main/java/com/mentra/bluetoothsdk/MentraBluetoothSdk.kt +9 -0
  6. package/android/src/main/java/com/mentra/bluetoothsdk/NativeNotifications.kt +42 -0
  7. package/android/src/main/java/com/mentra/bluetoothsdk/sgcs/EvenFileService.kt +101 -0
  8. package/android/src/main/java/com/mentra/bluetoothsdk/sgcs/EvenNotificationProtocol.kt +113 -0
  9. package/android/src/main/java/com/mentra/bluetoothsdk/sgcs/G2.kt +378 -24
  10. package/android/src/main/java/com/mentra/bluetoothsdk/sgcs/NotificationIds.kt +19 -0
  11. package/android/src/main/java/com/mentra/bluetoothsdk/sgcs/SGCManager.kt +11 -0
  12. package/android/src/test/java/com/mentra/bluetoothsdk/sgcs/EvenFileServiceTest.kt +153 -0
  13. package/build/BluetoothSdk.types.d.ts +50 -0
  14. package/build/BluetoothSdk.types.d.ts.map +1 -1
  15. package/build/BluetoothSdk.types.js.map +1 -1
  16. package/build/_private/BluetoothSdkModule.d.ts +5 -1
  17. package/build/_private/BluetoothSdkModule.d.ts.map +1 -1
  18. package/build/_private/BluetoothSdkModule.js.map +1 -1
  19. package/build/generated/releaseMetadata.js +5 -5
  20. package/build/generated/releaseMetadata.js.map +1 -1
  21. package/build/index.d.ts +1 -0
  22. package/build/index.d.ts.map +1 -1
  23. package/build/index.js +4 -0
  24. package/build/index.js.map +1 -1
  25. package/ios/BluetoothSdkModule.swift +23 -0
  26. package/ios/Source/BluetoothSdkDefaults.swift +1 -1
  27. package/ios/Source/GeneratedReleaseMetadata.swift +5 -5
  28. package/ios/Source/MentraBluetoothSDK.swift +10 -0
  29. package/ios/Source/NativeNotifications.swift +52 -0
  30. package/ios/Source/sgcs/G2.swift +131 -21
  31. package/ios/Source/sgcs/SGCManager.swift +22 -0
  32. package/ios/Tests/NativeNotificationTests.swift +20 -0
  33. package/package.json +1 -1
  34. package/src/BluetoothSdk.types.ts +54 -0
  35. package/src/_private/BluetoothSdkModule.ts +8 -0
  36. package/src/generated/releaseMetadata.ts +5 -5
  37. 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.181",
16
- "releaseSetId": "mentra-3.2.0-dev.181",
17
- "sourceCommit": "89a4792321ce95bd16aadd721bc3dbc20e338861",
18
- "otaManifestUrl": "https://github.com/Mentra-Community/MentraOS/releases/download/mentra-builds-v3.2.0/mentra-live-ota-3.2.0-dev.181.json",
19
- "otaManifestSha256": "d9a100cc81733d02848a86c7617eff154f4cd9d714d1d36407789aeebbf71251"
15
+ "releaseIdentity": "3.2.0-dev.190",
16
+ "releaseSetId": "mentra-3.2.0-dev.190",
17
+ "sourceCommit": "9cec54c1238d6d52a90e2edc84f0b99692b8a81a",
18
+ "otaManifestUrl": "https://github.com/Mentra-Community/MentraOS/releases/download/mentra-builds-v3.2.0/mentra-live-ota-3.2.0-dev.190.json",
19
+ "otaManifestSha256": "00504171cce268dae2a22d9c4156cb7bac0b8a4397b35a3890ed561c619e5df0"
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"