Commit Graph
3 Commits
Author SHA1 Message Date
lanterngamescnandClaude Opus 4.8 f7f208e6c8 M0: common 公共设施(T-M0-05)
框架 §10 横切层:
- Logger:基于 HiLog 的分级日志(d/i/w/e/f),业务域 0x9527,tag 截断 31B
- BridgeTracer:桥消息 traceId 自增 + 阶段打点,可还原全链路
- EventBus:封装 @ohos.events.emitter(on/once/emit/off,string eventId)
- DIContainer:轻量 DI,支持单例/懒单例工厂注册与泛型解析
- ErrorCenter:异常收敛 + 处置策略(Notify/Silent/Report/Block),UI 处置经 sink 注入
- 经 entry 临时 smoke 验证编译通过(含 common→contracts 跨 HAR 引用)

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-25 07:12:44 +08:00
lanterngamescnandClaude Opus 4.8 424c5f4d94 M0: 忽略 hvigor 生成物 BuildProfile.ets(保持仓库干净)
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-25 06:59:12 +08:00
lanterngamescnandClaude Opus 4.8 6de9038a54 M0: 搭建多模块工程骨架(T-M0-01/T-M0-02)
- 在 entry 基础上新增 6 个 HAR:contracts/common/platform/domain_resource/feature_bridge/feature_capabilities(框架§4 工程结构)
- 依赖单向向下、无环、无传递依赖(T-M0-02):
  contracts←common←platform←domain_resource;feature_bridge←(contracts,common);
  feature_capabilities←(全部下层);entry←(全部下层)
- 各 HAR 含 build-profile/hvigorfile(harTasks)/module.json5(type:har)/Index.ets 导出入口
- devecocli build(debug) 全模块编译通过,entry 打包 HAP 成功

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-25 06:58:29 +08:00