feat(ios): 添加用药计划Widget小组件支持
- 创建medicineExtension小组件,支持iOS桌面显示用药计划 - 实现App Group数据共享机制,支持主应用与小组件数据同步 - 添加AppGroupUserDefaultsManager原生模块,提供跨应用数据访问能力 - 添加WidgetManager和WidgetCenterHelper,实现小组件刷新控制 - 在medications页面和Redux store中集成小组件数据同步逻辑 - 支持实时同步今日用药状态(待服用/已服用/已错过)到小组件 - 配置App Group entitlements (group.com.anonymous.digitalpilates) - 更新Xcode项目配置,添加WidgetKit和SwiftUI框架支持
This commit is contained in:
12
ios/WidgetManager.h
Normal file
12
ios/WidgetManager.h
Normal file
@@ -0,0 +1,12 @@
|
||||
//
|
||||
// WidgetManager.h
|
||||
// OutLive
|
||||
//
|
||||
// Created by AI Assistant on 2025/11/13.
|
||||
//
|
||||
|
||||
#import <React/RCTBridgeModule.h>
|
||||
|
||||
@interface WidgetManager : NSObject <RCTBridgeModule>
|
||||
|
||||
@end
|
||||
Reference in New Issue
Block a user