Open roryabraham opened 2 hours ago
There are a few things I'd like to try:
In order to be methodic and quantitative with these changes, I'll be using ./gradlew build --scan
to generate detailed build scan reports.
@roryabraham I’m very interested in this task and confident in my ability to deliver high-quality results. I'd love to take on this project—are you ready to assign it to me?
@saifelance I appreciate your interest, but please only post proposals on issues labeled Help Wanted
. You can read more about contributing to our repo in https://github.com/Expensify/App/blob/main/contributingGuides/CONTRIBUTING.md. Thanks!
Build scan for a clean ./gradlew assembleDebug
(note: next time I should do active arch only, because that's what we do in dev)
Another clean build scan, this time only one arch: https://scans.gradle.com/s/4apezfw7xtotm
A build scan with only this diff:
diff --git a/android/gradle.properties b/android/gradle.properties
index 87333d20f74..1f60a7d335d 100644
--- a/android/gradle.properties
+++ b/android/gradle.properties
@@ -55,3 +55,6 @@ MYAPP_UPLOAD_KEY_ALIAS=ReactNativeChat-Key-Alias
disableFrameProcessors=true
android.nonTransitiveRClass=false
+
+org.gradle.parallel=true
Problem
Android builds typically take 10-30 minutes on my M2 Mac, which is a long time.
Solution
Research ways to speed them up