status-mobile/android
Siddarth Kumar df76881c90
chore: disable hermes via gradle project env var (#18675)
fixes #18493

We enabled `hermes` for android in the `react-native` upgrade to `0.72.5`
Although things seemed fine but developers were seeing frequent crashes in their local environment.

After some investigation the crashes were traced to max native call stack depth in `hermes` engine.
Disabling `hermes` for local debug builds helps fix that issue.

This commit disables `hermes` by default with the help of a exporting an environment variable in the `make run-android` command.
It is annoying that this also modifies `android/gradle.properties` so we keep `hermesEnabled` as `false` there as well.
We also enable `hermes` when generating release builds so that we can take advantage of `hermes` engine in release builds.

We also add a log to print whether `hermes` is enabled or not. I think its helpful to have this so that we know whether `hermes` is enabled or not.
2024-02-01 20:56:18 +05:30
..
app Kotlinify `StatusOkHttpClientFactory.java` (#18318) 2023-12-29 16:57:27 +05:30
build.gradle chore: add Kotlin support (#18293) 2023-12-28 20:20:25 +05:30
gradle.properties chore: disable hermes via gradle project env var (#18675) 2024-02-01 20:56:18 +05:30
gradlew nix: add missing Gradle repo path in gradle shell 2020-05-20 13:59:49 +02:00
settings.gradle upgrade react-native to 0.72.5 (#17241) 2023-12-11 21:22:23 +05:30