Skip to content

ADFA-6574: Disable Quick Build for release variants and plugin projects - #2247

Merged
Daniel-ADFA merged 3 commits into
stagefrom
feat/ADFA-6574-disable-quick-build-release
Nov 20, 2026
Merged

Daniel-ADFA merged 3 commits into
stagefrom
feat/ADFA-6574-disable-quick-build-release

Conversation

@Daniel-ADFA

@Daniel-ADFA Daniel-ADFA commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

ADFA-6574

Quick Build only works for debug variants of app projects. It used to refuse a release variant or a plugin project after the tap; the button is now disabled up front.

  • QuickBuildAction: disabled when the selected variant is release / *Release, or the project is a plugin project. The long-press dropdown row follows the button.
  • The disabled button's content description gives the reason, reusing the existing refusal strings.
  • A running Quick Build keeps its stop button tappable after a switch to release.
  • An unknown variant (mid-sync) and custom non-release build types stay enabled, as before.

Tested: QuickBuildActionPresentationTest (15 pass; the two rule tests fail with the rule stubbed out). On an arm64 emulator the button greys out after switching :app to release, a tap does nothing, and the toolbar is unchanged at font scale 1.0 and 2.0. A plugin project was not checked on a device.


Code Reviewer: Code Reviewer couldn't review this pull request
The pull request author does not have access to AI for the associated Atlassian organization.

Quick Build only builds debuggable variants of app projects. The button
refused the others after the tap; it is now greyed out before it, and its
content description gives the reason.

@claude claude 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.

Claude Code Review

This repository is configured for manual code reviews. Comment @claude review for a one-time review, or @claude review always to subscribe this PR to a review on every future push.

Tip: disable this comment in your organization's Code Review settings.

@coderabbitai

coderabbitai Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Summary

Release notes:

  • Quick Build is disabled before tap when:
    • The selected build variant is not debuggable, such as release or *Release.
    • The open project is a plugin project.
  • The disabled button gives the reason in its content description. The toolbar uses the same text.
  • Tapping the disabled Quick Build button shows the reason in a long flash.
  • A running Quick Build keeps its stop button enabled. The stop state takes precedence.
  • Unknown variants, such as during sync, stay enabled.
  • Custom non-release build types stay enabled.

Changed files (diff against merge base 2f72b7fe166d, 3 files, 110 lines added, 2 removed):

  • QuickBuildAction.kt (+53/-1): Adds unsupportedProjectReason and disabledReason. prepare disables the action for unsupported projects, in addition to standard-build blocking.
  • EditorHandlerActivity.kt (+11/-1): Shows the disabled reason on tap. Returns the unsupported-project reason as the toolbar content description when no standard build blocks the action.
  • QuickBuildActionPresentationTest.kt (+46): Tests unsupportedProjectMessage for release, plugin, debug, unknown, and BUILDING cases.

Risks and review notes:

  • The release check calls QuickBuildProjectSupport.nonDebuggableVariantMessage. That file is not in this diff. Its handling of release and *Release is unverified.
  • unsupportedProjectReason runs inside prepare and reads project and variant state. Confirm it is safe before project load.
  • variantName can be null for plugin projects. Confirm the plugin message does not need it.
  • getToolbarContentDescription calls isBlockedByStandardBuild() again. Confirm it matches the state used in prepare.
  • The reason text appears in three places: content description, toolbar, and flash. Keep them consistent.
  • Author-reported, not verified: 15 passing tests, two rule tests failing when the rule is stubbed, and arm64 emulator behavior at font scales 1.0 and 2.0. Plugin behavior was not checked on a device.
  • Test and device results for the current head are not available.

Quick Build disables itself for unsupported project types and selected non-debuggable variants. The toolbar displays an available disabled reason. The action remains tappable while Quick Build is running.

Changes: Quick Build support

Layer / File(s) Summary
Determine unsupported-project reasons
app/src/main/java/com/itsaky/androidide/actions/build/QuickBuildAction.kt, app/src/test/java/com/itsaky/androidide/actions/build/QuickBuildActionPresentationTest.kt
Quick Build checks project and variant support when preparing the action. Tests cover plugin projects, release variants, supported variants, unknown variants, and the building state.
Show disabled reasons in the toolbar
app/src/main/java/com/itsaky/androidide/activities/editor/EditorHandlerActivity.kt
When a disabled Quick Build action is tapped, the toolbar displays its reason if one is available. The content description uses the unsupported-project reason when a standard build is not blocking the action.

Estimated code review effort: 2 (Simple) | ~10 minutes

Suggested reviewers: dara-abijo-adfa, jatezzz, fryanpan

Merge Risk: Minimal · up to caf69

Quick Build is now disabled for release variants and plugin projects, and the toolbar shows the reason on tap. No concrete defect was found. A normal CI compile is enough to confirm the build.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the main change: Quick Build is disabled for release variants and plugin projects. It also cites the ticket ADFA-6574. The raw summary confirms the QuickBuildAction changes, the Editor…
Description check Passed The description states the purpose: Quick Build now disables the button up front for release variants and plugin projects, instead of refusing after a tap. It lists the QuickBuildAction behavior, the …
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the main change: Quick Build is disabled for release variants and plugin projects. It also cites the ticket ADFA-6574. The raw summary confirms the QuickBuildAction changes, the EditorHandlerActivity tooltip/description changes, and the new presentation tests that match this scope.

Full details: Description check

Explanation

The description states the purpose: Quick Build now disables the button up front for release variants and plugin projects, instead of refusing after a tap. It lists the QuickBuildAction behavior, the content description, the running-build stop behavior, and the unknown/custom build type exceptions. It also reports the tests and device checks. This matches the changeset described in the raw summary.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

A rabbit checks the build’s project and variant,
Then shares the reason when a tap comes by.
Release builds pause; plugins do too,
While running builds stay tappable through.
The toolbar speaks, the tests confirm,
And carrots wait beside the term.

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Essentials
  • Run ID: f38d23f1-f730-4cb2-83dd-d92dee6360ce
Commits

Reviewing files that changed from the base of the PR and between 6cef256 and caf69be.

Files selected for processing: 1

  • app/src/main/java/com/itsaky/androidide/activities/editor/EditorHandlerActivity.kt

Included review availability: This review used your included allowance. 4 included reviews remain after this review. Your included PR review attempts over the past 7 days set your current allowance at 5 reviews per hour.

@Daniel-ADFA
Daniel-ADFA requested a review from a team November 13, 2026 02:36
@Daniel-ADFA
Daniel-ADFA merged commit ea79020 into stage Nov 20, 2026
5 checks passed
@Daniel-ADFA
Daniel-ADFA deleted the feat/ADFA-6574-disable-quick-build-release branch November 20, 2026 16:53
davidschachterADFA added a commit that referenced this pull request Nov 20, 2026
Brings in ADFA-6574 (#2247). No conflicts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Vh2DAZWMkFWJh7CY7P4kCH
davidschachterADFA added a commit that referenced this pull request Nov 20, 2026
…a79020 (ADFA-7115 scoped project model, ADFA-7144, ADFA-7142, ADFA-6574 and five more)

Brings in from stage, since 5f3d76a: #2241 (ADFA-7083 sqlite-js docs),
#2245 (ADFA-7100), #2171 (ADFA-4605), #2284 (ADFA-7226), #2266-#2270
(ADFA-7115), #2274 (ADFA-7144), #2255 (ADFA-7142) and #2247 (ADFA-6574).

No conflicts: stage and this PR change no file in common.

Semantic checks: :subprojects:sqlite-debugger depends on no in-repo
module, and stage changed neither settings.gradle.kts,
gradle/libs.versions.toml, composite-builds/build-logic, CLAUDE.md,
ARCHITECTURE.md nor the SQLite debugger README. Stage's workflow edits
(the CI perf write removed from debug.yml and analyze.yml) and hook
shebang changes do not touch test-sqlite-debugger.yml.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Vh2DAYT7GPoC2cDzo8LErn
davidschachterADFA added a commit that referenced this pull request Nov 20, 2026
…137: stage at ea79020 via #2259

Brings in #2259's merge of stage (632bc27): #2241, #2245, #2171,
#2284, #2266-#2270 (ADFA-7115), #2274 (ADFA-7144), #2255 (ADFA-7142)
and #2247 (ADFA-6574). #2259's own code is unchanged.

No conflicts: stage and this PR change no file in common.

Semantic checks: stage adds no Room database, entity or migration, and
RecentProjectRoomDatabase is still at version 5 on stage, so this PR's
version 6 with debugger_endpoint_table and migration5To6 stays the next
step. Stage changes no Koin module (di/AppModule.kt untouched), no
AndroidManifest entry, and none of LaunchAppAction, ProjectHandlerActivity,
ApkInstaller, InstallationResultReceiver or the SQLite debugger README.
Stage drops assets/core.cgt from the index (#2274); .gitignore already
covers it and app/build.gradle.kts fetches it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Vh2DAYT7GPoC2cDzo8LErn
davidschachterADFA added a commit that referenced this pull request Nov 20, 2026
…139: stage at ea79020 via #2259 and #2260

Brings in #2260's merge of #2259 (54ce393), which carries stage at
ea79020: #2241, #2245, #2171, #2284, #2266-#2270 (ADFA-7115), #2274
(ADFA-7144), #2255 (ADFA-7142) and #2247 (ADFA-6574). The code of #2259
and #2260 is unchanged.

No conflicts: stage and this PR change no file in common.

Semantic checks: stage changes nothing in plugin-api (sources or
api/plugin-api.api), plugin-manager, di/AppModule.kt,
CredentialProtectedApplicationLoader, docs/plugin-api.md,
docs/PLUGIN_AUTHORING.md or the SQLite debugger README.
docs/PLUGIN_API_CHANGELOG.md is unchanged on stage since #2243, which the
old base already had; stage's newest heading is still 26.43, so this
PR's entry stays under 26.48.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Vh2DAYT7GPoC2cDzo8LErn
davidschachterADFA added a commit that referenced this pull request Nov 20, 2026
…138: stage at ea79020 via #2259

Brings in #2259's merge of stage (632bc27): #2241, #2245, #2171,
#2284, #2266-#2270 (ADFA-7115), #2274 (ADFA-7144), #2255 (ADFA-7142)
and #2247 (ADFA-6574). #2259's own code is unchanged.

No conflicts. Two files changed on both sides merged cleanly, in
separate hunks:
- .github/workflows/debug.yml: stage drops the CI perf write (#2284);
  this PR's sqliteReleaseApkTest step is untouched.
- EditorHandlerActivity.kt: stage's #2247 makes a tap on the greyed
  Quick Build button flash QuickBuildAction.disabledReason and gives
  its content description the reason; #2274 syncs the tab after a
  close. This PR's runQuickBuildAction (dropdown row and status-line
  tap) is a separate hunk.

Semantic checks: stage's QuickBuildAction calls
QuickBuildProjectSupport.unsupportedProjectTypeMessage,
nonDebuggableVariantMessage and
GradleQuickBuildProvisioner.selectedVariantName, which this PR leaves
as they are; it only adds isSqliteDebuggerEnabled and the Refused
result. The project-model calls this PR adds (getAndroidAppModules,
projectDirPath, workspace) are unchanged by ADFA-7115. Stage changes
nothing in gradle-plugin, gradle-plugin-config, common, quickbuild,
resources, app/build.gradle.kts, gradle/libs.versions.toml,
settings.gradle.kts or composite-builds.

Not resolved here, as it needs a decision: after #2247 a tap on the
greyed button flashes why, while runQuickBuildAction still does
nothing when the button is greyed. The dropdown row is disabled then,
but the "tap for details" status line is not (for example after a
switch to a release variant), so its KDoc's "as the button does" no
longer holds.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Vh2DAYT7GPoC2cDzo8LErn
davidschachterADFA added a commit that referenced this pull request Nov 21, 2026
… tapped

Since #2247 (ADFA-6574), tapping the greyed-out Quick Build button flashes
why it is greyed out, but runQuickBuildAction, which the "tap for
details" status line and the dropdown row call, still did nothing then.
The line stays tappable after, for example, a switch to a release
variant, so it promised details and gave none.

The button's tap moves into tapToolbarAction (run the action, or for a
greyed-out Quick Build button flash QuickBuildAction.disabledReason), and
runQuickBuildAction calls it, so the line, the row and the button share
one code path and one message source. The dropdown row is disabled while
the button is greyed out, so only the status line changes in practice.
The KDoc of runQuickBuildAction and of
ProjectHandlerActivity.onQuickBuildStatusLineTapped now say a tap shows
why instead of doing nothing, and gradle-plugin/docs/sqlite-rewrite.md
says the same of the line.

QuickBuildGreyedStatusLineTapTest taps the status line with Quick Build
greyed out for a release variant and expects the real disabledReason
text to flash, and with Quick Build enabled expects the action to run
and nothing to flash. With runQuickBuildAction reverted to its old guard,
the greyed-out case fails because flashInfoLong is never called.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Vh2DAYT7GPoC2cDzo8LErn
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.

3 participants