mirror of
https://github.com/facebook/react-native.git
synced 2024-11-21 21:20:50 +00:00
a3d9892ed9
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/33396 This commit fully unplugs the `ReactAndroid` from using hermes from the NPM package and plugs the usage of Hermes via the `packages/hermes-engine` Gradle build. I've used prefab to share the .so between the two builds, so we don't need any extra machinery to make this possible. Moreover, I've added a `buildHermesFromSource` property, which defaults to false when RN is imported, but is set to true when RN is opened for local development. This should allow us to distribute the `react-native` NPM package and users could potentially toggle which source to use (but see below). Changelog: [Android] [Changed] - Build Hermes from Source Reviewed By: hramos Differential Revision: D34389875 fbshipit-source-id: 107cbe3686daf7607a1f0f75202f24cd80ce64bb
19 lines
848 B
Properties
19 lines
848 B
Properties
# This is causing issue with dependencies task: https://github.com/gradle/gradle/issues/9645#issuecomment-530746758
|
|
# org.gradle.configureondemand=true
|
|
org.gradle.daemon=true
|
|
org.gradle.jvmargs=-Xmx4g -XX:MaxMetaspaceSize=1g -Dfile.encoding=UTF-8
|
|
org.gradle.parallel=true
|
|
|
|
android.useAndroidX=true
|
|
kotlin_version=1.6.10
|
|
|
|
# Use this property to specify which architecture you want to build.
|
|
# You can also override it from the CLI using
|
|
# ./gradlew <task> -PreactNativeArchitectures=x86_64
|
|
reactNativeArchitectures=armeabi-v7a,arm64-v8a,x86,x86_64
|
|
|
|
# Use this property if hermes should be built from source or not.
|
|
# If set to true, ReactAndroid will depend on :packages:hermes-engine and will build it from source.
|
|
# If set to false, ReactAndroid will depend a hermes .aar which should be placed inside ./android folder.
|
|
buildHermesFromSource=true
|