[build-tools] Enable Gradle cache via machine-level gradle.properties to avoid fingerprint mutation#3852
Merged
Merged
Conversation
… to avoid fingerprint mutation
|
Subscribed to pull request
Generated by CodeMention |
|
⏩ The changelog entry check has been skipped since the "no changelog" label is present. |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3852 +/- ##
==========================================
+ Coverage 58.36% 58.40% +0.04%
==========================================
Files 917 917
Lines 39931 39966 +35
Branches 8382 8388 +6
==========================================
+ Hits 23302 23338 +36
Misses 15195 15195
+ Partials 1434 1433 -1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
sjchmiela
approved these changes
Jun 11, 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 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.
Why
Writing
org.gradle.caching=truetoandroid/gradle.propertiesmutates a project file, which affects Expo fingerprinting. This can cause unnecessary cache invalidation and incorrect fingerprint changes. We explored enabling via environment variable #3849 which is still not supported gradle/gradle#18087How
Enable Gradle build cache by writing to
~/.gradle/gradle.properties(machine-level) instead ofandroid/gradle.properties(project-level). This is functionally equivalent but doesn't touch any project files.Test Plan
Validated locally and confirmed Gradle cache hits (
FROM-CACHE) in the build output, matching the behavior of the current approach.