feat: network inspector - add launch configuration for new inspector #1798
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR introduces additional Launch Configuration option
Use Native Network Inspector Implementation, which controls whether the new network inspector is enabled.The option can be explicitly set to
YesorNowith caveat, that for react native version < 0.83.0 the inspector will not showcase any massages, which is provided in the description of option.When set to
Detect Automaticallythe extension will detect whether current version is >= 0.83.0 and set the flag accordingly.How Has This Been Tested:
Changed configuration and used debugger to determine which inspector instance is initialised in
network-plugin.tsin the constructor, changed thepackage.jsonof react native module innode_modulesto0.83.0to check whether automatic detection works correctly, verified that changing the option properly editslaunch.jsonHow Has This Change Been Documented:
Will have to be done asap, wip for now.