Skip to content

Conversation

@huntie
Copy link
Member

@huntie huntie commented Dec 4, 2025

Summary:
NOTE: This diff is a backport of #54770, where on the 0.83-stable release branch, Network support for React Native DevTools was in a broken state under the open source build systems.

Cause

Network debugging support depends a number of REACT_NATIVE_DEBUGGER_ENABLED preprocessor flags, which we use to compile away any overhead in production builds.

As we unfortunately use a total of 4 native build systems today (with Buck 2 internally and primarily), the registration of these flags was missing across a number of native ObjC/C++ packages, which are now fixed with this PR.

  • D87864636 aimed to address this as we weren't seeing the Network panel at all. However, it was insufficient, as it has only partially enabled network features between platforms.

This diff

Add missing preprocessor flags in:

  • Android:
    • src/main/jni/react/devsupport/CMakeLists.txt
    • src/main/jni/CMakeLists.txt
  • iOS (Pods):
    • React-jsinspectorNetwork
  • iOS (Package.swift):
    • Libraries/Network

Changelog: [Internal]

Differential Revision: D88284345

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Dec 4, 2025
@meta-codesync
Copy link

meta-codesync bot commented Dec 4, 2025

@huntie has exported this pull request. If you are a Meta employee, you can view the originating Diff in D88284345.

@meta-codesync
Copy link

meta-codesync bot commented Dec 4, 2025

@huntie has exported this pull request. If you are a Meta employee, you can view the originating Diff in D88284345.

…cebook#54774)

Summary:

NOTE: This diff is a backport of facebook#54770, where on the `0.83-stable` release branch, Network support for React Native DevTools was in a broken state under the open source build systems.

### Cause

Network debugging support depends a number of `REACT_NATIVE_DEBUGGER_ENABLED` preprocessor flags, which we use to compile away any overhead in production builds.

As we unfortunately use a total of **4 native build systems** today (with Buck 2 internally and primarily), the registration of these flags was missing across a number of native ObjC/C++ packages, which are now fixed with this PR.

- D87864636 aimed to address this as we weren't seeing the Network panel at all. However, it was insufficient, as it has only partially enabled network features between platforms.

### This diff

Add missing preprocessor flags in:

- Android:
	- `src/main/jni/react/devsupport/CMakeLists.txt`
	- `src/main/jni/CMakeLists.txt`
- iOS (Pods):
	- `React-jsinspectorNetwork`
- iOS (`Package.swift`):
	- `Libraries/Network`

Changelog: [Internal]

Reviewed By: vzaidman

Differential Revision: D88284345
@meta-codesync meta-codesync bot closed this in 0874746 Dec 4, 2025
@react-native-bot
Copy link
Collaborator

This pull request was successfully merged by @huntie in 0874746

When will my fix make it into a release? | How to file a pick request?

@react-native-bot react-native-bot added the Merged This PR has been merged. label Dec 4, 2025
@huntie huntie deleted the export-D88284345 branch December 4, 2025 16:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged This PR has been merged. meta-exported p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants