- 添加统一的 IStorage 接口定义 - 实现 IndexedDBStorage (Web/Desktop) - 实现 NativeStorage (Android/TV) - 添加类型定义 (Subscription, Channel, SourceValidity等) - 更新 Android/TV AssetReader 支持 SharedPreferences - 安装 idb 库用于 IndexedDB 操作
297 B
297 B
Storage Adapters
存储适配器目录,按平台分离实现:
indexeddb.js- Web/Desktop 端(使用 IndexedDB)native.js- Android/TV 端(通过 JS Bridge 调用原生存储)
目前所有实现统一在 ../index.js 中,如需拆分可在此目录创建单独文件。