Skip to content

Improve: pubspec.yaml の dependencies の最適化#447

Merged
den0206 merged 8 commits into
mainfrom
feature/fix_dependency
May 15, 2025
Merged

Improve: pubspec.yaml の dependencies の最適化#447
den0206 merged 8 commits into
mainfrom
feature/fix_dependency

Conversation

@den0206

@den0206 den0206 commented May 15, 2025

Copy link
Copy Markdown
Contributor

概要


レビュー観点

  • apps/apppackages/*配下のpubspec.yaml記載されており、ルートのpubspec.yaml に記載されていないパッケージが存在しないか

レビューレベル

  • Lv1: ぱっとみて違和感がないかチェックして Approve する
  • Lv2: 仕様レベルまで理解して、仕様通りに動くかある程度検証して Approve する
  • Lv3: 実際に環境で動作確認したうえで Approve する

レビュー優先度

  • すぐに見てもらいたい ( hotfix など ) 🚀
  • 今日中に見てもらいたい 🚗
  • 今日〜明日中で見てもらいたい 🚶
  • 数日以内で見てもらいたい 🐢

画像 / 動画

Before After Design

確認したこと

  • apps/apppackages/*配下のpubspec.yamlの複数確認
  • melos bs の実行

動作確認手順

  • melos bs を実行する
  • テンプレートプロジェクトをビルドする

備考

@github-actions

github-actions Bot commented May 15, 2025

Copy link
Copy Markdown

Visit the preview URL for this PR (updated for commit 065e76d):

https://flutter-mobile-project-template-catalog--pr447-feature-hd5ytbgz.web.app

(expires Thu, 22 May 2025 07:02:50 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: 9ea56735a63d07a7cfe62eb204b0528284c37c23

@den0206 den0206 force-pushed the feature/fix_dependency branch from 5ba4761 to c57244b Compare May 15, 2025 01:33
@github-actions

Copy link
Copy Markdown

Compare pubspec.yaml and pubspec.lock. Packages with different version notations

package pubspec.yaml pubspec.lock
go_router_builder ^2.7.2 2.7.3
path ^1.9.0 1.9.1

@blendthink blendthink left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@den0206
1点だけコメントさせていただきましたのでご確認お願いします 🙏

Comment thread pubspec.yaml Outdated
visibility_detector: ^0.4.0+2
dev_dependencies:
build_runner: ^2.4.14
build_verify: ^3.1.0

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nits-badge
build_verify は使用されていないので apps/app からも削除お願いします 🙏

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@blendthink
指摘ありがとうございます!
以下コミットで修正しました

c4c8f47

@den0206 den0206 force-pushed the feature/fix_dependency branch from 0338dbe to d65cc6f Compare May 15, 2025 02:41
@github-actions

Copy link
Copy Markdown

pubspec.lock has been changed

Change Diff
packages.build_verify.dependency {previous: transitive, current: null}
packages.build_verify.description.name {previous: build_verify, current: null}
packages.build_verify.description.sha256 {previous: abbb9b9eda076854ac1678d284c053a5ec608e64da741d0801f56d4bbea27e23, current: null}
packages.build_verify.description.url {previous: https://pub.dev, current: null}
packages.build_verify.source {previous: hosted, current: null}
packages.build_verify.version {previous: 3.1.0, current: null}

Comment thread apps/app/ios/Podfile.lock
shared_preferences_foundation: fcdcbc04712aee1108ac7fda236f363274528f78
package_info_plus: af8e2ca6888548050f16fa2f1938db7b5a5df499
shared_preferences_foundation: 9e1978ff2562383bd5676f64ec4e9aa8fa06a6f7

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI

最新でapp/appsをiOSビルドを行うと更新される為、追加しました。
恐らく、私の下記PR時の漏れになります。
#402

Comment thread tools/diff_yaml.dart
if (pkgYaml[name] is! String) {
return false;
}

@den0206 den0206 May 15, 2025

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ask-badge
@r0227n
恐らくtools/diff_yaml.dartを実装されたと考えるためメンションします。
今回の対応で,dev_dependenciesにflutter_testが追加されCIでエラーが出るようになった為例外処理を修正しました。
https://github.com/yumemi-inc/flutter-mobile-project-template/actions/runs/15034628768/job/42254019777

もしより良い改善案がありましたらご教授ください。

上記のままで良い場合は,無視で大丈夫です!

@den0206 den0206 force-pushed the feature/fix_dependency branch from d65cc6f to a51f64e Compare May 15, 2025 05:03
@den0206 den0206 marked this pull request as ready for review May 15, 2025 05:04
@yumemi-team-review-requester yumemi-team-review-requester Bot requested review from a team, fa0311 and masa-futa and removed request for a team May 15, 2025 05:04
@github-actions

Copy link
Copy Markdown

Ready for review 🚀

@github-actions

Copy link
Copy Markdown

pubspec.lock has been changed

Change Diff
packages.build_verify.dependency {previous: transitive, current: null}
packages.build_verify.description.name {previous: build_verify, current: null}
packages.build_verify.description.sha256 {previous: abbb9b9eda076854ac1678d284c053a5ec608e64da741d0801f56d4bbea27e23, current: null}
packages.build_verify.description.url {previous: https://pub.dev, current: null}
packages.build_verify.source {previous: hosted, current: null}
packages.build_verify.version {previous: 3.1.0, current: null}

@github-actions

Copy link
Copy Markdown

pubspec.lock has been changed

Change Diff
packages.build_verify.dependency {previous: transitive, current: null}
packages.build_verify.description.name {previous: build_verify, current: null}
packages.build_verify.description.sha256 {previous: abbb9b9eda076854ac1678d284c053a5ec608e64da741d0801f56d4bbea27e23, current: null}
packages.build_verify.description.url {previous: https://pub.dev, current: null}
packages.build_verify.source {previous: hosted, current: null}
packages.build_verify.version {previous: 3.1.0, current: null}

@blendthink blendthink left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!
ご対応ありがとうございます!

@den0206 den0206 merged commit 9f82394 into main May 15, 2025
@den0206 den0206 deleted the feature/fix_dependency branch May 15, 2025 23:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

@apps/app Application development

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Improve]: pubspec.yaml の dependencies の最適化

2 participants