Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(app): デバッグ機能へのアクセスをデバッグ実行時のみに制限 #278

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

tatsutakein
Copy link
Member

@tatsutakein tatsutakein commented Jul 10, 2024

概要

デバッグ機能へのアクセスをデバッグ実行時のみに制限します。

レビュー観点

  • コードに違和感がないこと

レビューレベル

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

レビュー優先度

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

画像 / 動画

リリースモードでの実行時に遷移しようとすると以下のようになります。

Before After

確認したこと

  • デバッグ実行時、ホーム画面にデバッグ機能へのアクセスアイコンが表示されていること
  • デバッグ実行時、デバッグ機能が利用できること
  • リリースモードでの実行時、ホーム画面にデバッグ機能へのアクセスアイコンが表示されていないこと
  • リリースモードでの実行時、デバッグ機能にアクセスできないこと

動作確認手順

デバッグ時とリリースモードでそれぞれ実行し、ホーム画面から確認できます。

備考

@github-actions github-actions bot added the @apps/app Application development label Jul 10, 2024
@tatsutakein tatsutakein marked this pull request as ready for review July 10, 2024 08:10
@yumemi-team-review-requester yumemi-team-review-requester bot requested review from a team, Aosanori and mqkotoo and removed request for a team July 10, 2024 08:11
Copy link

Ready for review 🚀

Comment on lines +37 to +44
...$appRoutes.where((route) {
if (route is GoRoute) {
return route.path != DebugPageRoute.path;
}

return true;
}),
if (kDebugMode) $debugPageRoute,
Copy link
Member Author

Choose a reason for hiding this comment

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

memo-badge

$appRoutes から一度デバッグ機能へのルートを外した状態で展開し、追加でデバッグ実行時にデバッグ機能へのルートを追加する形としています。

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]: デバッグ系画面を開発時のみ利用可能にする
1 participant