Skip to content

Debug menu: read-only info in release, gate mutating actions (#30)#40

Merged
almothafar merged 2 commits into
masterfrom
feature/30-debug-release-tier
Jul 2, 2026
Merged

Debug menu: read-only info in release, gate mutating actions (#30)#40
almothafar merged 2 commits into
masterfrom
feature/30-debug-release-tier

Conversation

@almothafar

Copy link
Copy Markdown
Owner

Closes #30. Stacked on #29 (feature/29-debug-reset-scope) — retarget to master once #39 merges. Follow-up from the debug-menu review (#14 / #21).

Change

#21 gated the entire battery-health debug menu (long-press on the health %) behind debuggable builds. The read-only "Show Debug Info" dump is harmless and useful for diagnosing user reports, so split the menu into two tiers:

  • Always available (incl. release): long-press surfaces the read-only tracking dump.
  • Debug builds only: add test cycles, reset debug data, reset ALL.

The long-press entry point stays unobtrusive so normal users won't stumble into it, and no data-mutating action is reachable in release.

Acceptance criteria

  • In a release build, long-press surfaces only the read-only debug info; add/reset actions are not reachable.

Testing

./gradlew :app:assembleDebug passes. Release gating is a build-config branch (FLAG_DEBUGGABLE); not device-verified.

🤖 Generated with Claude Code

#21 hid the entire battery-health debug menu behind debuggable builds. The
read-only "Show Debug Info" dump is harmless and useful for diagnosing user
reports, so keep it available in release; only the data-mutating actions need
to stay debug-only.

- The long-press entry point is always registered.
- In release builds it surfaces only the read-only tracking dump.
- In debuggable builds it shows the full menu (add/reset cycles).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Base automatically changed from feature/29-debug-reset-scope to master July 2, 2026 21:31
@almothafar almothafar merged commit 5acdbe9 into master Jul 2, 2026
1 check passed
@almothafar almothafar deleted the feature/30-debug-release-tier branch July 2, 2026 21:32
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.

Debug menu: keep read-only debug info available in release, gate only mutating actions

1 participant