Cover jsinspector-modern/cdp:jsinspector_cdp with Stable API guards (#58042)

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

Classifies `jsinspector-modern/cdp:jsinspector_cdp` 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 guard is inert, so no existing build changes behaviour.

Changelog: [Internal]

Reviewed By: javache

Differential Revision: D116917710

fbshipit-source-id: e34b6d2fe2b410d9a67f620deafa13a3d1dca354
This commit is contained in:
Jakub Piasecki authored and meta-codesync[bot] committed 2026-08-24 03:21:14 -07:00
1 parent 5858a0535a
commit 847b44353a
3 files changed
+5

No files matched your search

@@ -23,4 +23,5 @@ target_include_directories(jsinspector_cdp PUBLIC ${REACT_COMMON_DIR})
target_link_libraries(jsinspector_cdp
folly_runtime
react_cxxstableapi
)
@@ -7,6 +7,8 @@
#pragma once
#include <react/cxxstableapi/FrameworksGuard.h>
#include <folly/dynamic.h>
#include <folly/json.h>
#include <string>
@@ -46,5 +46,7 @@ Pod::Spec.new do |s|
add_rn_third_party_dependencies(s)
add_rncore_dependency(s)
s.dependency "React-cxxstableapi"
mark_as_react_native_build(s)
end