feat: Gradle optimization for Android production builds#29836
Merged
Conversation
- Create gradle.properties.release with parallel builds, build caching, 8GB JVM heap, and all 4 architectures for Play Store - Copy release config over default gradle.properties before build - Cache Gradle dependencies via cirruslabs/cache with branch-scoped keys and read-only fallback from main - Set GRADLE_USER_HOME for Cirrus runner compatibility Ref: MCWP-574
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. |
Contributor
🔍 Smart E2E Test Selection⏭️ Smart E2E selection skipped - skip-smart-e2e-selection label found All E2E tests pre-selected. |
|
andrepimenta
approved these changes
May 8, 2026
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.



Description
The Android production build in
build.ymlruns Gradle without build caching, parallelism, or optimized JVM settings. The E2E builds already use an optimizedgradle.properties.githubwith all these features, plus they cache Gradle dependencies across runs viacirruslabs/cache@v4. None of these optimizations exist in the production build path.This PR brings parity by:
android/gradle.properties.releaseadapted from the E2E config (keeps all 4 architectures for Play Store, disables Gradle daemon for ephemeral CI)GRADLE_USER_HOMEandCACHE_GENERATIONenv vars to the build job (matching E2E pattern)cpstep to apply the release config before the buildcirruslabs/cache@v4steps for Gradle dependency caching with branch-scoped keys and main fallbackPart of MCWP-574 (PR 4 of 5).
Changelog
CHANGELOG entry: null
Related issues
Fixes: MCWP-574
Manual testing steps
Screenshots/Recordings
N/A - CI pipeline change, no UI impact.
Pre-merge author checklist
Pre-merge reviewer checklist