Skip to content

chore: reduce android debug builds time by 85%#25048

Merged
sethkfman merged 1 commit intoMetaMask:chore/improve-debug-builds-time-margelofrom
margelo:chore/improve-debug-builds-time
Jan 29, 2026
Merged

chore: reduce android debug builds time by 85%#25048
sethkfman merged 1 commit intoMetaMask:chore/improve-debug-builds-time-margelofrom
margelo:chore/improve-debug-builds-time

Conversation

@Nodonisko
Copy link
Copy Markdown
Contributor

@Nodonisko Nodonisko commented Jan 22, 2026

Description

Previously there was production grade JS bundled (which is very slow) during Android debug builds but it's useless because JS is loaded from Metro for debug builds. This affect only local debug builds.

Cold cache debug build: 6m 57s -> 1m 15s 🚀
Hot cache debug build: 4m 29s -> 12s 🚀

* Measured on my machine (with already included #25046 improvement)

Changelog

CHANGELOG entry:

Related issues

Fixes:

Manual testing steps

Feature: my feature name

  Scenario: user [verb for user action]
    Given [describe expected initial app state]

    When user [verb for user action]
    Then [describe expected outcome]

Screenshots/Recordings

Before

After

Pre-merge author checklist

Pre-merge reviewer checklist

  • I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed).
  • I confirm that this PR addresses all acceptance criteria described in the ticket it closes and includes the necessary testing evidence such as recordings and or screenshots.

Note

Optimizes Android debug build performance by avoiding JS/asset bundling for specific debug flavors.

  • Sets react.debuggableVariants = ["qaDebug", "prodDebug", "flaskDebug"] in android/app/build.gradle to skip bundle generation for these debuggable variants during builds

Written by Cursor Bugbot for commit 94ad613. This will update automatically on new commits. Configure here.

@github-actions
Copy link
Copy Markdown
Contributor

CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes.

Copy link
Copy Markdown

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

@Nodonisko Nodonisko force-pushed the chore/improve-debug-builds-time branch from a6a9a16 to 94ad613 Compare January 22, 2026 18:18
@Nodonisko Nodonisko changed the title chore: reduce android debug builds time chore: reduce android debug builds time by 85% Jan 22, 2026
@sethkfman sethkfman changed the base branch from main to chore/improve-debug-builds-time-margelo January 29, 2026 19:43
@sethkfman sethkfman merged commit 35d5ca6 into MetaMask:chore/improve-debug-builds-time-margelo Jan 29, 2026
93 of 102 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Jan 29, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants