mirror of
https://github.com/facebook/react-native.git
synced 2026-11-18 20:19:07 +00:00
Cover react/runtime/hermes:hermes with Stable API guards (#58050)
Summary: Pull Request resolved: https://github.com/react/react-native/pull/58050 Classifies `react/runtime/hermes:hermes` 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: D116926134 fbshipit-source-id: 99d4e697d3e389314e0edddcc711eccf022a14d5
This commit is contained in:
1 parent
6e7d5bfebb
commit
f4ec9dcb53
3 files changed
+4
No files matched your search
@@ -34,6 +34,7 @@ Pod::Spec.new do |s|
|
||||
|
||||
resolve_use_frameworks(s, header_mappings_dir: "../../", module_name: "React_RuntimeHermes")
|
||||
|
||||
s.dependency "React-cxxstableapi"
|
||||
s.dependency "React-jsitracing"
|
||||
s.dependency "React-jsi"
|
||||
s.dependency "React-utils"
|
||||
|
||||
@@ -25,6 +25,7 @@ target_link_libraries(bridgelesshermes
|
||||
jsi
|
||||
jsitooling
|
||||
jsinspector
|
||||
react_cxxstableapi
|
||||
${reactnative}
|
||||
)
|
||||
|
||||
|
||||
@@ -7,6 +7,8 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <react/cxxstableapi/FrameworksGuard.h>
|
||||
|
||||
#include <cxxreact/MessageQueueThread.h>
|
||||
#include <hermes/hermes.h>
|
||||
#include <jsi/jsi.h>
|
||||
|
||||
Reference in new issue
Block a user