Repository navigation
WearOSアプリのversionCodeが本体アプリを下回る逆転を解消しrelease署名を本体アプリのアップロード鍵に統一 - #6613
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01X5Yefa4SRgtPn1EnffuJTY
Contributor
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughWearableのreleaseビルドに条件付きの署名設定を追加しました。キーストアは絶対パスまたは ChangesWearableリリース構成
Estimated code review effort: 3 (Moderate) | ~20 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
Contributor
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@android/wearable/build.gradle.kts`:
- Around line 33-40: Update the release signing configuration around
create("release") so it is created only when all four TRAINLCD_UPLOAD_*
properties—store file, store password, key alias, and key password—are
non-empty; otherwise skip creating the release SigningConfig.
🪄 Autofix
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: c06aa98f-bcb8-45cc-83f5-f27faae4eead
📒 Files selected for processing (1)
android/wearable/build.gradle.kts
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01X5Yefa4SRgtPn1EnffuJTY
This was referenced Aug 9, 2026
Merged
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.
概要
Google Play で Wear OS バンドルを含むリリースが「このリリースは公開できません。既存のユーザーに対し、新たに追加された App Bundle へのアップグレードを許可していないためです。」と拒否される問題を修正します。
あわせて、
:wearableの release ビルドが debug 鍵で署名されていて Play にアップロードできない状態だったため、:appと同じアップロード鍵に統一します。変更の種類
変更内容
:wearableのversionCodeを100000000→100000580(:appの100000579+ 1)に修正し、wearable = app + 1の採番規約を復元:wearableのversionNameを10.0.0→10.12.0に更新し:appと揃える:wearableの release 署名をsigningConfigs.debugから、:appと同じTRAINLCD_UPLOAD_*プロパティを参照するreleaseconfig に変更公開が拒否された原因
:appと:wearableは applicationId が同一(me.tinykitten.trainlcd)のマルチバンドル配信です。この構成では Play は minSdk が高い側(:wearable= 34 >:app= 24)の versionCode が高いことを要求します。この大小関係が逆転していたため、新規追加した Wear バンドルが常に:appに順位負けしてどの端末にも配信されず、公開がブロックされていました。:app:wearable#4539で:appだけが 100000079 に進み、:wearableは 100000000 に固定されたまま:appのみインクリメントされ続けたことが原因です。release 署名について
:wearableの release ビルドタイプがsigningConfigs.getByName("debug")を参照していたため、生成される AAB が debug 鍵(CN=Android Debug)で署名され、Play のアップロード鍵と一致しない状態でした。:appと同じTRAINLCD_UPLOAD_*プロパティ方式に統一しています。TRAINLCD_UPLOAD_STORE_FILEは:appモジュール起点の相対パス(release.jks)として運用されているため、:wearableからはapp/を基準に解決しています。またstoreFileが空の signingConfig を割り当てるとsignProdReleaseBundleが NPE で落ちるため、プロパティが揃っている場合のみ signingConfig を生成し、未設定時は:appと同様に未署名となるようにしています。回帰リスクと対策
signingReportでprodDebugが引き続きandroid/app/debug.keystoreを参照することを確認済み(WearOSアプリのdebug署名を本体アプリと同じ鍵に統一 #6610 の Data Layer 疎通設定は不変)。wearable = app + 1は手動での lockstep bump が前提のため、:appを bump する際は本ファイルも必ず同時に bump する必要があります。この制約はコード内コメントに明記しました。versionCode の一元管理と CI への Wear ビルド追加は本 PR のスコープ外です。signingReportによる解決先の一致確認までにとどまります。下記コマンドで実鍵での確認が可能です。テスト
npm run lint/npm test/npm run typecheckに加え、Gradle 側で以下を確認しました。./gradlew :wearable:bundleProdReleaseversionCode=100000580/versionName=10.12.0/minSdk=34/targetSdk=35:wearable:signingReportprodReleaseandroid/app/release.jks:app:signingReportprodReleaseandroid/app/release.jks(一致):wearable:signingReportprodDebugandroid/app/debug.keystore(変更なし)npm run lintが通ることnpm testが通ることnpm run typecheckが通ること関連Issue
スクリーンショット(任意)
Summary by CodeRabbit