Cover react/renderer/runtimescheduler with Stable API guards (#58150)

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

Classifies `react/renderer/runtimescheduler:runtimescheduler` as a "for frameworks" target under the three-tier C++ stable API visibility model. Consumers that opt into `RN_STRICT_API` now get a warning if they include its headers directly, which they can acknowledge with `RN_ALLOW_FRAMEWORKS`; without that flag the guards are inert, so no existing build changes behaviour.

`RuntimeScheduler_Legacy.h` gets its guard above the `RCT_REMOVE_LEGACY_ARCH` block so it is still evaluated when the legacy architecture is compiled out.

Changelog: [Internal]

Reviewed By: cipolleschi

Differential Revision: D117508561

fbshipit-source-id: 0be49676974d950e3c9a2e1d9053ab0262555098
This commit is contained in:
Jakub Piasecki authored and meta-codesync[bot] committed 2026-08-28 04:39:36 -07:00
1 parent 20d0605c9a
commit 183969b7dd
13 files changed
+24

No files matched your search

@@ -17,6 +17,7 @@ target_link_libraries(react_renderer_runtimescheduler
callinvoker
jserrorhandler
jsi
react_cxxstableapi
react_debug
react_performance_timeline
react_renderer_consistency
@@ -43,6 +43,7 @@ Pod::Spec.new do |s|
add_dependency(s, "React-runtimeexecutor", :additional_framework_paths => ["platform/ios"])
s.dependency "React-callinvoker"
s.dependency "React-cxxreact"
s.dependency "React-cxxstableapi"
s.dependency "React-rendererdebug"
s.dependency "React-utils"
s.dependency "React-featureflags"
@@ -7,6 +7,8 @@
#pragma once
#include <react/cxxstableapi/FrameworksGuard.h>
#include <ReactCommon/RuntimeExecutor.h>
#include <jsi/hermes-interfaces.h>
#include <react/performance/timeline/PerformanceEntryReporter.h>
@@ -7,6 +7,8 @@
#pragma once
#include <react/cxxstableapi/FrameworksGuard.h>
#include <jsi/jsi.h>
namespace facebook::react {
@@ -7,6 +7,8 @@
#pragma once
#include <react/cxxstableapi/FrameworksGuard.h>
#include <ReactCommon/CallInvoker.h>
#include <memory>
@@ -7,6 +7,8 @@
#pragma once
#include <react/cxxstableapi/FrameworksGuard.h>
#include <react/timing/primitives.h>
#include <unordered_set>
@@ -7,6 +7,8 @@
#pragma once
#include <react/cxxstableapi/FrameworksGuard.h>
#include <unordered_set>
namespace facebook::react {
@@ -7,6 +7,8 @@
#pragma once
#include <react/cxxstableapi/FrameworksGuard.h>
#include <jsi/jsi.h>
namespace facebook::react {
@@ -7,6 +7,8 @@
#pragma once
#include <react/cxxstableapi/FrameworksGuard.h>
#ifndef RCT_REMOVE_LEGACY_ARCH
#include <ReactCommon/RuntimeExecutor.h>
@@ -7,6 +7,8 @@
#pragma once
#include <react/cxxstableapi/FrameworksGuard.h>
#include <ReactCommon/RuntimeExecutor.h>
#include <react/renderer/consistency/ShadowTreeRevisionConsistencyManager.h>
#include <react/renderer/runtimescheduler/RuntimeScheduler.h>
@@ -7,6 +7,8 @@
#pragma once
#include <react/cxxstableapi/FrameworksGuard.h>
#include <ReactCommon/SchedulerPriority.h>
#include <react/debug/react_native_assert.h>
#include <react/timing/primitives.h>
@@ -7,6 +7,8 @@
#pragma once
#include <react/cxxstableapi/FrameworksGuard.h>
#include <ReactCommon/SchedulerPriority.h>
#include <jsi/jsi.h>
#include <react/timing/primitives.h>
@@ -7,6 +7,8 @@
#pragma once
#include <react/cxxstableapi/FrameworksGuard.h>
#include <jsi/jsi.h>
#include <react/renderer/runtimescheduler/Task.h>