mirror of
https://github.com/status-im/status-react.git
synced 2025-01-09 18:46:19 +00:00
df76881c90
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.
63 lines
2.3 KiB
Properties
63 lines
2.3 KiB
Properties
# Project-wide Gradle settings.
|
|
|
|
# IDE (e.g. Android Studio) users:
|
|
# Gradle settings configured through the IDE *will override*
|
|
# any settings specified in this file.
|
|
|
|
# For more details on how to configure your build environment visit
|
|
# http://www.gradle.org/docs/current/userguide/build_environment.html
|
|
|
|
# Specifies the JVM arguments used for the daemon process.
|
|
# The setting is particularly useful for tweaking memory settings.
|
|
# Default value: -Xmx10248m -XX:MaxPermSize=256m
|
|
# org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
|
|
|
|
# When configured, Gradle will run in incubating parallel mode.
|
|
# This option should only be used with decoupled projects. More details, visit
|
|
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
|
|
# org.gradle.parallel=true
|
|
|
|
# To create a new keystore for development purposes (https://developer.android.com/studio/publish/app-signing.html)
|
|
# $keytool -genkey -v -keystore ./status-keystore.jks -keyalg RSA -keysize 2048 -validity 10000 -alias status
|
|
|
|
# Version requirements used throughout the Gradle scripts
|
|
minSdkVersion=24
|
|
compileSdkVersion=33
|
|
targetSdkVersion=33
|
|
buildToolsVersion=33.0.0
|
|
supportLibVersion=28.0.0
|
|
# This should match version from nix/pkgs/aapt2/default.nix
|
|
gradlePluginVersion=7.4.2
|
|
kotlinPluginVersion=1.9.0
|
|
|
|
android.useAndroidX=true
|
|
android.enableJetifier=true
|
|
|
|
KEYSTORE_PATH=~/.gradle/status-im.keystore
|
|
KEYSTORE_PASSWORD=password
|
|
KEYSTORE_ALIAS=status
|
|
KEYSTORE_KEY_PASSWORD=password
|
|
|
|
# By default we build a mostly universal APK
|
|
ANDROID_ABI_SPLIT=false
|
|
# Some platforms are excluded though
|
|
ANDROID_ABI_INCLUDE=armeabi-v7a;arm64-v8a;x86;x86_64
|
|
|
|
org.gradle.jvmargs=-Xmx8704M
|
|
|
|
versionCode=9999
|
|
commitHash=unknown
|
|
|
|
# Use this property to enable support to the new architecture.
|
|
# This will allow you to use TurboModules and the Fabric render in
|
|
# your application. You should enable this flag either if you want
|
|
# to write custom TurboModules/Fabric components OR use libraries that
|
|
# are providing them.
|
|
newArchEnabled=false
|
|
|
|
# Use this property to enable or disable the Hermes JS engine.
|
|
# If set to false, you will be using JSC instead.
|
|
# Disabled for debug builds to avoid 'maximum call stack exceeded' errors.
|
|
# https://github.com/status-im/status-mobile/issues/18493
|
|
hermesEnabled=false
|