Move RuntimeExecutor to its own BUCK module (#28730)

Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/28730

Moving RuntimeExecutor out of react/utils and into its own subdir of ReactCommon. I'm doing this because I'm going to be pulling this into CatalystInstance on Android, and I don't want to pull in all the files we don't need there; also, this should hopefully make the OSS NDK stuff easier (this uses the react/utils prefix to export, and I'm not sure if you can include a '/' in a gradle module name?)

Changelog: [Internal]

Reviewed By: shergin, mdvacca

Differential Revision: D21098528

fbshipit-source-id: 9fbd72901ece522b1caec3ec34fafb8f9b327275
This commit is contained in:
Emily Janzer
2020-04-27 11:33:01 -07:00
committed by Facebook GitHub Bot
parent a4b15a4a88
commit 79d5b20ced
12 changed files with 67 additions and 9 deletions
@@ -32,7 +32,7 @@ rn_xplat_cxx_library(
react_native_xplat_target("fabric/scheduler:scheduler"),
react_native_xplat_target("fabric/componentregistry:componentregistry"),
react_native_xplat_target("fabric/components/scrollview:scrollview"),
react_native_xplat_target("utils:utils"),
react_native_xplat_target("runtimeexecutor:runtimeexecutor"),
react_native_target("jni/react/jni:jni"),
"//xplat/fbsystrace:fbsystrace",
"//xplat/folly:molly",
@@ -10,9 +10,9 @@
#include <mutex>
#include <unordered_set>
#include <ReactCommon/RuntimeExecutor.h>
#include <fbjni/fbjni.h>
#include <react/core/EventBeat.h>
#include <react/utils/RuntimeExecutor.h>
namespace facebook {
namespace react {