Skip to content

拆分提醒功能 3/4:设备适配器 + SQLite 数据层 #256

Description

@LUPENGHAN

拆分 #245 的第 3 层,依赖 #255(提醒引擎核心)先合入。

范围

  • 设备侧适配器:ExpoAudioPlaybackExpoSystemNotificationNativeAlarmScheduler(+ TimeflowAlarmBridge)、NativeDeviceCapabilityReactNativeAlertDialogReactNativeVibration
  • 定位:ExpoLocationMonitor(系统原生地理围栏,当前实际接入的实现)+ NativeLocationMonitor(百度 SDK 连续定位,仓库里有但暂未接线)+ geofenceTask
  • IntervalTimeListenerfrontend/index.ts 注册 geofence headless task
  • 数据层:SqliteLocalScheduleReaderSqliteReminderStateStoreLocalReminderAdaptersInMemoryLocalScheduleReader
  • 删除对应 Mock 适配器

包含两个 headless/原生相关的 bugfix:进程被杀时地理围栏事件不再丢失(批量 rebuild),以及重启/更新后重新排闹钟。

⚠️ 已知缺口:合并时 nativeAlarmScheduler.test.ts/nativeDeviceCapability.test.ts 两个旧 mock 版测试被删掉、没有补新的,这个 PR 不打算顺手补(工作量+范围原因),先如实记录,后续另开 issue 跟进。

前置/后续

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions