Background
Build times for standalone NewDot and HybridApp significantly impact developer productivity and CI efficiency. Faster builds enable quicker iterations and shorten the feedback loop when testing changes. Despite previous optimizations, build times remain high, affecting both local development and CI runs.
Problem
When engineers push new changes, long build times delay feedback, which slows down development and reduces overall efficiency.
Solution
We will introduce a system for storing and reusing build artifacts for our patched React Native versions instead of rebuilding React Native from source every time.
For Android, this approach is already in place and working.
For iOS, this capability is not yet implemented.
Artifacts will be regenerated only when patches on main or the React Native version change, which happens infrequently. The solution includes:
- Adding a mechanism to store and retrieve prebuilt artifacts, for example through a Maven repository (Meta also stores iOS artifacts on Maven)
- Automating version tracking to detect changes in patches and trigger artifact regeneration
Background
Build times for standalone NewDot and HybridApp significantly impact developer productivity and CI efficiency. Faster builds enable quicker iterations and shorten the feedback loop when testing changes. Despite previous optimizations, build times remain high, affecting both local development and CI runs.
Problem
When engineers push new changes, long build times delay feedback, which slows down development and reduces overall efficiency.
Solution
We will introduce a system for storing and reusing build artifacts for our patched React Native versions instead of rebuilding React Native from source every time.
For Android, this approach is already in place and working.
For iOS, this capability is not yet implemented.
Artifacts will be regenerated only when patches on main or the React Native version change, which happens infrequently. The solution includes: