Conversation
Show the EAS build profile as a bottom banner on app icons outside production, and add the app-icon-badge dependency required for config plugin execution. Made-with: Cursor
Closed
Coverage Report for Monorepo
File CoverageNo changed files found. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概要
apps/mobileにapp-icon-badgeを導入し、EAS_BUILD_PROFILEがproduction以外のときにアプリアイコンへ環境名バッジを表示するようにしました。開発・検証ビルドの識別性を上げるための変更です。
変更内容
apps/mobile/package.jsonにapp-icon-badgeを追加apps/mobile/app.config.tsにappEnv(EAS_BUILD_PROFILE)を追加app.config.tsのpluginsにapp-icon-badgeを設定enabled: appEnv !== "production"badges:bannerタイプで環境名を表示(白文字・下部表示)pnpm-lock.yamlを依存追加に合わせて更新動作確認
pnpm -F mobile expo prebuild --clean後にpnpm -F mobile ios --deviceで非productionビルドのバッジ表示を確認productionプロファイルでバッジが非表示になることを確認