Skip to content

Commit

Permalink
feature(dev-middleware): add inspector proxy `nativeNetworkInspection…
Browse files Browse the repository at this point in the history
…` target capabilty flag (#43310)

Summary:
This adds the `nativeNetworkInspection` target capability flag, to enable/disable the proxy-side network inspection handling.

## Changelog:

<!-- Help reviewers and the release process by writing your own changelog entry.

Pick one each for the category and type tags:

[ANDROID|GENERAL|IOS|INTERNAL] [BREAKING|ADDED|CHANGED|DEPRECATED|REMOVED|FIXED|SECURITY] - Message

For more details, see:
https://reactnative.dev/contributing/changelogs-in-pull-requests
-->

[GENERAL][ADDED] Add inspector proxy `nativeNetworkInspection` target capability flag

Pull Request resolved: #43310

Test Plan:
Once this lands, and is published through `react-native/dev-middleware`, we (Expo) can disable the proxy-side network inspection handling.

See expo/expo@1a1b601 on PR expo/expo#27425

Reviewed By: christophpurrer, motiz88

Differential Revision: D54486516

Pulled By: huntie

fbshipit-source-id: cc151349c816fb3866d3ec07af1a29a5f4ff9b00
  • Loading branch information
byCedric authored and facebook-github-bot committed Mar 5, 2024
1 parent f043c83 commit f3ce7cd
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/dev-middleware/src/inspector-proxy/types.js
Expand Up @@ -30,6 +30,13 @@ export type TargetCapabilityFlags = $ReadOnly<{
* In the proxy, this disables source fetching emulation and host rewrites.
*/
nativeSourceCodeFetching?: boolean,

/**
* The target supports native network inspection.
*
* In the proxy, this disables intercepting and storing network requests.
*/
nativeNetworkInspection?: boolean,
}>;

// Page information received from the device. New page is created for
Expand Down

0 comments on commit f3ce7cd

Please sign in to comment.