This adds yarn android:profile which produces a prod-like build that logs each React render phase. To read the log output, you'll need to connect with Android Studio and open logcat.
Example output:
Test Plan
Verify yarn android:prod does not produce these logs.
Verify yarn android:profile does.
Verify that these two modes are independent and nothing's cached between them. I'm actually having trouble with caching here, but assuming we always build real production builds from CI, this should be fine. I've asked Expo folks to look at this. It seems like editing the metro.config.js file is enough to bust the cache manually.
Does not affect iOS or web (on iOS, we don't set BSKY_PROFILE, and for web we don't use Metro).
This adds
yarn android:profile
which produces a prod-like build that logs each React render phase. To read the log output, you'll need to connect with Android Studio and open logcat.Example output:
Test Plan
Verify
yarn android:prod
does not produce these logs.Verify
yarn android:profile
does.Verify that these two modes are independent and nothing's cached between them.I'm actually having trouble with caching here, but assuming we always build real production builds from CI, this should be fine. I've asked Expo folks to look at this. It seems like editing themetro.config.js
file is enough to bust the cache manually.Does not affect iOS or web (on iOS, we don't set
BSKY_PROFILE
, and for web we don't use Metro).