Files

36 lines
1.5 KiB
YAML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
name: core_storage
description: 本地持久化。当前只封装 SharedPreferences(KV),数据库层暂缓。
publish_to: none
version: 0.1.0
resolution: workspace
# 偏离 06 的说明:Drift 单库暂不落地。
# 骨架阶段还没有任何需要本地缓存的业务表,先建库只会留下一个没人用、
# 却要一直维护 schema 快照和迁移测试的空壳。06 §「所有业务缓存表必须带
# storeId」「登出/切店清理策略」「migration 必须被验证」这三条规则在真的
# 加第一张表时再一次性落地——那时才有东西可验证。
# 连带收益:去掉 drift_dev 后 melos 可以留在 8.x(drift_dev 2.34.0 依赖
# cli_util ^0.4.0,与 melos 8 的 ^0.5.0 互斥)。详见 SCAFFOLD-NOTES.md §A。
environment:
sdk: ^3.11.0
dependencies:
core_foundation: ^0.1.0
flutter:
sdk: flutter
flutter_riverpod: 3.2.1
# Pub.dev 的 shared_preferences 不声明 OHOS 实现,Flutter 因而不会把它
# 注册进 GeneratedPluginRegistrant.ets。固定到 CPF-Flutter 的 OHOS 适配
# 分支;该主包会解析 shared_preferences_ohos。
shared_preferences:
git:
url: https://gitcode.com/CPF-Flutter/flutter_packages.git
# 固定 commit,避免 Pub 在 Windows Git cache 中错误复用 master 工作树。
ref: 19bd50ff6d5eaa96f18c63796c51e1b4e78a7480
path: packages/shared_preferences/shared_preferences
dev_dependencies:
flutter_lints: ^6.0.0
flutter_test:
sdk: flutter