zhangcong
25 天前

变更描述【必须】

本 PR 将插件的鸿蒙(ohos)适配依赖从开发分支切换为指定的稳定 TAG,并将依赖源从 openharmony-tpc/flutter_packages 统一迁移至 CPF-Flutter/flutter_packages,以提升依赖的稳定性与可追溯性,同时配套调整 example 工程配置。

具体改动:

  • 依赖锁定为指定 TAGpubspec.yamlexample/pubspec.yaml):
    • camera:由分支 br_camera-v0.12.0+1_ohos_dev 切换为 TAG camera-v0.11.1-ohos-1.0.1(dependencies 与 dev_dependencies 两处)
    • video_player:固定 TAG video_player-v2.10.0-ohos-1.0.1
    • 新增 dependency_overrides:pigeon,固定 TAG pigeon-v25.3.2-ohos-1.0.1
    • 依赖 git 源由 openharmony-tpc/flutter_packages 迁移为 CPF-Flutter/flutter_packages
  • example 应用版本对齐example/ohos/AppScope/app.json5):versionCode 1000000 → 44,versionName 1.0.0 → 4.4.0,与插件 4.4.0 版本保持一致
  • 资源位置调整framesconfig.jsonentry/src/main/resources/base/profile/ 移动至 entry/src/main/resources/rawfile/(内容不变,仅位置调整)
  • .gitignore 补充:忽略 .omc/example/ohos/har/ 及 rawfile 下构建产物(flutter_assets/buildinfo.json5
  • 格式化example/ohos/build-profile.json5 去除文件头部空行与行尾逗号(无逻辑变更)

变更类型【推荐】

破坏性变更【必须,如有】

(依赖 TAG 切换后 camera 适配版本由 0.12.0+1 开发分支变为 0.11.1 稳定 TAG,插件公开 API 无变化,不构成破坏性变更)

关联 Issue【推荐】

Closes #

测试情况【必须】

测试步骤【推荐】

  1. 在项目根目录执行 flutter pub get,确认 camera / video_player / pigeon 均按指定 TAG(camera-v0.11.1-ohos-1.0.1video_player-v2.10.0-ohos-1.0.1pigeon-v25.3.2-ohos-1.0.1)拉取成功
  2. 进入 example 目录执行 flutter pub get,确认依赖解析无冲突
  3. 使用 DevEco Studio 或 flutter build hap 构建 ohos example,确认编译通过
  4. 在鸿蒙设备/模拟器上运行 example,验证相机拍照、录制视频及视频播放功能正常
  5. (可选)在 Android / iOS 上运行 example,确认跨平台行为不受影响

Changelog 条目【推荐】

将 camera / video_player / pigeon 等鸿蒙适配依赖固定至指定 TAG(camera-v0.11.1-ohos-1.0.1、video_player-v2.10.0-ohos-1.0.1、pigeon-v25.3.2-ohos-1.0.1),依赖源迁移至 CPF-Flutter/flutter_packages;example 应用版本号对齐 4.4.0。

截图/录屏【推荐,仅 UI 变更需要】

无(非 UI 变更)

检查清单【推荐】

likedislike
Pull Request已成功合入, 合并人@openharmony_ci
(感谢 zhangcong 的贡献)
Zzhangcong
25 天前 关联了issue:依赖库没有指定TAG,当依赖库的git仓库代码更新时,可能造成当前仓库无法编译
cpf-managercpf-manager成员
25 天前 添加了label:AI检视中
openharmony_ci
openharmony_ci成员
25 天前 评论:

感谢提交 Pull Requests!
Thanks for submitting a pull request.

likedislike
openharmony_ciopenharmony_ci成员
25 天前 添加了label:dco检查成功
cpf-managercpf-manager成员
25 天前 删除了label:AI检视中
此处折叠了45条消息 查看更多
zhangcong
16 天前 评论:

check dco

likedislike
openharmony_ci
openharmony_ci成员
16 天前 评论:

感谢提交 Pull Requests!
Thanks for submitting a pull request.

likedislike
zhangcong
16 天前 评论:

submit

likedislike
openharmony_ciopenharmony_ci成员
16 天前 关闭了关联的issue
openharmony_ciopenharmony_ci成员
16 天前 合入了pull request,合并节点 SHA:98cdc39187540b7f6d0d8f286fafb4172b814b4a