Skip to content

Conversation

@0Chencc
Copy link
Owner

@0Chencc 0Chencc commented Jan 31, 2026

Summary

  • 移除未使用的 hive_generator 依赖(项目中无 @HiveType/@HiveField 使用),该包锁死了整条构建工具链无法升级
  • 升级 json_annotation 约束 ^4.9.0^4.10.0

解锁的传递依赖升级

旧版本 新版本
analyzer 6.4.1 10.0.1
build_runner 2.4.13 2.10.5
json_serializable 6.8.0 6.12.0
build 2.4.1 4.0.4
source_gen 1.5.0 4.2.0
dart_style 2.3.6 3.1.5

消除了 CI code-quality 阶段的 analyzer 版本不匹配 warning。

Test Plan

  • dart run build_runner build --delete-conflicting-outputs 代码生成正常,无 warning
  • flutter pub get 依赖解析无冲突

- Remove unused hive_generator (no @HiveType/@HiveField usage in project),
  which was blocking the entire build toolchain from upgrading
- Upgrade json_annotation constraint ^4.9.0 → ^4.10.0
- Upgraded transitive deps: analyzer 6.4.1 → 10.0.1,
  build_runner 2.4.13 → 2.10.5, json_serializable 6.8.0 → 6.12.0,
  build 2.4.1 → 4.0.4, source_gen 1.5.0 → 4.2.0
@codecov
Copy link

codecov bot commented Jan 31, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 71.42%. Comparing base (135fba7) to head (dd826fb).
⚠️ Report is 4 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main       #6   +/-   ##
=======================================
  Coverage   71.42%   71.42%           
=======================================
  Files           1        1           
  Lines           7        7           
=======================================
  Hits            5        5           
  Misses          2        2           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@0Chencc 0Chencc merged commit c9d5a0b into main Jan 31, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants