Skip to content

Commit 73c7c77

Browse files
j-piaseckimeta-codesync[bot]
authored andcommitted
Cover jsinspector-modern/network:jsinspector_network with Stable API guards
Summary: Marks `jsinspector-modern/network` as a private module under the C++ Stable API by adding `#include <react/cxxstableapi/PrivateGuard.h>` to its four exported headers (`BoundedRequestBuffer.h`, `CdpNetwork.h`, `HttpUtils.h`, `NetworkHandler.h`), and wiring the `React-cxxstableapi` dependency into BUCK and the podspec. The guards are inert unless a consumer defines `RN_STRICT_API`, so there is no behavior change. Changelog: [Internal] Differential Revision: D116026740
1 parent 8178bcd commit 73c7c77

5 files changed

Lines changed: 10 additions & 0 deletions

File tree

packages/react-native/ReactCommon/jsinspector-modern/network/BoundedRequestBuffer.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/PrivateGuard.h>
11+
1012
#include <deque>
1113
#include <memory>
1214
#include <string>

packages/react-native/ReactCommon/jsinspector-modern/network/CdpNetwork.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/PrivateGuard.h>
11+
1012
#include <folly/dynamic.h>
1113

1214
#include <string>

packages/react-native/ReactCommon/jsinspector-modern/network/HttpUtils.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/PrivateGuard.h>
11+
1012
#include <map>
1113
#include <string>
1214

packages/react-native/ReactCommon/jsinspector-modern/network/NetworkHandler.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/PrivateGuard.h>
11+
1012
#include "BoundedRequestBuffer.h"
1113
#include "CdpNetwork.h"
1214

packages/react-native/ReactCommon/jsinspector-modern/network/React-jsinspectornetwork.podspec

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,5 +48,7 @@ Pod::Spec.new do |s|
4848
add_rn_third_party_dependencies(s)
4949
add_rncore_dependency(s)
5050

51+
s.dependency "React-cxxstableapi"
52+
5153
mark_as_react_native_build(s)
5254
end

0 commit comments

Comments
 (0)