Give debug builds their own applicationId#4
Merged
Merged
Conversation
com.episode6.debug.headachetracker, via the variant API (build types can only append a suffix). A local installDebug now coexists with an installed CI-built snapshot APK instead of clobbering it or being blocked by its signature. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Veyj5jEsiHxeSQbGraGZaH
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Veyj5jEsiHxeSQbGraGZaH
Suffix-style like the new .debug suffix, so all identities share the com.episode6.headachetracker prefix. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Veyj5jEsiHxeSQbGraGZaH
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.
Debug builds now append a
.debugapplicationIdSuffix, so a local./gradlew installDebugcoexists with an installed CI-built snapshot APK instead of clobbering it — or, more commonly, being rejected withINSTALL_FAILED_UPDATE_INCOMPATIBLEbecause the debug and CI signatures differ (exactly what happened during emulator verification of an earlier PR). The snapshot applicationId is also renamed to suffix style for consistency, so all identities share thecom.episode6.headachetrackerprefix:com.episode6.headachetrackercom.episode6.headachetracker.snapshotcom.episode6.headachetracker.snapshot.debugImplementation
A plain
applicationIdSuffix = ".debug"on the debug build type, plus theselfAppIdsnapshot value in the rootbuild.gradle.ktschanged fromcom.episode6.snapshots.headachetrackertocom.episode6.headachetracker.snapshot. Thenamespacestays fixed, so R and manifest class references are unaffected. The launcher label is unchanged (debug builds still read "Headache Tracker (SNAPSHOT)" since they're snapshots).The placeholder instrumented test asserted
packageName.endsWith("headachetracker"), which the suffixes break — it now asserts the sharedcom.episode6.*headachetracker*shape. Docs and tooling that referenced the old packages were updated: theverifyagent skill, the cursorinstall-debugskill + launch script, README, AGENTS.md, RELEASE_CHECKLIST, and CHANGELOG.Note: anyone with an installed snapshot APK under the old
com.episode6.snapshots.headachetrackerid keeps that install orphaned — uninstall it manually; future snapshot installs land on the new id. (Nothing has shipped, so no release installs are affected.)Verified locally
assembleDebug→com.episode6.headachetracker.snapshot.debugassembleRelease(untagged) →com.episode6.headachetracker.snapshotassembleReleasewithGITHUB_REF=refs/tags/v1.0.0→com.episode6.headachetracker, versionCode 2560000./gradlew checkpasses; CI device tests install the suffixed debug build.🤖 Generated with Claude Code
https://claude.ai/code/session_01Veyj5jEsiHxeSQbGraGZaH