mirror of
https://github.com/facebook/react-native.git
synced 2026-11-18 20:19:07 +00:00
Scope Network Inspection to the New Architecture (#49874)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/49874 Changelog: [Internal] Reviewed By: vzaidman Differential Revision: D70723808 fbshipit-source-id: dddc75f6329a2e7062a7d0f15dcfcf299e77f037
This commit is contained in:
1 parent
c0a5c2c3cb
commit
d4c326411c
5 files changed
+12
-11
No files matched your search
+3
-3
@@ -4,7 +4,7 @@
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*
|
||||
* @generated SignedSource<<b733da19dbc09ab75b34dd9694ef96bb>>
|
||||
* @generated SignedSource<<7385ae14a1980ddefd036ba808459a11>>
|
||||
*/
|
||||
|
||||
/**
|
||||
@@ -47,7 +47,7 @@ public object ReactNativeFeatureFlags {
|
||||
public fun enableAccumulatedUpdatesInRawPropsAndroid(): Boolean = accessor.enableAccumulatedUpdatesInRawPropsAndroid()
|
||||
|
||||
/**
|
||||
* Feature flag to enable the new bridgeless architecture. Note: Enabling this will force enable the following flags: `useTurboModules` & `enableFabricRenderer.
|
||||
* Feature flag to enable the new bridgeless architecture. Note: Enabling this will force enable the following flags: `useTurboModules` & `enableFabricRenderer`.
|
||||
*/
|
||||
@JvmStatic
|
||||
public fun enableBridgelessArchitecture(): Boolean = accessor.enableBridgelessArchitecture()
|
||||
@@ -203,7 +203,7 @@ public object ReactNativeFeatureFlags {
|
||||
public fun fuseboxEnabledRelease(): Boolean = accessor.fuseboxEnabledRelease()
|
||||
|
||||
/**
|
||||
* Enable network inspection support in the React Native DevTools CDP backend. This flag is global and should not be changed across React Host lifetimes.
|
||||
* Enable network inspection support in the React Native DevTools CDP backend. Requires `enableBridgelessArchitecture`. This flag is global and should not be changed across React Host lifetimes.
|
||||
*/
|
||||
@JvmStatic
|
||||
public fun fuseboxNetworkInspectionEnabled(): Boolean = accessor.fuseboxNetworkInspectionEnabled()
|
||||
|
||||
@@ -63,6 +63,7 @@ const InspectorFlags::Values& InspectorFlags::loadFlagsAndAssertUnchanged()
|
||||
false,
|
||||
#endif
|
||||
.networkInspectionEnabled =
|
||||
ReactNativeFeatureFlags::enableBridgelessArchitecture() &&
|
||||
ReactNativeFeatureFlags::fuseboxNetworkInspectionEnabled(),
|
||||
};
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*
|
||||
* @generated SignedSource<<40aa48c26d1a64f137e35b402db04091>>
|
||||
* @generated SignedSource<<4b900e66889d8f2effc015e24ccaf929>>
|
||||
*/
|
||||
|
||||
/**
|
||||
@@ -55,7 +55,7 @@ class ReactNativeFeatureFlags {
|
||||
RN_EXPORT static bool enableAccumulatedUpdatesInRawPropsAndroid();
|
||||
|
||||
/**
|
||||
* Feature flag to enable the new bridgeless architecture. Note: Enabling this will force enable the following flags: `useTurboModules` & `enableFabricRenderer.
|
||||
* Feature flag to enable the new bridgeless architecture. Note: Enabling this will force enable the following flags: `useTurboModules` & `enableFabricRenderer`.
|
||||
*/
|
||||
RN_EXPORT static bool enableBridgelessArchitecture();
|
||||
|
||||
@@ -185,7 +185,7 @@ class ReactNativeFeatureFlags {
|
||||
RN_EXPORT static bool fuseboxEnabledRelease();
|
||||
|
||||
/**
|
||||
* Enable network inspection support in the React Native DevTools CDP backend. This flag is global and should not be changed across React Host lifetimes.
|
||||
* Enable network inspection support in the React Native DevTools CDP backend. Requires `enableBridgelessArchitecture`. This flag is global and should not be changed across React Host lifetimes.
|
||||
*/
|
||||
RN_EXPORT static bool fuseboxNetworkInspectionEnabled();
|
||||
|
||||
|
||||
@@ -86,7 +86,7 @@ const definitions: FeatureFlagDefinitions = {
|
||||
defaultValue: false,
|
||||
metadata: {
|
||||
description:
|
||||
'Feature flag to enable the new bridgeless architecture. Note: Enabling this will force enable the following flags: `useTurboModules` & `enableFabricRenderer.',
|
||||
'Feature flag to enable the new bridgeless architecture. Note: Enabling this will force enable the following flags: `useTurboModules` & `enableFabricRenderer`.',
|
||||
expectedReleaseValue: true,
|
||||
purpose: 'release',
|
||||
},
|
||||
@@ -359,7 +359,7 @@ const definitions: FeatureFlagDefinitions = {
|
||||
metadata: {
|
||||
dateAdded: '2024-01-31',
|
||||
description:
|
||||
'Enable network inspection support in the React Native DevTools CDP backend. This flag is global and should not be changed across React Host lifetimes.',
|
||||
'Enable network inspection support in the React Native DevTools CDP backend. Requires `enableBridgelessArchitecture`. This flag is global and should not be changed across React Host lifetimes.',
|
||||
expectedReleaseValue: true,
|
||||
purpose: 'experimentation',
|
||||
},
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*
|
||||
* @generated SignedSource<<3fdb80ad17786b737c1ab000f6c88277>>
|
||||
* @generated SignedSource<<28bf0120b44887b9cf23eeca6afdd945>>
|
||||
* @flow strict
|
||||
*/
|
||||
|
||||
@@ -179,7 +179,7 @@ export const disableMountItemReorderingAndroid: Getter<boolean> = createNativeFl
|
||||
*/
|
||||
export const enableAccumulatedUpdatesInRawPropsAndroid: Getter<boolean> = createNativeFlagGetter('enableAccumulatedUpdatesInRawPropsAndroid', false);
|
||||
/**
|
||||
* Feature flag to enable the new bridgeless architecture. Note: Enabling this will force enable the following flags: `useTurboModules` & `enableFabricRenderer.
|
||||
* Feature flag to enable the new bridgeless architecture. Note: Enabling this will force enable the following flags: `useTurboModules` & `enableFabricRenderer`.
|
||||
*/
|
||||
export const enableBridgelessArchitecture: Getter<boolean> = createNativeFlagGetter('enableBridgelessArchitecture', false);
|
||||
/**
|
||||
@@ -283,7 +283,7 @@ export const fixMountingCoordinatorReportedPendingTransactionsOnAndroid: Getter<
|
||||
*/
|
||||
export const fuseboxEnabledRelease: Getter<boolean> = createNativeFlagGetter('fuseboxEnabledRelease', false);
|
||||
/**
|
||||
* Enable network inspection support in the React Native DevTools CDP backend. This flag is global and should not be changed across React Host lifetimes.
|
||||
* Enable network inspection support in the React Native DevTools CDP backend. Requires `enableBridgelessArchitecture`. This flag is global and should not be changed across React Host lifetimes.
|
||||
*/
|
||||
export const fuseboxNetworkInspectionEnabled: Getter<boolean> = createNativeFlagGetter('fuseboxNetworkInspectionEnabled', false);
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user