Repository navigation
WearOSアプリのdebug署名を本体アプリと同じ鍵に統一 - #6610
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01KAt8T5JWWdhTKSeFyq715A
Contributor
📝 WalkthroughWalkthroughWear OS モジュールの ChangesWear OS 署名設定
Estimated code review effort: 2 (Simple) | ~5 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 16-20: buildTypes.release が signingConfigs.getByName("debug")
を参照しないよう、android ブロック内に本番用の専用 signingConfig を定義し、既存の release credentials を割り当てて
release に設定してください。signingConfigs.getByName("debug") は debug variants
のみに限定し、debug の既存設定は変更しないでください。
🪄 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: 92ca2746-6ac3-47b4-a8dc-f545e88cb359
📒 Files selected for processing (1)
android/wearable/build.gradle.kts
Member
Author
CodeRabbit Autofix Review CompleteCodeRabbit の指摘 1 件を検証しました。コード変更は行っていません。 検証した指摘
対応しない理由
将来 |
TinyKitten
enabled auto-merge (squash)
August 8, 2026 22:34
This was referenced Aug 8, 2026
Merged
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.
概要
Wear OS アプリの debug 署名を、本体アプリ(
:app)と同じ鍵に統一します。証明書の不一致により、ローカルの debug ビルドではスマートフォンとウォッチ間の Data Layer 通信が成立しない状態でした。変更の種類
変更内容
android/wearable/build.gradle.ktsにsigningConfigsを追加し、debugがandroid/app/debug.keystoreを参照するよう明示背景
:appはリポジトリ管理下のandroid/app/debug.keystoreで署名される一方、:wearableにはsigningConfigsの定義がなく AGP 既定の~/.android/debug.keystoreが使われていました。その結果、両モジュールの証明書が別物になっていました。Wear OS の Data Layer(
play-services-wearable)はパッケージ名と署名の両方が一致する場合のみ端末間通信を許可するため、この状態ではローカルの debug ビルドでコンパニオン連携を検証できません。実機向けの配布ビルドは Play App Signing により署名が揃うため、影響を受けるのはローカル開発時のみです。テスト
npm run lintが通ることnpm testが通ることnpm run typecheckが通ること追加で実施した確認:
./gradlew :wearable:assembleDevDebugが成功:appと一致することをapksigner verify --print-certsで確認(両者ともfac61745…)リグレッションリスク
getByName("debug")を上書きするため、同じ署名設定を参照しているbuildTypes.releaseにも適用されます。ただし変更前後どちらも debug 鍵であり、本番配布用の署名(Play App Signing / アップロード鍵)には影響しません。参照先の
android/app/debug.keystoreはリポジトリに含まれているため、従来の「各開発者ごとに異なるローカル鍵」よりもビルドの再現性はむしろ向上します。関連Issue
スクリーンショット(任意)
Summary by CodeRabbit