Skip to content

build(android): sign debug builds with the release key when one is configured - #564

Merged
linroid merged 2 commits into
mainfrom
build/debug-release-key
Oct 16, 2026
Merged

linroid merged 2 commits into
mainfrom
build/debug-release-key

Conversation

@linroid

@linroid linroid commented Oct 16, 2026

Copy link
Copy Markdown
Owner
  • The release signing config now also reads ketch.signing.storeFile, storePassword, keyAlias and keyPassword from the untracked local.properties; the ANDROID_KEYSTORE_* variables CI passes still win.
  • Debug builds use that signing config when it exists, so a debug build installs over a release install (same application ID and key) and keeps its data. Without it they keep Android's debug key, so a fresh clone builds as before.
  • local.properties is read with providers.fileContents, so editing it invalidates the configuration cache.
  • docs/updates.md documents the properties.

Testing

  • No key configured: assembleDirectDebug is signed C=US, O=Android, CN=Android Debug.
  • A throwaway keystore in local.properties: assembleDirectDebug is signed with it (CN=Ketch signing test).

…nfigured

The key now also comes from ketch.signing.* in the untracked local.properties, beside the
ANDROID_KEYSTORE_* variables CI uses. Debug builds use it too, so they install over a release
build; without it they keep Android's debug key, so a fresh clone builds as before.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 16, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-16T13:04:23.897202Z 80b013f PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@claude

claude Bot commented Oct 16, 2026

Copy link
Copy Markdown

Code review

No issues found. Checked for bugs and CLAUDE.md compliance.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 80b013faba

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread app/android/build.gradle.kts Resolved
Releases take the workflow's run number as their version code, so a debug build at version
code 1 could not replace a release install even with the same key. Without -PversionCode,
debug builds now take 2,000,000,000.
@github-actions

Copy link
Copy Markdown
Contributor

Test Results

 1 944 files  + 15   1 972 suites  +15   21m 34s ⏱️ - 3m 20s
13 085 tests +105  12 838 ✅ +105  247 💤 ±0  0 ❌ ±0 
15 750 runs  +175  15 503 ✅ +175  247 💤 ±0  0 ❌ ±0 

Results for commit ff3f41c. ± Comparison against base commit 73afab9.

@linroid
linroid merged commit 1c36165 into main Oct 16, 2026
14 checks passed
@linroid
linroid deleted the build/debug-release-key branch October 16, 2026 13:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant