Skip to content

Commit

Permalink
Support @//xplat/mode/no-react-fusebox (#45216)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: #45216

Buck modifications supporting the internal React Native DevTools (Fusebox) rollout.

Changelog: [Internal]

Reviewed By: motiz88

Differential Revision: D59154105

fbshipit-source-id: ba22a7f2f64d199b3e4e5a83ffa5036ae36b1a3b
  • Loading branch information
huntie authored and facebook-github-bot committed Jun 28, 2024
1 parent 5532e51 commit 9833338
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,20 @@ void InspectorFlags::dangerouslyResetFlags() {
*this = InspectorFlags{};
}

#if defined(REACT_NATIVE_FORCE_ENABLE_FUSEBOX) && \
defined(REACT_NATIVE_FORCE_DISABLE_FUSEBOX)
#error \
"Cannot define both REACT_NATIVE_FORCE_ENABLE_FUSEBOX and REACT_NATIVE_FORCE_DISABLE_FUSEBOX"
#endif

const InspectorFlags::Values& InspectorFlags::loadFlagsAndAssertUnchanged()
const {
InspectorFlags::Values newValues = {
.fuseboxEnabled =
#if defined(REACT_NATIVE_FORCE_ENABLE_FUSEBOX)
true,
#elif defined(REACT_NATIVE_FORCE_DISABLE_FUSEBOX)
false,
#elif defined(HERMES_ENABLE_DEBUGGER) && \
defined(REACT_NATIVE_ENABLE_FUSEBOX_DEBUG)
true,
Expand Down

0 comments on commit 9833338

Please sign in to comment.