Skip to content

Commit bea8d9e

Browse files
j-piaseckimeta-codesync[bot]
authored andcommitted
Cover jsc:JSCRuntime with Stable API guards (#58023)
Summary: Pull Request resolved: #58023 Classifies `jsc:JSCRuntime` as a for-frameworks target under the C++ stable API three-tier visibility model. Adds `#include <react/cxxstableapi/FrameworksGuard.h>` to the module's only header, `JSCRuntime.h`, and declares the guard dependency in BUCK. Consumers that opt into `RN_STRICT_API` now get a suppressible warning if they include it directly, silenced by defining `RN_ALLOW_FRAMEWORKS`; without that flag the guard is inert, so no existing build changes behaviour. There is no CMake or podspec wiring to update — the module has no `CMakeLists.txt` and no podspec compiles it. Changelog: [Internal] Reviewed By: cortinico Differential Revision: D116601629 fbshipit-source-id: adab5ed6974cac12eb140c452946f64311fc47d6
1 parent 2fa055f commit bea8d9e

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

packages/react-native/ReactCommon/jsc/JSCRuntime.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77

88
#pragma once
99

10+
#include <react/cxxstableapi/FrameworksGuard.h>
11+
1012
#include <jsi/jsi.h>
1113
#include <memory.h>
1214

0 commit comments

Comments
 (0)