Skip to content

Commit 79d5b20

Browse files
Emily Janzerfacebook-github-bot
authored andcommitted
Move RuntimeExecutor to its own BUCK module (#28730)
Summary: Pull Request resolved: #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
1 parent a4b15a4 commit 79d5b20

File tree

12 files changed

+67
-9
lines changed

12 files changed

+67
-9
lines changed

React/Fabric/RCTSurfacePresenter.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
#import <React/RCTPrimitives.h>
1111
#import <React/RCTSurfacePresenterStub.h>
1212
#import <React/RCTSurfaceStage.h>
13+
#import <ReactCommon/RuntimeExecutor.h>
1314
#import <react/utils/ContextContainer.h>
14-
#import <react/utils/RuntimeExecutor.h>
1515

1616
NS_ASSUME_NONNULL_BEGIN
1717

React/Fabric/RCTSurfacePresenterBridgeAdapter.mm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
#import <React/RCTSurfacePresenter.h>
1818
#import <React/RCTSurfacePresenterStub.h>
1919

20+
#import <ReactCommon/RuntimeExecutor.h>
2021
#import <react/utils/ContextContainer.h>
2122
#import <react/utils/ManagedObjectWrapper.h>
22-
#import <react/utils/RuntimeExecutor.h>
2323

2424
using namespace facebook::react;
2525

React/Fabric/Utils/MainRunLoopEventBeat.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99

1010
#include <CoreFoundation/CFRunLoop.h>
1111
#include <CoreFoundation/CoreFoundation.h>
12+
#include <ReactCommon/RuntimeExecutor.h>
1213
#include <react/core/EventBeat.h>
13-
#include <react/utils/RuntimeExecutor.h>
1414

1515
namespace facebook {
1616
namespace react {

React/Fabric/Utils/RuntimeEventBeat.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77

88
#include <CoreFoundation/CFRunLoop.h>
99
#include <CoreFoundation/CoreFoundation.h>
10+
#include <ReactCommon/RuntimeExecutor.h>
1011
#include <react/core/EventBeat.h>
11-
#include <react/utils/RuntimeExecutor.h>
1212

1313
namespace facebook {
1414
namespace react {

ReactAndroid/src/main/java/com/facebook/react/fabric/jni/BUCK

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ rn_xplat_cxx_library(
3232
react_native_xplat_target("fabric/scheduler:scheduler"),
3333
react_native_xplat_target("fabric/componentregistry:componentregistry"),
3434
react_native_xplat_target("fabric/components/scrollview:scrollview"),
35-
react_native_xplat_target("utils:utils"),
35+
react_native_xplat_target("runtimeexecutor:runtimeexecutor"),
3636
react_native_target("jni/react/jni:jni"),
3737
"//xplat/fbsystrace:fbsystrace",
3838
"//xplat/folly:molly",

ReactAndroid/src/main/java/com/facebook/react/fabric/jni/EventBeatManager.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
#include <mutex>
1111
#include <unordered_set>
1212

13+
#include <ReactCommon/RuntimeExecutor.h>
1314
#include <fbjni/fbjni.h>
1415
#include <react/core/EventBeat.h>
15-
#include <react/utils/RuntimeExecutor.h>
1616

1717
namespace facebook {
1818
namespace react {

ReactCommon/fabric/scheduler/Scheduler.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
#include <memory>
1111
#include <mutex>
1212

13+
#include <ReactCommon/RuntimeExecutor.h>
1314
#include <react/componentregistry/ComponentDescriptorFactory.h>
1415
#include <react/componentregistry/ComponentDescriptorRegistry.h>
1516
#include <react/components/root/RootComponentDescriptor.h>
@@ -21,7 +22,6 @@
2122
#include <react/uimanager/UIManagerBinding.h>
2223
#include <react/uimanager/UIManagerDelegate.h>
2324
#include <react/utils/ContextContainer.h>
24-
#include <react/utils/RuntimeExecutor.h>
2525

2626
namespace facebook {
2727
namespace react {

ReactCommon/fabric/scheduler/SchedulerToolbox.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77

88
#pragma once
99

10+
#include <ReactCommon/RuntimeExecutor.h>
1011
#include <react/componentregistry/ComponentDescriptorFactory.h>
1112
#include <react/core/EventBeat.h>
1213
#include <react/utils/ContextContainer.h>
13-
#include <react/utils/RuntimeExecutor.h>
1414

1515
namespace facebook {
1616
namespace react {

ReactCommon/fabric/uimanager/BUCK

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ rn_xplat_cxx_library(
6363
react_native_xplat_target("fabric/core:core"),
6464
react_native_xplat_target("fabric/componentregistry:componentregistry"),
6565
react_native_xplat_target("fabric/debug:debug"),
66-
react_native_xplat_target("utils:utils"),
66+
react_native_xplat_target("runtimeexecutor:runtimeexecutor"),
6767
],
6868
)
6969

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
Checks: '>
3+
clang-diagnostic-*,
4+
'
5+
...

0 commit comments

Comments
 (0)