Skip to content

Commit 10a0a02

Browse files
j-piaseckimeta-codesync[bot]
authored andcommitted
Cover jsinspector-modern/tracing:profile with Stable API guards (#57977)
Summary: Pull Request resolved: #57977 Classifies `jsinspector-modern/tracing:profile` as a private target under the three-tier C++ stable API visibility model. Consumers that opt into `RN_STRICT_API` now get an error if they include its headers directly; without that flag the guard is inert, so no existing build changes behaviour. Changelog: [Internal] Reviewed By: cipolleschi Differential Revision: D116294338
1 parent 2dd6d4b commit 10a0a02

3 files changed

Lines changed: 5 additions & 0 deletions

File tree

‎packages/react-native/ReactCommon/jsinspector-modern/tracing/ProfileTreeNode.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 <utility>
1113

1214
#include <jsinspector-modern/tracing/RuntimeSamplingProfile.h>

‎packages/react-native/ReactCommon/jsinspector-modern/tracing/React-jsinspectortracing.podspec‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ Pod::Spec.new do |s|
4444
resolve_use_frameworks(s, header_mappings_dir: "../..", module_name: module_name)
4545

4646
add_dependency(s, "React-jsinspectornetwork", :framework_name => 'jsinspector_modernnetwork')
47+
s.dependency "React-cxxstableapi"
4748
s.dependency "React-jsi"
4849
s.dependency "React-oscompat"
4950
s.dependency "React-timing"

‎packages/react-native/ReactCommon/jsinspector-modern/tracing/TraceEventProfile.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 <react/timing/primitives.h>
1113

1214
#include <optional>

0 commit comments

Comments
 (0)