Skip to content

ADFA-4017: Default Android Studio to the v8Debug variant - #2305

Open
itsaky-adfa wants to merge 1 commit into
stagefrom
chore/ADFA-4017
Open

itsaky-adfa wants to merge 1 commit into
stagefrom
chore/ADFA-4017

Conversation

@itsaky-adfa

@itsaky-adfa itsaky-adfa commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

ADFA-4017

Android Studio now selects v8Debug instead of v7Debug on first sync.

  • Marks the v8 flavor isDefault in AndroidModuleConf.kt, so every flavored module gets it.
  • Build types are untouched; AGP already prefers debug.
  • Docs: ARCHITECTURE.md, ADR 0005.

Verified: all 66 flavored modules report v8 as default; Spotless passes.

Caveats

  • Existing checkouts keep their saved variant until .idea is removed.
  • A plain ./gradlew lint now lints v8Debug. CI names its variants explicitly and is unaffected.
  • Code On the Go's own sync ignores isDefault: with no saved selection it takes the first variant AGP lists (AndroidProjectModelBuilder.kt:65).

https://claude.ai/code/session_01JULeV6YKmm3Kzv7LDdzpQe

Mark the v8 ABI flavor isDefault in the shared build-logic, so a fresh
Android Studio sync selects v8Debug instead of v7Debug for every flavored
module. Build types are untouched: AGP already prefers debug.

CLI and CI builds name their variant explicitly and are unaffected. A
plain `./gradlew lint` now uses v8Debug, AGP's default variant. Existing
checkouts may keep their saved variant until .idea is reset.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JULeV6YKmm3Kzv7LDdzpQe
@itsaky-adfa itsaky-adfa self-assigned this Nov 24, 2026
@atlassian

atlassian Bot commented Nov 24, 2026

Copy link
Copy Markdown

To enable Code Reviewer, link your GitHub account to your Atlassian account.

This is a one-time task that takes less than a minute. Once your account is linked, resubmit the pull request to trigger a code review.

@itsaky-adfa
itsaky-adfa marked this pull request as ready for review November 25, 2026 04:09

@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 25, 2026

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Summary

  • Changed default flavor: The v8 ABI product flavor is now marked as the default in shared build logic (AndroidModuleConf.kt). Android Studio selects v8Debug on first sync instead of v7Debug.
  • Documentation: ARCHITECTURE.md and ADR 0005 now state that v8 is the default flavor.
  • Scope: Build types are unchanged.

Risks and best-practice notes:

  • Existing checkouts keep their saved variant. Developers must delete .idea to see the new default.
  • A plain ./gradlew lint now lints v8Debug. Scripts or local workflows that assumed v7 may change behavior. CI names variants explicitly and is reported unaffected.
  • Code On the Go's own sync ignores isDefault. It uses the first variant AGP lists, so this change does not alter that project's own default selection.
  • The author reports that all 66 flavored modules show v8 as default and that Spotless passes. These results were not verified in this review.

The v8 ABI flavor is now marked as the default. The architecture documentation and ADR state that Android Studio selects v8Debug on first sync, while existing checkouts retain their saved variant.

Changes: Default ABI flavor

Layer / File(s) Summary
Default flavor and documentation
composite-builds/build-logic/plugins/src/main/java/com/itsaky/androidide/plugins/conf/AndroidModuleConf.kt, ARCHITECTURE.md, docs/adr/0005-per-abi-product-flavors.md
The build configuration marks v8 as the default flavor. The documentation describes Android Studio’s first-sync selection of v8Debug and notes that existing checkouts retain their saved variant.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Suggested reviewers: davidschachteradfa, hal-eisen-adfa, daniel-adfa

Merge Risk: Minimal · up to 05dc2

This change makes Android Studio select the v8Debug variant on first sync and updates the documentation to say so. Existing checkouts keep their saved variant. No merge-blocking risk was identified.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the change: the default Android Studio variant becomes v8Debug. The changeset marks the v8 flavor isDefault in AndroidModuleConf.kt and updates ARCHITECTURE.md and ADR 0005 to match. T…
Description check Passed The description states that Android Studio now selects v8Debug on first sync and that the v8 flavor is marked isDefault in AndroidModuleConf.kt. It also lists the docs updates, verification results, a…
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 change: the default Android Studio variant becomes v8Debug. The changeset marks the v8 flavor isDefault in AndroidModuleConf.kt and updates ARCHITECTURE.md and ADR 0005 to match. The title also includes the ticket ID ADFA-4017, which is acceptable.

Full details: Description check

Explanation

The description states that Android Studio now selects v8Debug on first sync and that the v8 flavor is marked isDefault in AndroidModuleConf.kt. It also lists the docs updates, verification results, and caveats. These match the changeset and the summaries.

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 flavors with care,
v8 is the default declared there.
First sync picks v8Debug in view,
Saved variants stay as they were, too.
The bunny hops off, its notes all done.

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: da6af6c4-e371-46e9-8698-de42990fdcef
Commits

Reviewing files that changed from the base of the PR and between 041d0b2 and 05dc242.

Files selected for processing: 3

  • ARCHITECTURE.md
  • composite-builds/build-logic/plugins/src/main/java/com/itsaky/androidide/plugins/conf/AndroidModuleConf.kt
  • docs/adr/0005-per-abi-product-flavors.md

Included review availability: This review used your included allowance. 3 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.

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