@glassly/bluetooth-sdk 0.1.0-dev.61 → 0.1.0-dev.89

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 (48) hide show
  1. package/README.md +4 -4
  2. package/android/src/main/assets/G2Firmware/README.md +3 -3
  3. package/android/src/main/assets/G2Firmware/g2-glassly-cfw-2.2.9.22.evenota.bin +0 -0
  4. package/android/src/main/assets/G2Firmware/g2-stock-2.2.9.22.evenota.bin +0 -0
  5. package/android/src/main/java/com/glassly/bluetoothsdk/BluetoothSdk.kt +0 -4
  6. package/android/src/main/java/com/glassly/bluetoothsdk/BluetoothSdkModule.kt +0 -1
  7. package/android/src/main/java/com/glassly/bluetoothsdk/DeviceManager.kt +30 -86
  8. package/android/src/main/java/com/glassly/bluetoothsdk/DeviceStore.kt +1 -2
  9. package/android/src/main/java/com/glassly/bluetoothsdk/GeneratedReleaseMetadata.kt +3 -3
  10. package/android/src/main/java/com/glassly/bluetoothsdk/controllers/R1.kt +171 -51
  11. package/android/src/main/java/com/glassly/bluetoothsdk/sgcs/G2.kt +23 -3
  12. package/android/src/main/java/com/glassly/bluetoothsdk/sgcs/G2CfwRenderer.kt +18 -6
  13. package/android/src/main/java/com/glassly/bluetoothsdk/sgcs/G2FlashProtocol.kt +3 -3
  14. package/android/src/main/java/com/glassly/bluetoothsdk/sgcs/G2Flasher.kt +8 -8
  15. package/build/BluetoothSdk.types.d.ts +37 -1
  16. package/build/BluetoothSdk.types.d.ts.map +1 -1
  17. package/build/BluetoothSdk.types.js.map +1 -1
  18. package/build/_private/BluetoothSdkModule.d.ts +0 -1
  19. package/build/_private/BluetoothSdkModule.d.ts.map +1 -1
  20. package/build/_private/BluetoothSdkModule.js.map +1 -1
  21. package/build/generated/releaseMetadata.js +3 -3
  22. package/build/generated/releaseMetadata.js.map +1 -1
  23. package/build/index.d.ts.map +1 -1
  24. package/build/index.js +0 -1
  25. package/build/index.js.map +1 -1
  26. package/ios/BluetoothSdkModule.swift +0 -6
  27. package/ios/Source/BluetoothSDK.swift +0 -4
  28. package/ios/Source/BluetoothSdkDefaults.swift +1 -1
  29. package/ios/Source/DeviceManager.swift +35 -88
  30. package/ios/Source/DeviceStore.swift +16 -2
  31. package/ios/Source/GeneratedReleaseMetadata.swift +3 -3
  32. package/ios/Source/Resources/G2Firmware/README.md +3 -3
  33. package/ios/Source/Resources/G2Firmware/g2-glassly-cfw-2.2.9.22.evenota.bin +0 -0
  34. package/ios/Source/Resources/G2Firmware/g2-stock-2.2.9.22.evenota.bin +0 -0
  35. package/ios/Source/controllers/R1.swift +145 -49
  36. package/ios/Source/sgcs/G2.swift +311 -54
  37. package/ios/Source/sgcs/G2CfwRenderer.swift +24 -8
  38. package/ios/Source/sgcs/G2FlashProtocol.swift +2 -2
  39. package/ios/Source/sgcs/G2Flasher.swift +8 -8
  40. package/ios/Source/sgcs/SGCManager.swift +13 -0
  41. package/ios/Source/utils/G2NotifyFile.swift +116 -0
  42. package/ios/Tests/BluetoothSDKTests/G2CfwRendererTests.swift +2 -2
  43. package/ios/Tests/BluetoothSDKTests/G2NotifyFileTests.swift +91 -0
  44. package/package.json +1 -1
  45. package/src/BluetoothSdk.types.ts +37 -1
  46. package/src/_private/BluetoothSdkModule.ts +0 -1
  47. package/src/generated/releaseMetadata.ts +3 -3
  48. package/src/index.ts +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,yBAAyB,MAAM,+BAA+B,CAAA;AASrE,OAAO,EAAC,oBAAoB,EAAC,MAAM,cAAc,CAAA;AAEjD,MAAM,kBAAkB,GAAG,IAAI,GAAG,CAAwB;IACxD,KAAK;IACL,mBAAmB;IACnB,wBAAwB;IACxB,mBAAmB;IACnB,cAAc;IACd,aAAa;IACb,aAAa;IACb,SAAS;IACT,iCAAiC;IACjC,iBAAiB;IACjB,gBAAgB;IAChB,qBAAqB;IACrB,oBAAoB;IACpB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BAAoB,EAAE,gBAAgB,CAAC,sBAAsB,CAAC;IAC9D,aAAa,EAAE,gBAAgB,CAAC,eAAe,CAAC;IAChD,oBAAoB,EAAE,gBAAgB,CAAC,sBAAsB,CAAC;IAC9D,qBAAqB,EAAE,gBAAgB,CAAC,uBAAuB,CAAC;IAChE,kBAAkB,EAAE,gBAAgB,CAAC,oBAAoB,CAAC;IAC1D,eAAe,EAAE,gBAAgB,CAAC,iBAAiB,CAAC;IACpD,sBAAsB,EAAE,gBAAgB,CAAC,wBAAwB,CAAC;IAClE,gBAAgB,EAAE,gBAAgB,CAAC,kBAAkB,CAAC;IACtD,aAAa,EAAE,gBAAgB,CAAC,eAAe,CAAC;IAChD,kBAAkB,EAAE,gBAAgB,CAAC,oBAAoB,CAAC;IAC1D,kBAAkB,EAAE,gBAAgB,CAAC,oBAAoB,CAAC;IAC1D,eAAe,EAAE,gBAAgB,CAAC,iBAAiB,CAAC;IACpD,mBAAmB,EAAE,gBAAgB,CAAC,qBAAqB,CAAC;IAC5D,sBAAsB,EAAE,gBAAgB,CAAC,wBAAwB,CAAC;IAClE,gBAAgB,EAAE,gBAAgB,CAAC,kBAAkB,CAAC;IACtD,gBAAgB,EAAE,gBAAgB,CAAC,kBAAkB,CAAC;CACvD,CAAC,CAAA;AAEF,eAAe,YAAY,CAAA;AAE3B,OAAO,EACL,kBAAkB,EAClB,cAAc,EACd,cAAc,EACd,YAAY,EACZ,6BAA6B,EAC7B,kCAAkC,EAClC,qBAAqB,EACrB,sBAAsB,EACtB,8BAA8B,GAC/B,MAAM,sBAAsB,CAAA","sourcesContent":["import PrivateBluetoothSdkModule from \"./_private/BluetoothSdkModule\"\nimport type {\n BluetoothSdkEventListener,\n BluetoothSdkEventName,\n BluetoothSdkPublicModule,\n PublicBluetoothStatus,\n PublicGlassesStatus,\n VideoRecordingDefaults,\n} from \"./BluetoothSdk.types\"\nimport {getReleaseChangelogs} from \"./changelogs\"\n\nconst PUBLIC_EVENT_NAMES = new Set<BluetoothSdkEventName>([\n \"log\",\n \"device_discovered\",\n \"default_device_changed\",\n \"glasses_not_ready\",\n \"button_press\",\n \"touch_event\",\n \"accel_event\",\n \"head_up\",\n \"voice_activity_detection_status\",\n \"speaking_status\",\n \"battery_status\",\n \"local_transcription\",\n \"wifi_status_change\",\n \"wifi_scan_result\",\n \"hotspot_status_change\",\n \"hotspot_error\",\n \"photo_response\",\n \"photo_status\",\n \"camera_status\",\n \"video_recording_status\",\n \"media_success\",\n \"media_error\",\n \"gallery_status\",\n \"compatible_glasses_search_stop\",\n \"swipe_volume_status\",\n \"switch_status\",\n \"rgb_led_control_response\",\n \"settings_ack\",\n \"pair_failure\",\n \"pairing_info\",\n \"entering_pairing_mode\",\n \"owner_replaced\",\n \"audio_pairing_needed\",\n \"audio_connected\",\n \"audio_disconnected\",\n \"mic_pcm\",\n \"mic_lc3\",\n \"mic_health\",\n \"stream_status\",\n \"mtk_update_complete\",\n \"glasses_session_changed\",\n \"ota_start_ack\",\n \"ota_status\",\n \"ar99_ota_status\",\n \"g2_firmware_flash_progress\",\n \"version_info\",\n \"extraction_progress\",\n])\n\nconst addListener: BluetoothSdkPublicModule[\"addListener\"] = (eventName, listener) => {\n if (!PUBLIC_EVENT_NAMES.has(eventName)) {\n throw new Error(`Unsupported BluetoothSdk event \"${eventName}\". Use @glassly/bluetooth-sdk/react for status state.`)\n }\n return PrivateBluetoothSdkModule.addListener(eventName, listener as BluetoothSdkEventListener<BluetoothSdkEventName>)\n}\n\nconst startOtaUpdate: BluetoothSdkPublicModule[\"startOtaUpdate\"] = (otaVersionUrl) => {\n return PrivateBluetoothSdkModule.startOtaUpdate(otaVersionUrl)\n}\n\nconst queryOtaStatus: BluetoothSdkPublicModule[\"queryOtaStatus\"] = () => {\n return PrivateBluetoothSdkModule.sendOtaQueryStatus()\n}\n\nconst bindPublicMethod = <K extends keyof BluetoothSdkPublicModule>(name: K): BluetoothSdkPublicModule[K] => {\n const method = (PrivateBluetoothSdkModule as unknown as Record<string, unknown>)[name]\n if (typeof method === \"function\") {\n return method.bind(PrivateBluetoothSdkModule) as BluetoothSdkPublicModule[K]\n }\n\n return (async () => {\n throw new Error(`BluetoothSdk.${String(name)} is not available in this native build. Rebuild the app.`)\n }) as unknown as BluetoothSdkPublicModule[K]\n}\n\nexport const BluetoothSdk: BluetoothSdkPublicModule = Object.freeze({\n addListener,\n getGlassesStatus: bindPublicMethod(\"getGlassesStatus\"),\n getBluetoothStatus: bindPublicMethod(\"getBluetoothStatus\"),\n subscribeGlassesStatus: (listener: (changed: Partial<PublicGlassesStatus>) => void) =>\n PrivateBluetoothSdkModule.onGlassesStatus(listener),\n subscribeBluetoothStatus: (listener: (changed: Partial<PublicBluetoothStatus>) => void) =>\n PrivateBluetoothSdkModule.onBluetoothStatus(listener),\n getDefaultDevice: bindPublicMethod(\"getDefaultDevice\"),\n setDefaultDevice: bindPublicMethod(\"setDefaultDevice\"),\n clearDefaultDevice: bindPublicMethod(\"clearDefaultDevice\"),\n startScan: bindPublicMethod(\"startScan\"),\n stopScan: bindPublicMethod(\"stopScan\"),\n scan: bindPublicMethod(\"scan\") as BluetoothSdkPublicModule[\"scan\"],\n connect: bindPublicMethod(\"connect\"),\n connectDefault: bindPublicMethod(\"connectDefault\"),\n cancelConnectionAttempt: bindPublicMethod(\"cancelConnectionAttempt\"),\n disconnect: bindPublicMethod(\"disconnect\"),\n forget: bindPublicMethod(\"forget\"),\n displayText: bindPublicMethod(\"displayText\"),\n clearDisplay: bindPublicMethod(\"clearDisplay\"),\n showDashboard: bindPublicMethod(\"showDashboard\"),\n toggleHeadUp: bindPublicMethod(\"toggleHeadUp\"),\n showNativeNotificationPanel: bindPublicMethod(\"showNativeNotificationPanel\"),\n setDashboardPosition: bindPublicMethod(\"setDashboardPosition\"),\n setHeadUpAngle: bindPublicMethod(\"setHeadUpAngle\"),\n setImuEnabled: bindPublicMethod(\"setImuEnabled\"),\n setScreenDisabled: bindPublicMethod(\"setScreenDisabled\"),\n ping: bindPublicMethod(\"ping\"),\n requestWifiScan: bindPublicMethod(\"requestWifiScan\"),\n sendWifiCredentials: bindPublicMethod(\"sendWifiCredentials\"),\n forgetWifiNetwork: bindPublicMethod(\"forgetWifiNetwork\"),\n setHotspotState: bindPublicMethod(\"setHotspotState\"),\n setSystemTime: bindPublicMethod(\"setSystemTime\"),\n setWifiAdbState: bindPublicMethod(\"setWifiAdbState\"),\n setGalleryModeEnabled: bindPublicMethod(\"setGalleryModeEnabled\"),\n setVoiceActivityDetectionEnabled: bindPublicMethod(\"setVoiceActivityDetectionEnabled\"),\n setLoudnessGateEnabled: bindPublicMethod(\"setLoudnessGateEnabled\"),\n /**\n * @deprecated Sticky action-button photo presets are deprecated. Prefer per-request\n * `requestPhoto(...)` options (e.g. `mode: \"text\"` for text sensor size/crop, or explicit per-shot\n * fields). Still functional until removed in a future release.\n */\n setPhotoCaptureDefaults: bindPublicMethod(\"setPhotoCaptureDefaults\"),\n setVideoRecordingDefaults: ({width, height, fps}: VideoRecordingDefaults) => {\n const method = (PrivateBluetoothSdkModule as unknown as Record<string, unknown>).setVideoRecordingDefaults\n if (typeof method !== \"function\") {\n return Promise.reject(\n new Error(\"BluetoothSdk.setVideoRecordingDefaults is not available in this native build. Rebuild the app.\"),\n )\n }\n return PrivateBluetoothSdkModule.setVideoRecordingDefaults(width, height, fps)\n },\n setMaxVideoRecordingDuration: bindPublicMethod(\"setMaxVideoRecordingDuration\"),\n setCameraFov: bindPublicMethod(\"setCameraFov\"),\n setLegacyCameraFov: bindPublicMethod(\"setLegacyCameraFov\"),\n setCameraFovOverride: bindPublicMethod(\"setCameraFovOverride\"),\n releaseCameraFovOverride: bindPublicMethod(\"releaseCameraFovOverride\"),\n setCameraTuningConfig: bindPublicMethod(\"setCameraTuningConfig\"),\n queryGalleryStatus: bindPublicMethod(\"queryGalleryStatus\"),\n requestPhoto: bindPublicMethod(\"requestPhoto\"),\n warmUpCamera: bindPublicMethod(\"warmUpCamera\"),\n stopCameraWarmUp: bindPublicMethod(\"stopCameraWarmUp\"),\n startVideoRecording: bindPublicMethod(\"startVideoRecording\"),\n stopVideoRecording: bindPublicMethod(\"stopVideoRecording\"),\n queryVideoRecordingStatus: bindPublicMethod(\"queryVideoRecordingStatus\"),\n startStream: bindPublicMethod(\"startStream\"),\n stopStream: bindPublicMethod(\"stopStream\"),\n setMicState: bindPublicMethod(\"setMicState\"),\n setPreferredMic: bindPublicMethod(\"setPreferredMic\"),\n setOwnAppAudioPlaying: bindPublicMethod(\"setOwnAppAudioPlaying\"),\n getGlassesMediaVolume: bindPublicMethod(\"getGlassesMediaVolume\"),\n setGlassesMediaVolume: bindPublicMethod(\"setGlassesMediaVolume\"),\n rgbLedControl: bindPublicMethod(\"rgbLedControl\"),\n requestVersionInfo: bindPublicMethod(\"requestVersionInfo\"),\n availableG2FirmwareArtifacts: bindPublicMethod(\"availableG2FirmwareArtifacts\"),\n startG2FirmwareFlash: bindPublicMethod(\"startG2FirmwareFlash\"),\n setOtaVersionUrl: bindPublicMethod(\"setOtaVersionUrl\"),\n getOtaVersionUrl: bindPublicMethod(\"getOtaVersionUrl\"),\n checkForOtaUpdate: bindPublicMethod(\"checkForOtaUpdate\"),\n getReleaseChangelogs,\n startOtaUpdate,\n queryOtaStatus,\n startAr99OtaFromFile: bindPublicMethod(\"startAr99OtaFromFile\"),\n cancelAr99Ota: bindPublicMethod(\"cancelAr99Ota\"),\n sendAr99FactoryReset: bindPublicMethod(\"sendAr99FactoryReset\"),\n buildAr99OtaSignature: bindPublicMethod(\"buildAr99OtaSignature\"),\n setSttModelDetails: bindPublicMethod(\"setSttModelDetails\"),\n getSttModelPath: bindPublicMethod(\"getSttModelPath\"),\n checkSttModelAvailable: bindPublicMethod(\"checkSttModelAvailable\"),\n validateSttModel: bindPublicMethod(\"validateSttModel\"),\n extractTarBz2: bindPublicMethod(\"extractTarBz2\"),\n restartTranscriber: bindPublicMethod(\"restartTranscriber\"),\n setTtsModelDetails: bindPublicMethod(\"setTtsModelDetails\"),\n getTtsModelPath: bindPublicMethod(\"getTtsModelPath\"),\n getTtsModelLanguage: bindPublicMethod(\"getTtsModelLanguage\"),\n checkTtsModelAvailable: bindPublicMethod(\"checkTtsModelAvailable\"),\n validateTtsModel: bindPublicMethod(\"validateTtsModel\"),\n generateTtsAudio: bindPublicMethod(\"generateTtsAudio\"),\n})\n\nexport default BluetoothSdk\n\nexport {\n CAMERA_FOV_DEFAULT,\n CAMERA_FOV_MAX,\n CAMERA_FOV_MIN,\n DeviceModels,\n isBusyGlassesConnectionStatus,\n isConnectedGlassesConnectionStatus,\n isConnectedWifiStatus,\n isEnabledHotspotStatus,\n isReadyGlassesConnectionStatus,\n} from \"./BluetoothSdk.types\"\n\nexport type {\n AccelEvent,\n Ar99OtaStatusEvent,\n AudioConnectedEvent,\n AudioDisconnectedEvent,\n AudioPairingNeededEvent,\n BatteryStatusEvent,\n BluetoothSdkEvent,\n BluetoothSdkEventListener,\n BluetoothSdkEventMap,\n BluetoothSdkEventName,\n BluetoothSdkPublicModule as BluetoothSdkModule,\n BluetoothSdkSubscription,\n ButtonPhotoSize,\n PhotoCaptureDefaults,\n ButtonPressEvent,\n CameraFovPreset,\n CameraFovRequest,\n CameraFovResult,\n CameraRoiPosition,\n CompatibleGlassesSearchStopEvent,\n ConnectOptions,\n ConnectedGlassesConnectionStatus,\n ConnectedWifiStatus,\n Device,\n DeviceModel,\n EnabledHotspotStatus,\n GalleryStatusEvent,\n G2FirmwareArtifact,\n G2FirmwareFlashProgressEvent,\n G2FirmwareFlashResult,\n G2FirmwareTarget,\n GlassesConnectionStatus,\n GlassesMediaVolumeGetResult,\n GlassesMediaVolumeSetResult,\n GlassesNotReadyEvent,\n HeadUpEvent,\n HotspotErrorEvent,\n HotspotStatus,\n HotspotStatusChangeEvent,\n GlassesSessionChangedEvent,\n KeepAliveAckEvent,\n LocalTranscriptionEvent,\n LogEvent,\n MicLc3Event,\n MicHealthEvent,\n MicMode,\n MicPcmEvent,\n MicPreference,\n OtaStartAckEvent,\n OtaProgress,\n OtaProgressStatus,\n OtaStage,\n OtaStatus,\n OtaStatusEvent,\n OtaQueryResult,\n OtaUpdateInfo,\n ReleaseChangelog,\n SpeakerEnrollProgressEvent,\n SpeakerEnrollResultEvent,\n MtkUpdateCompleteEvent,\n PairFailureEvent,\n PairingInfoEvent,\n EnteringPairingModeEvent,\n OwnerReplacedEvent,\n PhotoCaptureMetadata,\n PhotoResolvedConfig,\n PhotoCompression,\n PhotoFpsRange,\n PhotoMeteredPreview,\n PhotoMode,\n PublicBluetoothStatus,\n PublicGlassesStatus,\n PhotoTransferMethod,\n PhotoResponseEvent,\n PhotoRequestedCaptureConfig,\n PhotoRequestParams,\n PhotoSize,\n PhotoStatusEvent,\n PhotoStatusState,\n PhotoSuccessResponseEvent,\n RgbLedAction,\n RgbLedColor,\n RgbLedControlResponseEvent,\n RgbLedControlSuccessResponseEvent,\n ScanModelOptions,\n ScanOptions,\n ScanResultsCallback,\n SpeakingStatusEvent,\n SettingsAckEvent,\n SettingsAckSetting,\n SettingsAckSuccessEvent,\n SettingsAckSuccessStatus,\n SettingsAckStatus,\n StreamAudioConfig,\n StreamResolvedConfig,\n StreamStartRequest,\n StreamStatusEvent,\n StreamStatusLifecycleState,\n StreamStatusReconnectState,\n StreamStatusState,\n StreamVideoConfig,\n SwipeVolumeStatusEvent,\n SwitchStatusEvent,\n TouchEvent,\n VideoRecordingDefaults,\n VideoRecordingStartedStatusEvent,\n VideoRecordingStatusEvent,\n VideoRecordingStatusState,\n VideoRecordingStoppedStatusEvent,\n VideoRecordingSuccessStatusEvent,\n VersionInfoEvent,\n VersionInfoResult,\n WifiScanResultEvent,\n VoiceActivityDetectionStatusEvent,\n WifiSearchResult,\n WifiStatus,\n WifiStatusChangeEvent,\n} from \"./BluetoothSdk.types\"\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,yBAAyB,MAAM,+BAA+B,CAAA;AASrE,OAAO,EAAC,oBAAo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nimport type {\n BluetoothSdkEventListener,\n BluetoothSdkEventName,\n BluetoothSdkPublicModule,\n PublicBluetoothStatus,\n PublicGlassesStatus,\n VideoRecordingDefaults,\n} from \"./BluetoothSdk.types\"\nimport {getReleaseChangelogs} from \"./changelogs\"\n\nconst PUBLIC_EVENT_NAMES = new Set<BluetoothSdkEventName>([\n \"log\",\n \"device_discovered\",\n \"default_device_changed\",\n \"glasses_not_ready\",\n \"button_press\",\n \"touch_event\",\n \"accel_event\",\n \"head_up\",\n \"voice_activity_detection_status\",\n \"speaking_status\",\n \"battery_status\",\n \"local_transcription\",\n \"wifi_status_change\",\n \"wifi_scan_result\",\n \"hotspot_status_change\",\n \"hotspot_error\",\n \"photo_response\",\n \"photo_status\",\n \"camera_status\",\n \"video_recording_status\",\n \"media_success\",\n \"media_error\",\n \"gallery_status\",\n \"compatible_glasses_search_stop\",\n \"swipe_volume_status\",\n \"switch_status\",\n \"rgb_led_control_response\",\n \"settings_ack\",\n \"pair_failure\",\n \"pairing_info\",\n \"entering_pairing_mode\",\n \"owner_replaced\",\n \"audio_pairing_needed\",\n \"audio_connected\",\n \"audio_disconnected\",\n \"mic_pcm\",\n \"mic_lc3\",\n \"mic_health\",\n \"stream_status\",\n \"mtk_update_complete\",\n \"glasses_session_changed\",\n \"ota_start_ack\",\n \"ota_status\",\n \"ar99_ota_status\",\n \"g2_firmware_flash_progress\",\n \"version_info\",\n \"extraction_progress\",\n])\n\nconst addListener: BluetoothSdkPublicModule[\"addListener\"] = (eventName, listener) => {\n if (!PUBLIC_EVENT_NAMES.has(eventName)) {\n throw new Error(`Unsupported BluetoothSdk event \"${eventName}\". Use @glassly/bluetooth-sdk/react for status state.`)\n }\n return PrivateBluetoothSdkModule.addListener(eventName, listener as BluetoothSdkEventListener<BluetoothSdkEventName>)\n}\n\nconst startOtaUpdate: BluetoothSdkPublicModule[\"startOtaUpdate\"] = (otaVersionUrl) => {\n return PrivateBluetoothSdkModule.startOtaUpdate(otaVersionUrl)\n}\n\nconst queryOtaStatus: BluetoothSdkPublicModule[\"queryOtaStatus\"] = () => {\n return PrivateBluetoothSdkModule.sendOtaQueryStatus()\n}\n\nconst bindPublicMethod = <K extends keyof BluetoothSdkPublicModule>(name: K): BluetoothSdkPublicModule[K] => {\n const method = (PrivateBluetoothSdkModule as unknown as Record<string, unknown>)[name]\n if (typeof method === \"function\") {\n return method.bind(PrivateBluetoothSdkModule) as BluetoothSdkPublicModule[K]\n }\n\n return (async () => {\n throw new Error(`BluetoothSdk.${String(name)} is not available in this native build. Rebuild the app.`)\n }) as unknown as BluetoothSdkPublicModule[K]\n}\n\nexport const BluetoothSdk: BluetoothSdkPublicModule = Object.freeze({\n addListener,\n getGlassesStatus: bindPublicMethod(\"getGlassesStatus\"),\n getBluetoothStatus: bindPublicMethod(\"getBluetoothStatus\"),\n subscribeGlassesStatus: (listener: (changed: Partial<PublicGlassesStatus>) => void) =>\n PrivateBluetoothSdkModule.onGlassesStatus(listener),\n subscribeBluetoothStatus: (listener: (changed: Partial<PublicBluetoothStatus>) => void) =>\n PrivateBluetoothSdkModule.onBluetoothStatus(listener),\n getDefaultDevice: bindPublicMethod(\"getDefaultDevice\"),\n setDefaultDevice: bindPublicMethod(\"setDefaultDevice\"),\n clearDefaultDevice: bindPublicMethod(\"clearDefaultDevice\"),\n startScan: bindPublicMethod(\"startScan\"),\n stopScan: bindPublicMethod(\"stopScan\"),\n scan: bindPublicMethod(\"scan\") as BluetoothSdkPublicModule[\"scan\"],\n connect: bindPublicMethod(\"connect\"),\n connectDefault: bindPublicMethod(\"connectDefault\"),\n cancelConnectionAttempt: bindPublicMethod(\"cancelConnectionAttempt\"),\n disconnect: bindPublicMethod(\"disconnect\"),\n forget: bindPublicMethod(\"forget\"),\n displayText: bindPublicMethod(\"displayText\"),\n clearDisplay: bindPublicMethod(\"clearDisplay\"),\n showDashboard: bindPublicMethod(\"showDashboard\"),\n showNativeNotificationPanel: bindPublicMethod(\"showNativeNotificationPanel\"),\n setDashboardPosition: bindPublicMethod(\"setDashboardPosition\"),\n setHeadUpAngle: bindPublicMethod(\"setHeadUpAngle\"),\n setImuEnabled: bindPublicMethod(\"setImuEnabled\"),\n setScreenDisabled: bindPublicMethod(\"setScreenDisabled\"),\n ping: bindPublicMethod(\"ping\"),\n requestWifiScan: bindPublicMethod(\"requestWifiScan\"),\n sendWifiCredentials: bindPublicMethod(\"sendWifiCredentials\"),\n forgetWifiNetwork: bindPublicMethod(\"forgetWifiNetwork\"),\n setHotspotState: bindPublicMethod(\"setHotspotState\"),\n setSystemTime: bindPublicMethod(\"setSystemTime\"),\n setWifiAdbState: bindPublicMethod(\"setWifiAdbState\"),\n setGalleryModeEnabled: bindPublicMethod(\"setGalleryModeEnabled\"),\n setVoiceActivityDetectionEnabled: bindPublicMethod(\"setVoiceActivityDetectionEnabled\"),\n setLoudnessGateEnabled: bindPublicMethod(\"setLoudnessGateEnabled\"),\n /**\n * @deprecated Sticky action-button photo presets are deprecated. Prefer per-request\n * `requestPhoto(...)` options (e.g. `mode: \"text\"` for text sensor size/crop, or explicit per-shot\n * fields). Still functional until removed in a future release.\n */\n setPhotoCaptureDefaults: bindPublicMethod(\"setPhotoCaptureDefaults\"),\n setVideoRecordingDefaults: ({width, height, fps}: VideoRecordingDefaults) => {\n const method = (PrivateBluetoothSdkModule as unknown as Record<string, unknown>).setVideoRecordingDefaults\n if (typeof method !== \"function\") {\n return Promise.reject(\n new Error(\"BluetoothSdk.setVideoRecordingDefaults is not available in this native build. Rebuild the app.\"),\n )\n }\n return PrivateBluetoothSdkModule.setVideoRecordingDefaults(width, height, fps)\n },\n setMaxVideoRecordingDuration: bindPublicMethod(\"setMaxVideoRecordingDuration\"),\n setCameraFov: bindPublicMethod(\"setCameraFov\"),\n setLegacyCameraFov: bindPublicMethod(\"setLegacyCameraFov\"),\n setCameraFovOverride: bindPublicMethod(\"setCameraFovOverride\"),\n releaseCameraFovOverride: bindPublicMethod(\"releaseCameraFovOverride\"),\n setCameraTuningConfig: bindPublicMethod(\"setCameraTuningConfig\"),\n queryGalleryStatus: bindPublicMethod(\"queryGalleryStatus\"),\n requestPhoto: bindPublicMethod(\"requestPhoto\"),\n warmUpCamera: bindPublicMethod(\"warmUpCamera\"),\n stopCameraWarmUp: bindPublicMethod(\"stopCameraWarmUp\"),\n startVideoRecording: bindPublicMethod(\"startVideoRecording\"),\n stopVideoRecording: bindPublicMethod(\"stopVideoRecording\"),\n queryVideoRecordingStatus: bindPublicMethod(\"queryVideoRecordingStatus\"),\n startStream: bindPublicMethod(\"startStream\"),\n stopStream: bindPublicMethod(\"stopStream\"),\n setMicState: bindPublicMethod(\"setMicState\"),\n setPreferredMic: bindPublicMethod(\"setPreferredMic\"),\n setOwnAppAudioPlaying: bindPublicMethod(\"setOwnAppAudioPlaying\"),\n getGlassesMediaVolume: bindPublicMethod(\"getGlassesMediaVolume\"),\n setGlassesMediaVolume: bindPublicMethod(\"setGlassesMediaVolume\"),\n rgbLedControl: bindPublicMethod(\"rgbLedControl\"),\n requestVersionInfo: bindPublicMethod(\"requestVersionInfo\"),\n availableG2FirmwareArtifacts: bindPublicMethod(\"availableG2FirmwareArtifacts\"),\n startG2FirmwareFlash: bindPublicMethod(\"startG2FirmwareFlash\"),\n setOtaVersionUrl: bindPublicMethod(\"setOtaVersionUrl\"),\n getOtaVersionUrl: bindPublicMethod(\"getOtaVersionUrl\"),\n checkForOtaUpdate: bindPublicMethod(\"checkForOtaUpdate\"),\n getReleaseChangelogs,\n startOtaUpdate,\n queryOtaStatus,\n startAr99OtaFromFile: bindPublicMethod(\"startAr99OtaFromFile\"),\n cancelAr99Ota: bindPublicMethod(\"cancelAr99Ota\"),\n sendAr99FactoryReset: bindPublicMethod(\"sendAr99FactoryReset\"),\n buildAr99OtaSignature: bindPublicMethod(\"buildAr99OtaSignature\"),\n setSttModelDetails: bindPublicMethod(\"setSttModelDetails\"),\n getSttModelPath: bindPublicMethod(\"getSttModelPath\"),\n checkSttModelAvailable: bindPublicMethod(\"checkSttModelAvailable\"),\n validateSttModel: bindPublicMethod(\"validateSttModel\"),\n extractTarBz2: bindPublicMethod(\"extractTarBz2\"),\n restartTranscriber: bindPublicMethod(\"restartTranscriber\"),\n setTtsModelDetails: bindPublicMethod(\"setTtsModelDetails\"),\n getTtsModelPath: bindPublicMethod(\"getTtsModelPath\"),\n getTtsModelLanguage: bindPublicMethod(\"getTtsModelLanguage\"),\n checkTtsModelAvailable: bindPublicMethod(\"checkTtsModelAvailable\"),\n validateTtsModel: bindPublicMethod(\"validateTtsModel\"),\n generateTtsAudio: bindPublicMethod(\"generateTtsAudio\"),\n})\n\nexport default BluetoothSdk\n\nexport {\n CAMERA_FOV_DEFAULT,\n CAMERA_FOV_MAX,\n CAMERA_FOV_MIN,\n DeviceModels,\n isBusyGlassesConnectionStatus,\n isConnectedGlassesConnectionStatus,\n isConnectedWifiStatus,\n isEnabledHotspotStatus,\n isReadyGlassesConnectionStatus,\n} from \"./BluetoothSdk.types\"\n\nexport type {\n AccelEvent,\n Ar99OtaStatusEvent,\n AudioConnectedEvent,\n AudioDisconnectedEvent,\n AudioPairingNeededEvent,\n BatteryStatusEvent,\n BluetoothSdkEvent,\n BluetoothSdkEventListener,\n BluetoothSdkEventMap,\n BluetoothSdkEventName,\n BluetoothSdkPublicModule as BluetoothSdkModule,\n BluetoothSdkSubscription,\n ButtonPhotoSize,\n PhotoCaptureDefaults,\n ButtonPressEvent,\n CameraFovPreset,\n CameraFovRequest,\n CameraFovResult,\n CameraRoiPosition,\n CompatibleGlassesSearchStopEvent,\n ConnectOptions,\n ConnectedGlassesConnectionStatus,\n ConnectedWifiStatus,\n Device,\n DeviceModel,\n EnabledHotspotStatus,\n GalleryStatusEvent,\n G2FirmwareArtifact,\n G2FirmwareFlashProgressEvent,\n G2FirmwareFlashResult,\n G2FirmwareTarget,\n GlassesConnectionStatus,\n GlassesMediaVolumeGetResult,\n GlassesMediaVolumeSetResult,\n GlassesNotReadyEvent,\n HeadUpEvent,\n HotspotErrorEvent,\n HotspotStatus,\n HotspotStatusChangeEvent,\n GlassesSessionChangedEvent,\n KeepAliveAckEvent,\n LocalTranscriptionEvent,\n LogEvent,\n MicLc3Event,\n MicHealthEvent,\n MicMode,\n MicPcmEvent,\n MicPreference,\n OtaStartAckEvent,\n OtaProgress,\n OtaProgressStatus,\n OtaStage,\n OtaStatus,\n OtaStatusEvent,\n OtaQueryResult,\n OtaUpdateInfo,\n ReleaseChangelog,\n SpeakerEnrollProgressEvent,\n SpeakerEnrollResultEvent,\n MtkUpdateCompleteEvent,\n PairFailureEvent,\n PairingInfoEvent,\n EnteringPairingModeEvent,\n OwnerReplacedEvent,\n PhotoCaptureMetadata,\n PhotoResolvedConfig,\n PhotoCompression,\n PhotoFpsRange,\n PhotoMeteredPreview,\n PhotoMode,\n PublicBluetoothStatus,\n PublicGlassesStatus,\n PhotoTransferMethod,\n PhotoResponseEvent,\n PhotoRequestedCaptureConfig,\n PhotoRequestParams,\n PhotoSize,\n PhotoStatusEvent,\n PhotoStatusState,\n PhotoSuccessResponseEvent,\n RgbLedAction,\n RgbLedColor,\n RgbLedControlResponseEvent,\n RgbLedControlSuccessResponseEvent,\n ScanModelOptions,\n ScanOptions,\n ScanResultsCallback,\n SpeakingStatusEvent,\n SettingsAckEvent,\n SettingsAckSetting,\n SettingsAckSuccessEvent,\n SettingsAckSuccessStatus,\n SettingsAckStatus,\n StreamAudioConfig,\n StreamResolvedConfig,\n StreamStartRequest,\n StreamStatusEvent,\n StreamStatusLifecycleState,\n StreamStatusReconnectState,\n StreamStatusState,\n StreamVideoConfig,\n SwipeVolumeStatusEvent,\n SwitchStatusEvent,\n TouchEvent,\n VideoRecordingDefaults,\n VideoRecordingStartedStatusEvent,\n VideoRecordingStatusEvent,\n VideoRecordingStatusState,\n VideoRecordingStoppedStatusEvent,\n VideoRecordingSuccessStatusEvent,\n VersionInfoEvent,\n VersionInfoResult,\n WifiScanResultEvent,\n VoiceActivityDetectionStatusEvent,\n WifiSearchResult,\n WifiStatus,\n WifiStatusChangeEvent,\n} from \"./BluetoothSdk.types\"\n"]}
@@ -273,12 +273,6 @@ public class BluetoothSdkModule: Module, BluetoothSDKDelegate {
273
273
  }
274
274
  }
275
275
 
276
- AsyncFunction("toggleHeadUp") {
277
- await MainActor.run {
278
- self.bluetoothSdk().toggleHeadUp()
279
- }
280
- }
281
-
282
276
  AsyncFunction("showNativeNotificationPanel") {
283
277
  await MainActor.run {
284
278
  self.bluetoothSdk().showNotificationsPanel()
@@ -498,10 +498,6 @@ public final class BluetoothSDK {
498
498
  DeviceManager.shared.showDashboard()
499
499
  }
500
500
 
501
- public func toggleHeadUp() {
502
- DeviceManager.shared.toggleHeadUp()
503
- }
504
-
505
501
  public func showNotificationsPanel() {
506
502
  DeviceManager.shared.showNotificationsPanel()
507
503
  }
@@ -11,7 +11,7 @@ enum BluetoothSdkDefaults {
11
11
  static let voiceActivityDetectionEnabled = false
12
12
  static let loudnessGateEnabled = true
13
13
  private static let infoSdkVersionKey = "BluetoothSdkVersion"
14
- private static let swiftPackageSdkVersion = "0.1.0-dev.61"
14
+ private static let swiftPackageSdkVersion = "0.1.0-dev.89"
15
15
  private static let swiftPackageSdkVersionPlaceholder = "__GLASSLY" + "_BLUETOOTH_SDK_VERSION__"
16
16
 
17
17
  private static func normalizedSdkVersion(_ value: String?) -> String? {
@@ -216,11 +216,6 @@ struct ViewState {
216
216
  set { DeviceStore.shared.apply("bluetooth", "should_send_transcript", newValue) }
217
217
  }
218
218
 
219
- private var contextualDashboard: Bool {
220
- get { DeviceStore.shared.get("bluetooth", "contextual_dashboard") as? Bool ?? true }
221
- set { DeviceStore.shared.apply("bluetooth", "contextual_dashboard", newValue) }
222
- }
223
-
224
219
  // state:
225
220
 
226
221
  private var searching: Bool {
@@ -259,10 +254,6 @@ struct ViewState {
259
254
  set { DeviceStore.shared.apply("bluetooth", "systemMicUnavailable", newValue) }
260
255
  }
261
256
 
262
- private var headUp: Bool {
263
- get { DeviceStore.shared.get("glasses", "headUp") as? Bool ?? false }
264
- set { DeviceStore.shared.apply("glasses", "headUp", newValue) }
265
- }
266
257
 
267
258
  private var micEnabled: Bool {
268
259
  get { DeviceStore.shared.get("bluetooth", "micEnabled") as? Bool ?? false }
@@ -318,30 +309,16 @@ struct ViewState {
318
309
  private var transcriber: SherpaOnnxTranscriber?
319
310
  #endif
320
311
 
321
- var viewStates: [ViewState] = [
322
- ViewState(
323
- topText: " ", bottomText: " ", title: " ", layoutType: "text_wall", text: ""
324
- ),
325
- ViewState(
326
- topText: " ", bottomText: " ", title: " ", layoutType: "text_wall",
327
- text: "$TIME12$ $DATE$ $GBATT$ $CONNECTION_STATUS$"
328
- ),
329
- ViewState(
330
- topText: " ", bottomText: " ", title: " ", layoutType: "text_wall", text: "",
331
- data: nil, animationData: nil
332
- ),
333
- ViewState(
334
- topText: " ", bottomText: " ", title: " ", layoutType: "text_wall",
335
- text: "$TIME12$ $DATE$ $GBATT$ $CONNECTION_STATUS$", data: nil,
336
- animationData: nil
337
- ),
338
- ]
339
-
340
- /// Scene slots - one whole SceneFrame per view (main/dashboard), parallel to
341
- /// viewStates. When a slot holds a scene, viewStates carries a "scene"
312
+ /// Single retained display state. The JS engine owns view switching
313
+ /// (dashboard vs main); native just paints and repaints the last frame.
314
+ var viewState = ViewState(
315
+ topText: " ", bottomText: " ", title: " ", layoutType: "text_wall", text: ""
316
+ )
317
+
318
+ /// Retained SceneFrame. When it holds a scene, viewState carries a "scene"
342
319
  /// sentinel so sendCurrentState routes here. Holding the WHOLE frame keeps
343
- /// native re-dispatch coherent (dashboard exit re-applies a complete scene).
344
- var sceneStates: [SceneFrame?] = [nil, nil]
320
+ /// native re-dispatch coherent (nav exit re-applies a complete scene).
321
+ var sceneState: SceneFrame?
345
322
 
346
323
  override init() {
347
324
  Bridge.log("MAN: init()")
@@ -764,15 +741,7 @@ struct ViewState {
764
741
  }
765
742
 
766
743
  Task {
767
- var currentViewState: ViewState!
768
- if headUp {
769
- currentViewState = self.viewStates[1]
770
- } else {
771
- currentViewState = self.viewStates[0]
772
- }
773
- if headUp && !self.contextualDashboard {
774
- currentViewState = self.viewStates[0]
775
- }
744
+ let currentViewState = self.viewState
776
745
 
777
746
  if sgc?.type.contains(DeviceTypes.SIMULATED) ?? true {
778
747
  // dont send the event to glasses that aren't there:
@@ -829,8 +798,7 @@ struct ViewState {
829
798
  borderRadius: currentViewState.borderRadius ?? 0
830
799
  )
831
800
  case "scene":
832
- let sceneIndex = (headUp && self.contextualDashboard) ? 1 : 0
833
- if let frame = self.sceneStates[sceneIndex] {
801
+ if let frame = self.sceneState {
834
802
  await sgc?.applySceneFrame(frame)
835
803
  }
836
804
  case "clear_view":
@@ -1141,6 +1109,12 @@ struct ViewState {
1141
1109
  Bridge.saveSetting("default_wearable", defaultWearable)
1142
1110
  Bridge.saveSetting("device_name", deviceName)
1143
1111
  Bridge.saveSetting("device_address", deviceAddress)
1112
+
1113
+ // Restore the ring: connecting glasses tears the controller down
1114
+ // (disconnect() nils it), so bring a paired default controller back.
1115
+ if DeviceStore.shared.get("glasses", "controllerConnected") as? Bool != true {
1116
+ connectDefaultController()
1117
+ }
1144
1118
  if defaultWearable.contains(DeviceTypes.AR99) {
1145
1119
  let projectName = (DeviceStore.shared.get("bluetooth", "project_name") as? String)?.trimmingCharacters(in: .whitespacesAndNewlines) ?? ""
1146
1120
  Bridge.saveSetting("project_name", projectName)
@@ -1246,25 +1220,12 @@ struct ViewState {
1246
1220
  }
1247
1221
 
1248
1222
  func displayEvent(_ event: [String: Any]) {
1249
- guard let view = event["view"] as? String else {
1250
- Bridge.log("MAN: invalid view")
1251
- return
1252
- }
1253
- let isDashboard = view == "dashboard"
1254
-
1255
- var stateIndex = 0
1256
- if isDashboard {
1257
- stateIndex = 1
1258
- } else {
1259
- stateIndex = 0
1260
- }
1261
-
1262
1223
  // Scene frames (display.render() pipeline) take their own path: the
1263
1224
  // whole frame is the unit, not a layout, and the host's per-element
1264
1225
  // annotations make redundant frames self-deduping (all-"unchanged"
1265
1226
  // frames no-op in the SGC base handler).
1266
1227
  if let sceneMap = event["scene"] as? [String: Any] {
1267
- handleSceneEvent(stateIndex, sceneMap)
1228
+ handleSceneEvent(sceneMap)
1268
1229
  return
1269
1230
  }
1270
1231
 
@@ -1279,8 +1240,8 @@ struct ViewState {
1279
1240
  // (e.g. a cloud app taking the view from a miniapp). Sweep the scene's
1280
1241
  // elements first so they don't linger under the new content; clear_view
1281
1242
  // wipes everything anyway.
1282
- if let prevFrame = sceneStates[stateIndex] {
1283
- sceneStates[stateIndex] = nil
1243
+ if let prevFrame = sceneState {
1244
+ sceneState = nil
1284
1245
  if layoutType != "clear_view" {
1285
1246
  let ids = prevFrame.elements.map(\.id)
1286
1247
  Task { [weak self] in
@@ -1338,7 +1299,7 @@ struct ViewState {
1338
1299
  // clobbers anything. Legacy positioned_text now flows through the slot
1339
1300
  // like every other layout (matching Android).
1340
1301
 
1341
- let cS = viewStates[stateIndex]
1302
+ let cS = viewState
1342
1303
  let nS = newViewState
1343
1304
  let currentState =
1344
1305
  cS.layoutType + cS.text + cS.topText + cS.bottomText + cS.title + (cS.data ?? "")
@@ -1350,30 +1311,21 @@ struct ViewState {
1350
1311
  return
1351
1312
  }
1352
1313
 
1353
- // Bridge.log("MAN: Updating view state \(stateIndex) with \(layoutType) \(text) \(topText) \(bottomText)")
1354
-
1355
- viewStates[stateIndex] = newViewState
1356
-
1357
- let hUp = headUp && contextualDashboard
1358
- // send the state we just received if the user is currently in that state:
1359
- if stateIndex == 0 && !hUp {
1360
- sendCurrentState()
1361
- } else if stateIndex == 1 && hUp {
1362
- sendCurrentState()
1363
- }
1314
+ viewState = newViewState
1315
+ sendCurrentState()
1364
1316
  }
1365
1317
 
1366
- /// Parse + store a scene frame, then dispatch it if its view is visible.
1367
- private func handleSceneEvent(_ stateIndex: Int, _ sceneMap: [String: Any]) {
1318
+ /// Parse + store a scene frame, then dispatch it.
1319
+ private func handleSceneEvent(_ sceneMap: [String: Any]) {
1368
1320
  guard var frame = parseSceneFrame(sceneMap) else { return }
1369
- let prevFrame = sceneStates[stateIndex]
1321
+ let prevFrame = sceneState
1370
1322
 
1371
1323
  if prevFrame == nil {
1372
1324
  // Legacy→scene handoff: stale legacy content (e.g. a cloud app's
1373
1325
  // text wall) must not linger under the scene's elements.
1374
1326
  // clearDisplay is the per-device "wipe what's there" (blank-in-place
1375
1327
  // on G2 - no page rebuild).
1376
- let prevLegacyType = viewStates[stateIndex].layoutType
1328
+ let prevLegacyType = viewState.layoutType
1377
1329
  if !prevLegacyType.isEmpty, prevLegacyType != "clear_view", prevLegacyType != "scene" {
1378
1330
  sgc?.clearDisplay()
1379
1331
  }
@@ -1390,19 +1342,16 @@ struct ViewState {
1390
1342
  frame = frame.asReplay()
1391
1343
  }
1392
1344
 
1393
- // Store the REDISPATCH form: any later sendCurrentState (dashboard
1394
- // exit, head-up return) must repaint the whole frame - the original
1345
+ // Store the REDISPATCH form: any later sendCurrentState (nav exit,
1346
+ // screen re-enable) must repaint the whole frame - the original
1395
1347
  // annotations are only valid for the first dispatch right now.
1396
- sceneStates[stateIndex] = frame.asReplay()
1397
- viewStates[stateIndex] = ViewState(
1348
+ sceneState = frame.asReplay()
1349
+ viewState = ViewState(
1398
1350
  topText: " ", bottomText: " ", title: " ", layoutType: "scene",
1399
1351
  text: " ", data: nil, animationData: nil
1400
1352
  )
1401
1353
 
1402
- let hUp = headUp && contextualDashboard
1403
- if (stateIndex == 0 && !hUp) || (stateIndex == 1 && hUp) {
1404
- dispatchSceneFrame(frame)
1405
- }
1354
+ dispatchSceneFrame(frame)
1406
1355
  }
1407
1356
 
1408
1357
  /// Guarded scene dispatch - mirrors sendCurrentState's send conditions.
@@ -1468,11 +1417,6 @@ struct ViewState {
1468
1417
  sgc?.showDashboard()
1469
1418
  }
1470
1419
 
1471
- /// Flip the head-up state (double-tap fallback policy, driven from the JS engine).
1472
- func toggleHeadUp() {
1473
- headUp = !headUp
1474
- }
1475
-
1476
1420
  func showNotificationsPanel() {
1477
1421
  Task { await sgc?.showNotificationsPanel() }
1478
1422
  }
@@ -1948,6 +1892,9 @@ struct ViewState {
1948
1892
  // if the pending wearable is a controller, don't disconnect, use the controller manager to connect
1949
1893
  if ControllerTypes.ALL.contains(pendingWearable) {
1950
1894
  controller?.disconnect()
1895
+ // connect() routes here after disconnectController() nils the
1896
+ // controller — recreate it or connectById is a silent no-op.
1897
+ initController(pendingWearable)
1951
1898
  controller?.connectById(name)
1952
1899
  return
1953
1900
  }
@@ -59,6 +59,9 @@ class DeviceStore {
59
59
  store.set("glasses", "signalStrength", -1)
60
60
  store.set("glasses", "signalStrengthUpdatedAt", 0)
61
61
  store.set("glasses", "ringSignalStrength", -1)
62
+ // iOS: whether a connected lens is authorized to read the phone's ANCS
63
+ // notification stream (G2 consumes notifications on-firmware).
64
+ store.set("glasses", "ancsAuthorized", false)
62
65
 
63
66
  // CORE STATE:
64
67
  store.set("bluetooth", "systemMicUnavailable", false)
@@ -90,7 +93,6 @@ class DeviceStore {
90
93
  store.set("bluetooth", "dashboard_depth", 2)
91
94
  store.set("bluetooth", "head_up_angle", 30)
92
95
  store.set("bluetooth", "imu_enabled", false)
93
- store.set("bluetooth", "contextual_dashboard", true)
94
96
  store.set("bluetooth", "gallery_mode", true)
95
97
  store.set("bluetooth", "voice_activity_detection_enabled", BluetoothSdkDefaults.voiceActivityDetectionEnabled)
96
98
  store.set("bluetooth", "loudness_gate_enabled", BluetoothSdkDefaults.loudnessGateEnabled)
@@ -113,6 +115,12 @@ class DeviceStore {
113
115
  store.set("bluetooth", "use_native_dashboard", false)
114
116
  // Debug escape hatch: G2 CFW direct-framebuffer rendering (off = stock containers).
115
117
  store.set("bluetooth", "cfw_scene_renderer", true)
118
+ // G2 on-glass ANCS notification behavior + app filter (iOS).
119
+ store.set(
120
+ "bluetooth", "notification_ctrl",
121
+ ["enabled": true, "auto_display": true, "disp_time": 5, "avoid_disturb": true]
122
+ )
123
+ store.set("bluetooth", "notification_filter", ["enabled": false, "apps": [[String: Any]]()])
116
124
  }
117
125
 
118
126
  func get(_ category: String, _ key: String) -> Any? {
@@ -185,9 +193,9 @@ class DeviceStore {
185
193
  }
186
194
  }
187
195
 
196
+ // Head position only reaches JS now; the engine owns dashboard switching.
188
197
  case ("glasses", "headUp"):
189
198
  if let headUp = value as? Bool {
190
- DeviceManager.shared.sendCurrentState()
191
199
  Bridge.sendHeadUp(headUp)
192
200
  }
193
201
 
@@ -249,6 +257,12 @@ class DeviceStore {
249
257
  DeviceManager.shared.sgc?.sendCalendarEvents(items)
250
258
  }
251
259
 
260
+ case ("bluetooth", "notification_ctrl"):
261
+ DeviceManager.shared.sgc?.sendNotificationCtrl()
262
+
263
+ case ("bluetooth", "notification_filter"):
264
+ DeviceManager.shared.sgc?.sendNotificationFilter()
265
+
252
266
  case ("bluetooth", "metric_system"), ("bluetooth", "twelve_hour_time"):
253
267
  DeviceManager.shared.sgc?.sendDashboardDisplaySettings()
254
268
 
@@ -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 = "0.1.0"
6
- static let releaseIdentity = "0.1.0-dev.61"
7
- static let releaseSetId = "glassly-0.1.0-dev.61"
8
- static let sourceCommit = "a95e4c9e0146e47ed4e553613584abd265913759"
6
+ static let releaseIdentity = "0.1.0-dev.89"
7
+ static let releaseSetId = "glassly-0.1.0-dev.89"
8
+ static let sourceCommit = "c66a621d66d70251e257f73c9a79ee1f8e079be9"
9
9
  static let otaManifestUrl = ""
10
10
  static let otaManifestSha256 = ""
11
11
  }
@@ -3,8 +3,8 @@
3
3
  The iOS target bundles the stock and Glassly CFW EVENOTA images stored in this
4
4
  directory. They were copied from the sibling `g2flash` checkout:
5
5
 
6
- - `g2_2.2.6.10.bin` -> `g2-stock-2.2.6.10.evenota.bin`
7
- - `g2_2.2.6.10_cfw.bin` -> `g2-glassly-cfw-2.2.6.10.evenota.bin`
6
+ - `g2_2.2.9.22.bin` -> `g2-stock-2.2.9.22.evenota.bin`
7
+ - `g2_2.2.9.22_cfw.bin` -> `g2-glassly-cfw-2.2.9.22.evenota.bin`
8
8
 
9
9
  Run `./build_cfw.sh` in `g2flash` before manually replacing the CFW image. The
10
- firmware binaries are intentionally ignored by Git.
10
+ firmware binaries are committed so CI builds bundle them.