Repository navigation
ADFA-6574: Disable Quick Build for release variants and plugin projects - #2247
Merged
Merged
Conversation
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.
There was a problem hiding this comment.
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.
Contributor
itsaky-adfa
approved these changes
Nov 17, 2026
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
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.
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 isrelease/*Release, or the project is a plugin project. The long-press dropdown row follows the button.Tested:
QuickBuildActionPresentationTest(15 pass; the two rule tests fail with the rule stubbed out). On an arm64 emulator the button greys out after switching:apptorelease, 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.