mirror of
https://github.com/facebook/react-native.git
synced 2026-11-18 20:19:07 +00:00
Introduce fuseboxFrameRecordingEnabled flag, gate existing code (#55941)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/55941 Replaces the previous `globalThis.enableTimelineFrames` setup with backend gating. Enables us to: - Iterate more safely by gating Android/iOS/C++ code - Have a per-app rollout at Meta Changelog: [Internal] Reviewed By: vzaidman Differential Revision: D95405444 fbshipit-source-id: 0c41f10059b28ed940a12a44707946baa310bdfb
This commit is contained in:
1 parent
3aa8a043de
commit
1aa7a3235d
31 files changed
+217
-59
No files matched your search
+2
@@ -20,4 +20,6 @@ internal object InspectorFlags {
|
||||
@DoNotStrip @JvmStatic external fun getFuseboxEnabled(): Boolean
|
||||
|
||||
@DoNotStrip @JvmStatic external fun getIsProfilingBuild(): Boolean
|
||||
|
||||
@DoNotStrip @JvmStatic external fun getFrameRecordingEnabled(): Boolean
|
||||
}
|
||||
+7
-1
@@ -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<<e6da91a25406bc0930e6415da9bdcd55>>
|
||||
* @generated SignedSource<<039798c50526ff1abf33bc7987aa78a9>>
|
||||
*/
|
||||
|
||||
/**
|
||||
@@ -402,6 +402,12 @@ public object ReactNativeFeatureFlags {
|
||||
@JvmStatic
|
||||
public fun fuseboxEnabledRelease(): Boolean = accessor.fuseboxEnabledRelease()
|
||||
|
||||
/**
|
||||
* Enable frame timings and screenshots support in the React Native DevTools CDP backend. This flag is global and should not be changed across React Host lifetimes.
|
||||
*/
|
||||
@JvmStatic
|
||||
public fun fuseboxFrameRecordingEnabled(): Boolean = accessor.fuseboxFrameRecordingEnabled()
|
||||
|
||||
/**
|
||||
* 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.
|
||||
*/
|
||||
|
||||
+11
-1
@@ -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<<a4c3c9732db567bf8ab9915f731e57ff>>
|
||||
* @generated SignedSource<<cbc85fcd815ba2585166a53e7b410f30>>
|
||||
*/
|
||||
|
||||
/**
|
||||
@@ -82,6 +82,7 @@ internal class ReactNativeFeatureFlagsCxxAccessor : ReactNativeFeatureFlagsAcces
|
||||
private var fixTextClippingAndroid15useBoundsForWidthCache: Boolean? = null
|
||||
private var fuseboxAssertSingleHostStateCache: Boolean? = null
|
||||
private var fuseboxEnabledReleaseCache: Boolean? = null
|
||||
private var fuseboxFrameRecordingEnabledCache: Boolean? = null
|
||||
private var fuseboxNetworkInspectionEnabledCache: Boolean? = null
|
||||
private var hideOffscreenVirtualViewsOnIOSCache: Boolean? = null
|
||||
private var overrideBySynchronousMountPropsAtMountingAndroidCache: Boolean? = null
|
||||
@@ -667,6 +668,15 @@ internal class ReactNativeFeatureFlagsCxxAccessor : ReactNativeFeatureFlagsAcces
|
||||
return cached
|
||||
}
|
||||
|
||||
override fun fuseboxFrameRecordingEnabled(): Boolean {
|
||||
var cached = fuseboxFrameRecordingEnabledCache
|
||||
if (cached == null) {
|
||||
cached = ReactNativeFeatureFlagsCxxInterop.fuseboxFrameRecordingEnabled()
|
||||
fuseboxFrameRecordingEnabledCache = cached
|
||||
}
|
||||
return cached
|
||||
}
|
||||
|
||||
override fun fuseboxNetworkInspectionEnabled(): Boolean {
|
||||
var cached = fuseboxNetworkInspectionEnabledCache
|
||||
if (cached == null) {
|
||||
|
||||
+3
-1
@@ -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<<ce1f59ca437f7d8e24bdcbd651e44cc2>>
|
||||
* @generated SignedSource<<3d472893c05bdee6e09f834f52d3d92f>>
|
||||
*/
|
||||
|
||||
/**
|
||||
@@ -152,6 +152,8 @@ public object ReactNativeFeatureFlagsCxxInterop {
|
||||
|
||||
@DoNotStrip @JvmStatic public external fun fuseboxEnabledRelease(): Boolean
|
||||
|
||||
@DoNotStrip @JvmStatic public external fun fuseboxFrameRecordingEnabled(): Boolean
|
||||
|
||||
@DoNotStrip @JvmStatic public external fun fuseboxNetworkInspectionEnabled(): Boolean
|
||||
|
||||
@DoNotStrip @JvmStatic public external fun hideOffscreenVirtualViewsOnIOS(): Boolean
|
||||
|
||||
+3
-1
@@ -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<<cd851e80f207b3e141400802917e4981>>
|
||||
* @generated SignedSource<<29f7031f91527f41f2f184596c542a5b>>
|
||||
*/
|
||||
|
||||
/**
|
||||
@@ -147,6 +147,8 @@ public open class ReactNativeFeatureFlagsDefaults : ReactNativeFeatureFlagsProvi
|
||||
|
||||
override fun fuseboxEnabledRelease(): Boolean = false
|
||||
|
||||
override fun fuseboxFrameRecordingEnabled(): Boolean = false
|
||||
|
||||
override fun fuseboxNetworkInspectionEnabled(): Boolean = true
|
||||
|
||||
override fun hideOffscreenVirtualViewsOnIOS(): Boolean = false
|
||||
|
||||
+12
-1
@@ -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<<ff9e56efafa98cf4c466c976739a2957>>
|
||||
* @generated SignedSource<<014ee4afdf58a61c9974df198068d81a>>
|
||||
*/
|
||||
|
||||
/**
|
||||
@@ -86,6 +86,7 @@ internal class ReactNativeFeatureFlagsLocalAccessor : ReactNativeFeatureFlagsAcc
|
||||
private var fixTextClippingAndroid15useBoundsForWidthCache: Boolean? = null
|
||||
private var fuseboxAssertSingleHostStateCache: Boolean? = null
|
||||
private var fuseboxEnabledReleaseCache: Boolean? = null
|
||||
private var fuseboxFrameRecordingEnabledCache: Boolean? = null
|
||||
private var fuseboxNetworkInspectionEnabledCache: Boolean? = null
|
||||
private var hideOffscreenVirtualViewsOnIOSCache: Boolean? = null
|
||||
private var overrideBySynchronousMountPropsAtMountingAndroidCache: Boolean? = null
|
||||
@@ -733,6 +734,16 @@ internal class ReactNativeFeatureFlagsLocalAccessor : ReactNativeFeatureFlagsAcc
|
||||
return cached
|
||||
}
|
||||
|
||||
override fun fuseboxFrameRecordingEnabled(): Boolean {
|
||||
var cached = fuseboxFrameRecordingEnabledCache
|
||||
if (cached == null) {
|
||||
cached = currentProvider.fuseboxFrameRecordingEnabled()
|
||||
accessedFeatureFlags.add("fuseboxFrameRecordingEnabled")
|
||||
fuseboxFrameRecordingEnabledCache = cached
|
||||
}
|
||||
return cached
|
||||
}
|
||||
|
||||
override fun fuseboxNetworkInspectionEnabled(): Boolean {
|
||||
var cached = fuseboxNetworkInspectionEnabledCache
|
||||
if (cached == null) {
|
||||
|
||||
+3
-1
@@ -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<<39585bb818914cc7a02e18399fe49cbe>>
|
||||
* @generated SignedSource<<acd57b19a67924a91c6b25904cb24d3b>>
|
||||
*/
|
||||
|
||||
/**
|
||||
@@ -147,6 +147,8 @@ public interface ReactNativeFeatureFlagsProvider {
|
||||
|
||||
@DoNotStrip public fun fuseboxEnabledRelease(): Boolean
|
||||
|
||||
@DoNotStrip public fun fuseboxFrameRecordingEnabled(): Boolean
|
||||
|
||||
@DoNotStrip public fun fuseboxNetworkInspectionEnabled(): Boolean
|
||||
|
||||
@DoNotStrip public fun hideOffscreenVirtualViewsOnIOS(): Boolean
|
||||
|
||||
+12
-10
@@ -1565,16 +1565,18 @@ public class ReactHostImpl(
|
||||
when (state) {
|
||||
TracingState.ENABLED_IN_BACKGROUND_MODE,
|
||||
TracingState.ENABLED_IN_CDP_MODE -> {
|
||||
val observer =
|
||||
FrameTimingsObserver(
|
||||
_screenshotsEnabled,
|
||||
{ frameTimingsSequence ->
|
||||
inspectorTarget.recordFrameTimings(frameTimingsSequence)
|
||||
},
|
||||
)
|
||||
observer.setCurrentWindow(currentActivity?.window)
|
||||
observer.start()
|
||||
frameTimingsObserver = observer
|
||||
if (InspectorFlags.getFrameRecordingEnabled()) {
|
||||
val observer =
|
||||
FrameTimingsObserver(
|
||||
_screenshotsEnabled,
|
||||
{ frameTimingsSequence ->
|
||||
inspectorTarget.recordFrameTimings(frameTimingsSequence)
|
||||
},
|
||||
)
|
||||
observer.setCurrentWindow(currentActivity?.window)
|
||||
observer.start()
|
||||
frameTimingsObserver = observer
|
||||
}
|
||||
}
|
||||
TracingState.DISABLED -> {
|
||||
frameTimingsObserver?.stop()
|
||||
|
||||
@@ -21,6 +21,12 @@ bool JInspectorFlags::getIsProfilingBuild(jni::alias_ref<jclass> /*unused*/) {
|
||||
return inspectorFlags.getIsProfilingBuild();
|
||||
}
|
||||
|
||||
bool JInspectorFlags::getFrameRecordingEnabled(
|
||||
jni::alias_ref<jclass> /*unused*/) {
|
||||
auto& inspectorFlags = InspectorFlags::getInstance();
|
||||
return inspectorFlags.getFrameRecordingEnabled();
|
||||
}
|
||||
|
||||
void JInspectorFlags::registerNatives() {
|
||||
javaClassLocal()->registerNatives({
|
||||
makeNativeMethod("getFuseboxEnabled", JInspectorFlags::getFuseboxEnabled),
|
||||
@@ -29,6 +35,11 @@ void JInspectorFlags::registerNatives() {
|
||||
makeNativeMethod(
|
||||
"getIsProfilingBuild", JInspectorFlags::getIsProfilingBuild),
|
||||
});
|
||||
javaClassLocal()->registerNatives({
|
||||
makeNativeMethod(
|
||||
"getFrameRecordingEnabled",
|
||||
JInspectorFlags::getFrameRecordingEnabled),
|
||||
});
|
||||
}
|
||||
|
||||
} // namespace facebook::react::jsinspector_modern
|
||||
@@ -20,6 +20,7 @@ class JInspectorFlags : public jni::JavaClass<JInspectorFlags> {
|
||||
|
||||
static bool getFuseboxEnabled(jni::alias_ref<jclass> /*unused*/);
|
||||
static bool getIsProfilingBuild(jni::alias_ref<jclass> /*unused*/);
|
||||
static bool getFrameRecordingEnabled(jni::alias_ref<jclass> /*unused*/);
|
||||
|
||||
static void registerNatives();
|
||||
|
||||
|
||||
+15
-1
@@ -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<<0497864a0645d430ac6373047d6d2ea8>>
|
||||
* @generated SignedSource<<a753500d987b8719f0ba1bba8d3e4dc4>>
|
||||
*/
|
||||
|
||||
/**
|
||||
@@ -411,6 +411,12 @@ class ReactNativeFeatureFlagsJavaProvider
|
||||
return method(javaProvider_);
|
||||
}
|
||||
|
||||
bool fuseboxFrameRecordingEnabled() override {
|
||||
static const auto method =
|
||||
getReactNativeFeatureFlagsProviderJavaClass()->getMethod<jboolean()>("fuseboxFrameRecordingEnabled");
|
||||
return method(javaProvider_);
|
||||
}
|
||||
|
||||
bool fuseboxNetworkInspectionEnabled() override {
|
||||
static const auto method =
|
||||
getReactNativeFeatureFlagsProviderJavaClass()->getMethod<jboolean()>("fuseboxNetworkInspectionEnabled");
|
||||
@@ -881,6 +887,11 @@ bool JReactNativeFeatureFlagsCxxInterop::fuseboxEnabledRelease(
|
||||
return ReactNativeFeatureFlags::fuseboxEnabledRelease();
|
||||
}
|
||||
|
||||
bool JReactNativeFeatureFlagsCxxInterop::fuseboxFrameRecordingEnabled(
|
||||
facebook::jni::alias_ref<JReactNativeFeatureFlagsCxxInterop> /*unused*/) {
|
||||
return ReactNativeFeatureFlags::fuseboxFrameRecordingEnabled();
|
||||
}
|
||||
|
||||
bool JReactNativeFeatureFlagsCxxInterop::fuseboxNetworkInspectionEnabled(
|
||||
facebook::jni::alias_ref<JReactNativeFeatureFlagsCxxInterop> /*unused*/) {
|
||||
return ReactNativeFeatureFlags::fuseboxNetworkInspectionEnabled();
|
||||
@@ -1228,6 +1239,9 @@ void JReactNativeFeatureFlagsCxxInterop::registerNatives() {
|
||||
makeNativeMethod(
|
||||
"fuseboxEnabledRelease",
|
||||
JReactNativeFeatureFlagsCxxInterop::fuseboxEnabledRelease),
|
||||
makeNativeMethod(
|
||||
"fuseboxFrameRecordingEnabled",
|
||||
JReactNativeFeatureFlagsCxxInterop::fuseboxFrameRecordingEnabled),
|
||||
makeNativeMethod(
|
||||
"fuseboxNetworkInspectionEnabled",
|
||||
JReactNativeFeatureFlagsCxxInterop::fuseboxNetworkInspectionEnabled),
|
||||
|
||||
+4
-1
@@ -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<<9e245713f519765f04c5517c1de47c70>>
|
||||
* @generated SignedSource<<6ff305bf95e95cd8a65c138fc24b43f8>>
|
||||
*/
|
||||
|
||||
/**
|
||||
@@ -216,6 +216,9 @@ class JReactNativeFeatureFlagsCxxInterop
|
||||
static bool fuseboxEnabledRelease(
|
||||
facebook::jni::alias_ref<JReactNativeFeatureFlagsCxxInterop>);
|
||||
|
||||
static bool fuseboxFrameRecordingEnabled(
|
||||
facebook::jni::alias_ref<JReactNativeFeatureFlagsCxxInterop>);
|
||||
|
||||
static bool fuseboxNetworkInspectionEnabled(
|
||||
facebook::jni::alias_ref<JReactNativeFeatureFlagsCxxInterop>);
|
||||
|
||||
|
||||
@@ -328,6 +328,7 @@ namespace {
|
||||
struct StaticHostTargetMetadata {
|
||||
std::optional<bool> isProfilingBuild;
|
||||
std::optional<bool> networkInspectionEnabled;
|
||||
std::optional<bool> frameRecordingEnabled;
|
||||
};
|
||||
|
||||
StaticHostTargetMetadata getStaticHostMetadata() {
|
||||
@@ -335,7 +336,8 @@ StaticHostTargetMetadata getStaticHostMetadata() {
|
||||
|
||||
return {
|
||||
.isProfilingBuild = inspectorFlags.getIsProfilingBuild(),
|
||||
.networkInspectionEnabled = inspectorFlags.getNetworkInspectionEnabled()};
|
||||
.networkInspectionEnabled = inspectorFlags.getNetworkInspectionEnabled(),
|
||||
.frameRecordingEnabled = inspectorFlags.getFrameRecordingEnabled()};
|
||||
}
|
||||
|
||||
} // namespace
|
||||
@@ -370,6 +372,10 @@ folly::dynamic createHostMetadataPayload(const HostTargetMetadata& metadata) {
|
||||
result["unstable_networkInspectionEnabled"] =
|
||||
staticMetadata.networkInspectionEnabled.value();
|
||||
}
|
||||
if (staticMetadata.frameRecordingEnabled) {
|
||||
result["unstable_frameRecordingEnabled"] =
|
||||
staticMetadata.frameRecordingEnabled.value();
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
@@ -21,6 +21,10 @@ bool InspectorFlags::getAssertSingleHostState() const {
|
||||
return loadFlagsAndAssertUnchanged().assertSingleHostState;
|
||||
}
|
||||
|
||||
bool InspectorFlags::getFrameRecordingEnabled() const {
|
||||
return loadFlagsAndAssertUnchanged().frameRecordingEnabled;
|
||||
}
|
||||
|
||||
bool InspectorFlags::getFuseboxEnabled() const {
|
||||
if (fuseboxDisabledForTest_) {
|
||||
return false;
|
||||
@@ -54,6 +58,8 @@ const InspectorFlags::Values& InspectorFlags::loadFlagsAndAssertUnchanged()
|
||||
InspectorFlags::Values newValues = {
|
||||
.assertSingleHostState =
|
||||
ReactNativeFeatureFlags::fuseboxAssertSingleHostState(),
|
||||
.frameRecordingEnabled =
|
||||
ReactNativeFeatureFlags::fuseboxFrameRecordingEnabled(),
|
||||
.fuseboxEnabled =
|
||||
#if defined(REACT_NATIVE_DEBUGGER_ENABLED)
|
||||
true,
|
||||
|
||||
@@ -36,6 +36,11 @@ class InspectorFlags {
|
||||
*/
|
||||
bool getIsProfilingBuild() const;
|
||||
|
||||
/**
|
||||
* Flag determining if frame recording (timings + screenshots) is enabled.
|
||||
*/
|
||||
bool getFrameRecordingEnabled() const;
|
||||
|
||||
/**
|
||||
* Flag determining if network inspection is enabled.
|
||||
*/
|
||||
@@ -61,6 +66,7 @@ class InspectorFlags {
|
||||
private:
|
||||
struct Values {
|
||||
bool assertSingleHostState;
|
||||
bool frameRecordingEnabled;
|
||||
bool fuseboxEnabled;
|
||||
bool isProfilingBuild;
|
||||
bool networkInspectionEnabled;
|
||||
|
||||
@@ -358,6 +358,7 @@ TYPED_TEST(JsiIntegrationPortableTest, ReactNativeApplicationEnable) {
|
||||
"method": "ReactNativeApplication.metadataUpdated",
|
||||
"params": {
|
||||
"integrationName": "JsiIntegrationTest",
|
||||
"unstable_frameRecordingEnabled": false,
|
||||
"unstable_isProfilingBuild": false,
|
||||
"unstable_networkInspectionEnabled": false
|
||||
}
|
||||
|
||||
@@ -38,10 +38,10 @@ class NetworkReporterTestBase : public TracingTestBase<
|
||||
protected:
|
||||
NetworkReporterTestBase()
|
||||
: TracingTestBase({
|
||||
.networkInspectionEnabled = true,
|
||||
.enableNetworkEventReporting =
|
||||
WithParamInterface<Params>::GetParam()
|
||||
.enableNetworkEventReporting,
|
||||
.networkInspectionEnabled = true,
|
||||
}) {}
|
||||
|
||||
void SetUp() override {
|
||||
|
||||
+5
@@ -31,6 +31,11 @@ class ReactNativeFeatureFlagsOverrides
|
||||
ReactNativeFeatureFlagsDefaults::fuseboxEnabledRelease());
|
||||
}
|
||||
|
||||
bool fuseboxFrameRecordingEnabled() override {
|
||||
return overrides_.frameRecordingEnabled.value_or(
|
||||
ReactNativeFeatureFlagsDefaults::fuseboxFrameRecordingEnabled());
|
||||
}
|
||||
|
||||
bool fuseboxNetworkInspectionEnabled() override {
|
||||
return overrides_.networkInspectionEnabled.value_or(
|
||||
ReactNativeFeatureFlagsDefaults::fuseboxNetworkInspectionEnabled());
|
||||
|
||||
+2
-1
@@ -19,9 +19,10 @@ namespace facebook::react::jsinspector_modern {
|
||||
struct InspectorFlagOverrides {
|
||||
// NOTE: Keep these entries in sync with ReactNativeFeatureFlagsOverrides in
|
||||
// the implementation file.
|
||||
std::optional<bool> enableNetworkEventReporting;
|
||||
std::optional<bool> frameRecordingEnabled;
|
||||
std::optional<bool> fuseboxEnabledRelease;
|
||||
std::optional<bool> networkInspectionEnabled;
|
||||
std::optional<bool> enableNetworkEventReporting;
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
@@ -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<<10986d98341baa81d1aa3fc90f739367>>
|
||||
* @generated SignedSource<<903b6404deb3339d2cfeced5be354134>>
|
||||
*/
|
||||
|
||||
/**
|
||||
@@ -274,6 +274,10 @@ bool ReactNativeFeatureFlags::fuseboxEnabledRelease() {
|
||||
return getAccessor().fuseboxEnabledRelease();
|
||||
}
|
||||
|
||||
bool ReactNativeFeatureFlags::fuseboxFrameRecordingEnabled() {
|
||||
return getAccessor().fuseboxFrameRecordingEnabled();
|
||||
}
|
||||
|
||||
bool ReactNativeFeatureFlags::fuseboxNetworkInspectionEnabled() {
|
||||
return getAccessor().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<<f0f19fee7d5fdd2dbf5eb8460ab95905>>
|
||||
* @generated SignedSource<<5ae89f16fbc942bd1c857c85b0520a03>>
|
||||
*/
|
||||
|
||||
/**
|
||||
@@ -349,6 +349,11 @@ class ReactNativeFeatureFlags {
|
||||
*/
|
||||
RN_EXPORT static bool fuseboxEnabledRelease();
|
||||
|
||||
/**
|
||||
* Enable frame timings and screenshots support in the React Native DevTools CDP backend. This flag is global and should not be changed across React Host lifetimes.
|
||||
*/
|
||||
RN_EXPORT static bool fuseboxFrameRecordingEnabled();
|
||||
|
||||
/**
|
||||
* 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.
|
||||
*/
|
||||
|
||||
+45
-27
@@ -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<<2dfea8f52a640e8623f56371eec2ba0f>>
|
||||
* @generated SignedSource<<803777ba8fd4207f5e466a546639a058>>
|
||||
*/
|
||||
|
||||
/**
|
||||
@@ -1145,6 +1145,24 @@ bool ReactNativeFeatureFlagsAccessor::fuseboxEnabledRelease() {
|
||||
return flagValue.value();
|
||||
}
|
||||
|
||||
bool ReactNativeFeatureFlagsAccessor::fuseboxFrameRecordingEnabled() {
|
||||
auto flagValue = fuseboxFrameRecordingEnabled_.load();
|
||||
|
||||
if (!flagValue.has_value()) {
|
||||
// This block is not exclusive but it is not necessary.
|
||||
// If multiple threads try to initialize the feature flag, we would only
|
||||
// be accessing the provider multiple times but the end state of this
|
||||
// instance and the returned flag value would be the same.
|
||||
|
||||
markFlagAsAccessed(62, "fuseboxFrameRecordingEnabled");
|
||||
|
||||
flagValue = currentProvider_->fuseboxFrameRecordingEnabled();
|
||||
fuseboxFrameRecordingEnabled_ = flagValue;
|
||||
}
|
||||
|
||||
return flagValue.value();
|
||||
}
|
||||
|
||||
bool ReactNativeFeatureFlagsAccessor::fuseboxNetworkInspectionEnabled() {
|
||||
auto flagValue = fuseboxNetworkInspectionEnabled_.load();
|
||||
|
||||
@@ -1154,7 +1172,7 @@ bool ReactNativeFeatureFlagsAccessor::fuseboxNetworkInspectionEnabled() {
|
||||
// be accessing the provider multiple times but the end state of this
|
||||
// instance and the returned flag value would be the same.
|
||||
|
||||
markFlagAsAccessed(62, "fuseboxNetworkInspectionEnabled");
|
||||
markFlagAsAccessed(63, "fuseboxNetworkInspectionEnabled");
|
||||
|
||||
flagValue = currentProvider_->fuseboxNetworkInspectionEnabled();
|
||||
fuseboxNetworkInspectionEnabled_ = flagValue;
|
||||
@@ -1172,7 +1190,7 @@ bool ReactNativeFeatureFlagsAccessor::hideOffscreenVirtualViewsOnIOS() {
|
||||
// be accessing the provider multiple times but the end state of this
|
||||
// instance and the returned flag value would be the same.
|
||||
|
||||
markFlagAsAccessed(63, "hideOffscreenVirtualViewsOnIOS");
|
||||
markFlagAsAccessed(64, "hideOffscreenVirtualViewsOnIOS");
|
||||
|
||||
flagValue = currentProvider_->hideOffscreenVirtualViewsOnIOS();
|
||||
hideOffscreenVirtualViewsOnIOS_ = flagValue;
|
||||
@@ -1190,7 +1208,7 @@ bool ReactNativeFeatureFlagsAccessor::overrideBySynchronousMountPropsAtMountingA
|
||||
// be accessing the provider multiple times but the end state of this
|
||||
// instance and the returned flag value would be the same.
|
||||
|
||||
markFlagAsAccessed(64, "overrideBySynchronousMountPropsAtMountingAndroid");
|
||||
markFlagAsAccessed(65, "overrideBySynchronousMountPropsAtMountingAndroid");
|
||||
|
||||
flagValue = currentProvider_->overrideBySynchronousMountPropsAtMountingAndroid();
|
||||
overrideBySynchronousMountPropsAtMountingAndroid_ = flagValue;
|
||||
@@ -1208,7 +1226,7 @@ bool ReactNativeFeatureFlagsAccessor::perfIssuesEnabled() {
|
||||
// be accessing the provider multiple times but the end state of this
|
||||
// instance and the returned flag value would be the same.
|
||||
|
||||
markFlagAsAccessed(65, "perfIssuesEnabled");
|
||||
markFlagAsAccessed(66, "perfIssuesEnabled");
|
||||
|
||||
flagValue = currentProvider_->perfIssuesEnabled();
|
||||
perfIssuesEnabled_ = flagValue;
|
||||
@@ -1226,7 +1244,7 @@ bool ReactNativeFeatureFlagsAccessor::perfMonitorV2Enabled() {
|
||||
// be accessing the provider multiple times but the end state of this
|
||||
// instance and the returned flag value would be the same.
|
||||
|
||||
markFlagAsAccessed(66, "perfMonitorV2Enabled");
|
||||
markFlagAsAccessed(67, "perfMonitorV2Enabled");
|
||||
|
||||
flagValue = currentProvider_->perfMonitorV2Enabled();
|
||||
perfMonitorV2Enabled_ = flagValue;
|
||||
@@ -1244,7 +1262,7 @@ double ReactNativeFeatureFlagsAccessor::preparedTextCacheSize() {
|
||||
// be accessing the provider multiple times but the end state of this
|
||||
// instance and the returned flag value would be the same.
|
||||
|
||||
markFlagAsAccessed(67, "preparedTextCacheSize");
|
||||
markFlagAsAccessed(68, "preparedTextCacheSize");
|
||||
|
||||
flagValue = currentProvider_->preparedTextCacheSize();
|
||||
preparedTextCacheSize_ = flagValue;
|
||||
@@ -1262,7 +1280,7 @@ bool ReactNativeFeatureFlagsAccessor::preventShadowTreeCommitExhaustion() {
|
||||
// be accessing the provider multiple times but the end state of this
|
||||
// instance and the returned flag value would be the same.
|
||||
|
||||
markFlagAsAccessed(68, "preventShadowTreeCommitExhaustion");
|
||||
markFlagAsAccessed(69, "preventShadowTreeCommitExhaustion");
|
||||
|
||||
flagValue = currentProvider_->preventShadowTreeCommitExhaustion();
|
||||
preventShadowTreeCommitExhaustion_ = flagValue;
|
||||
@@ -1280,7 +1298,7 @@ bool ReactNativeFeatureFlagsAccessor::shouldPressibilityUseW3CPointerEventsForHo
|
||||
// be accessing the provider multiple times but the end state of this
|
||||
// instance and the returned flag value would be the same.
|
||||
|
||||
markFlagAsAccessed(69, "shouldPressibilityUseW3CPointerEventsForHover");
|
||||
markFlagAsAccessed(70, "shouldPressibilityUseW3CPointerEventsForHover");
|
||||
|
||||
flagValue = currentProvider_->shouldPressibilityUseW3CPointerEventsForHover();
|
||||
shouldPressibilityUseW3CPointerEventsForHover_ = flagValue;
|
||||
@@ -1298,7 +1316,7 @@ bool ReactNativeFeatureFlagsAccessor::shouldTriggerResponderTransferOnScrollAndr
|
||||
// be accessing the provider multiple times but the end state of this
|
||||
// instance and the returned flag value would be the same.
|
||||
|
||||
markFlagAsAccessed(70, "shouldTriggerResponderTransferOnScrollAndroid");
|
||||
markFlagAsAccessed(71, "shouldTriggerResponderTransferOnScrollAndroid");
|
||||
|
||||
flagValue = currentProvider_->shouldTriggerResponderTransferOnScrollAndroid();
|
||||
shouldTriggerResponderTransferOnScrollAndroid_ = flagValue;
|
||||
@@ -1316,7 +1334,7 @@ bool ReactNativeFeatureFlagsAccessor::skipActivityIdentityAssertionOnHostPause()
|
||||
// be accessing the provider multiple times but the end state of this
|
||||
// instance and the returned flag value would be the same.
|
||||
|
||||
markFlagAsAccessed(71, "skipActivityIdentityAssertionOnHostPause");
|
||||
markFlagAsAccessed(72, "skipActivityIdentityAssertionOnHostPause");
|
||||
|
||||
flagValue = currentProvider_->skipActivityIdentityAssertionOnHostPause();
|
||||
skipActivityIdentityAssertionOnHostPause_ = flagValue;
|
||||
@@ -1334,7 +1352,7 @@ bool ReactNativeFeatureFlagsAccessor::syncAndroidClipToPaddingWithOverflow() {
|
||||
// be accessing the provider multiple times but the end state of this
|
||||
// instance and the returned flag value would be the same.
|
||||
|
||||
markFlagAsAccessed(72, "syncAndroidClipToPaddingWithOverflow");
|
||||
markFlagAsAccessed(73, "syncAndroidClipToPaddingWithOverflow");
|
||||
|
||||
flagValue = currentProvider_->syncAndroidClipToPaddingWithOverflow();
|
||||
syncAndroidClipToPaddingWithOverflow_ = flagValue;
|
||||
@@ -1352,7 +1370,7 @@ bool ReactNativeFeatureFlagsAccessor::traceTurboModulePromiseRejectionsOnAndroid
|
||||
// be accessing the provider multiple times but the end state of this
|
||||
// instance and the returned flag value would be the same.
|
||||
|
||||
markFlagAsAccessed(73, "traceTurboModulePromiseRejectionsOnAndroid");
|
||||
markFlagAsAccessed(74, "traceTurboModulePromiseRejectionsOnAndroid");
|
||||
|
||||
flagValue = currentProvider_->traceTurboModulePromiseRejectionsOnAndroid();
|
||||
traceTurboModulePromiseRejectionsOnAndroid_ = flagValue;
|
||||
@@ -1370,7 +1388,7 @@ bool ReactNativeFeatureFlagsAccessor::updateRuntimeShadowNodeReferencesOnCommit(
|
||||
// be accessing the provider multiple times but the end state of this
|
||||
// instance and the returned flag value would be the same.
|
||||
|
||||
markFlagAsAccessed(74, "updateRuntimeShadowNodeReferencesOnCommit");
|
||||
markFlagAsAccessed(75, "updateRuntimeShadowNodeReferencesOnCommit");
|
||||
|
||||
flagValue = currentProvider_->updateRuntimeShadowNodeReferencesOnCommit();
|
||||
updateRuntimeShadowNodeReferencesOnCommit_ = flagValue;
|
||||
@@ -1388,7 +1406,7 @@ bool ReactNativeFeatureFlagsAccessor::updateRuntimeShadowNodeReferencesOnCommitT
|
||||
// be accessing the provider multiple times but the end state of this
|
||||
// instance and the returned flag value would be the same.
|
||||
|
||||
markFlagAsAccessed(75, "updateRuntimeShadowNodeReferencesOnCommitThread");
|
||||
markFlagAsAccessed(76, "updateRuntimeShadowNodeReferencesOnCommitThread");
|
||||
|
||||
flagValue = currentProvider_->updateRuntimeShadowNodeReferencesOnCommitThread();
|
||||
updateRuntimeShadowNodeReferencesOnCommitThread_ = flagValue;
|
||||
@@ -1406,7 +1424,7 @@ bool ReactNativeFeatureFlagsAccessor::useAlwaysAvailableJSErrorHandling() {
|
||||
// be accessing the provider multiple times but the end state of this
|
||||
// instance and the returned flag value would be the same.
|
||||
|
||||
markFlagAsAccessed(76, "useAlwaysAvailableJSErrorHandling");
|
||||
markFlagAsAccessed(77, "useAlwaysAvailableJSErrorHandling");
|
||||
|
||||
flagValue = currentProvider_->useAlwaysAvailableJSErrorHandling();
|
||||
useAlwaysAvailableJSErrorHandling_ = flagValue;
|
||||
@@ -1424,7 +1442,7 @@ bool ReactNativeFeatureFlagsAccessor::useFabricInterop() {
|
||||
// be accessing the provider multiple times but the end state of this
|
||||
// instance and the returned flag value would be the same.
|
||||
|
||||
markFlagAsAccessed(77, "useFabricInterop");
|
||||
markFlagAsAccessed(78, "useFabricInterop");
|
||||
|
||||
flagValue = currentProvider_->useFabricInterop();
|
||||
useFabricInterop_ = flagValue;
|
||||
@@ -1442,7 +1460,7 @@ bool ReactNativeFeatureFlagsAccessor::useNativeViewConfigsInBridgelessMode() {
|
||||
// be accessing the provider multiple times but the end state of this
|
||||
// instance and the returned flag value would be the same.
|
||||
|
||||
markFlagAsAccessed(78, "useNativeViewConfigsInBridgelessMode");
|
||||
markFlagAsAccessed(79, "useNativeViewConfigsInBridgelessMode");
|
||||
|
||||
flagValue = currentProvider_->useNativeViewConfigsInBridgelessMode();
|
||||
useNativeViewConfigsInBridgelessMode_ = flagValue;
|
||||
@@ -1460,7 +1478,7 @@ bool ReactNativeFeatureFlagsAccessor::useNestedScrollViewAndroid() {
|
||||
// be accessing the provider multiple times but the end state of this
|
||||
// instance and the returned flag value would be the same.
|
||||
|
||||
markFlagAsAccessed(79, "useNestedScrollViewAndroid");
|
||||
markFlagAsAccessed(80, "useNestedScrollViewAndroid");
|
||||
|
||||
flagValue = currentProvider_->useNestedScrollViewAndroid();
|
||||
useNestedScrollViewAndroid_ = flagValue;
|
||||
@@ -1478,7 +1496,7 @@ bool ReactNativeFeatureFlagsAccessor::useSharedAnimatedBackend() {
|
||||
// be accessing the provider multiple times but the end state of this
|
||||
// instance and the returned flag value would be the same.
|
||||
|
||||
markFlagAsAccessed(80, "useSharedAnimatedBackend");
|
||||
markFlagAsAccessed(81, "useSharedAnimatedBackend");
|
||||
|
||||
flagValue = currentProvider_->useSharedAnimatedBackend();
|
||||
useSharedAnimatedBackend_ = flagValue;
|
||||
@@ -1496,7 +1514,7 @@ bool ReactNativeFeatureFlagsAccessor::useTraitHiddenOnAndroid() {
|
||||
// be accessing the provider multiple times but the end state of this
|
||||
// instance and the returned flag value would be the same.
|
||||
|
||||
markFlagAsAccessed(81, "useTraitHiddenOnAndroid");
|
||||
markFlagAsAccessed(82, "useTraitHiddenOnAndroid");
|
||||
|
||||
flagValue = currentProvider_->useTraitHiddenOnAndroid();
|
||||
useTraitHiddenOnAndroid_ = flagValue;
|
||||
@@ -1514,7 +1532,7 @@ bool ReactNativeFeatureFlagsAccessor::useTurboModuleInterop() {
|
||||
// be accessing the provider multiple times but the end state of this
|
||||
// instance and the returned flag value would be the same.
|
||||
|
||||
markFlagAsAccessed(82, "useTurboModuleInterop");
|
||||
markFlagAsAccessed(83, "useTurboModuleInterop");
|
||||
|
||||
flagValue = currentProvider_->useTurboModuleInterop();
|
||||
useTurboModuleInterop_ = flagValue;
|
||||
@@ -1532,7 +1550,7 @@ bool ReactNativeFeatureFlagsAccessor::useTurboModules() {
|
||||
// be accessing the provider multiple times but the end state of this
|
||||
// instance and the returned flag value would be the same.
|
||||
|
||||
markFlagAsAccessed(83, "useTurboModules");
|
||||
markFlagAsAccessed(84, "useTurboModules");
|
||||
|
||||
flagValue = currentProvider_->useTurboModules();
|
||||
useTurboModules_ = flagValue;
|
||||
@@ -1550,7 +1568,7 @@ bool ReactNativeFeatureFlagsAccessor::useUnorderedMapInDifferentiator() {
|
||||
// be accessing the provider multiple times but the end state of this
|
||||
// instance and the returned flag value would be the same.
|
||||
|
||||
markFlagAsAccessed(84, "useUnorderedMapInDifferentiator");
|
||||
markFlagAsAccessed(85, "useUnorderedMapInDifferentiator");
|
||||
|
||||
flagValue = currentProvider_->useUnorderedMapInDifferentiator();
|
||||
useUnorderedMapInDifferentiator_ = flagValue;
|
||||
@@ -1568,7 +1586,7 @@ double ReactNativeFeatureFlagsAccessor::viewCullingOutsetRatio() {
|
||||
// be accessing the provider multiple times but the end state of this
|
||||
// instance and the returned flag value would be the same.
|
||||
|
||||
markFlagAsAccessed(85, "viewCullingOutsetRatio");
|
||||
markFlagAsAccessed(86, "viewCullingOutsetRatio");
|
||||
|
||||
flagValue = currentProvider_->viewCullingOutsetRatio();
|
||||
viewCullingOutsetRatio_ = flagValue;
|
||||
@@ -1586,7 +1604,7 @@ bool ReactNativeFeatureFlagsAccessor::viewTransitionEnabled() {
|
||||
// be accessing the provider multiple times but the end state of this
|
||||
// instance and the returned flag value would be the same.
|
||||
|
||||
markFlagAsAccessed(86, "viewTransitionEnabled");
|
||||
markFlagAsAccessed(87, "viewTransitionEnabled");
|
||||
|
||||
flagValue = currentProvider_->viewTransitionEnabled();
|
||||
viewTransitionEnabled_ = flagValue;
|
||||
@@ -1604,7 +1622,7 @@ double ReactNativeFeatureFlagsAccessor::virtualViewPrerenderRatio() {
|
||||
// be accessing the provider multiple times but the end state of this
|
||||
// instance and the returned flag value would be the same.
|
||||
|
||||
markFlagAsAccessed(87, "virtualViewPrerenderRatio");
|
||||
markFlagAsAccessed(88, "virtualViewPrerenderRatio");
|
||||
|
||||
flagValue = currentProvider_->virtualViewPrerenderRatio();
|
||||
virtualViewPrerenderRatio_ = flagValue;
|
||||
|
||||
+4
-2
@@ -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<<a9b1e5f247dd97781e895938674e6f9d>>
|
||||
* @generated SignedSource<<1f2d789f0d84636a86e3cc194411cf3d>>
|
||||
*/
|
||||
|
||||
/**
|
||||
@@ -94,6 +94,7 @@ class ReactNativeFeatureFlagsAccessor {
|
||||
bool fixTextClippingAndroid15useBoundsForWidth();
|
||||
bool fuseboxAssertSingleHostState();
|
||||
bool fuseboxEnabledRelease();
|
||||
bool fuseboxFrameRecordingEnabled();
|
||||
bool fuseboxNetworkInspectionEnabled();
|
||||
bool hideOffscreenVirtualViewsOnIOS();
|
||||
bool overrideBySynchronousMountPropsAtMountingAndroid();
|
||||
@@ -131,7 +132,7 @@ class ReactNativeFeatureFlagsAccessor {
|
||||
std::unique_ptr<ReactNativeFeatureFlagsProvider> currentProvider_;
|
||||
bool wasOverridden_;
|
||||
|
||||
std::array<std::atomic<const char*>, 88> accessedFeatureFlags_;
|
||||
std::array<std::atomic<const char*>, 89> accessedFeatureFlags_;
|
||||
|
||||
std::atomic<std::optional<bool>> commonTestFlag_;
|
||||
std::atomic<std::optional<bool>> cdpInteractionMetricsEnabled_;
|
||||
@@ -195,6 +196,7 @@ class ReactNativeFeatureFlagsAccessor {
|
||||
std::atomic<std::optional<bool>> fixTextClippingAndroid15useBoundsForWidth_;
|
||||
std::atomic<std::optional<bool>> fuseboxAssertSingleHostState_;
|
||||
std::atomic<std::optional<bool>> fuseboxEnabledRelease_;
|
||||
std::atomic<std::optional<bool>> fuseboxFrameRecordingEnabled_;
|
||||
std::atomic<std::optional<bool>> fuseboxNetworkInspectionEnabled_;
|
||||
std::atomic<std::optional<bool>> hideOffscreenVirtualViewsOnIOS_;
|
||||
std::atomic<std::optional<bool>> overrideBySynchronousMountPropsAtMountingAndroid_;
|
||||
|
||||
+5
-1
@@ -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<<f00cb61af4413b63f1556ebda3daf980>>
|
||||
* @generated SignedSource<<29c29b34ee3aefc5d904a1e26ed6f137>>
|
||||
*/
|
||||
|
||||
/**
|
||||
@@ -275,6 +275,10 @@ class ReactNativeFeatureFlagsDefaults : public ReactNativeFeatureFlagsProvider {
|
||||
return false;
|
||||
}
|
||||
|
||||
bool fuseboxFrameRecordingEnabled() override {
|
||||
return false;
|
||||
}
|
||||
|
||||
bool fuseboxNetworkInspectionEnabled() override {
|
||||
return true;
|
||||
}
|
||||
|
||||
+10
-1
@@ -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<<b7c23c68dd0a98e0fac632a0a49d2107>>
|
||||
* @generated SignedSource<<cbaba5f762ab27737ab468ff521c6685>>
|
||||
*/
|
||||
|
||||
/**
|
||||
@@ -603,6 +603,15 @@ class ReactNativeFeatureFlagsDynamicProvider : public ReactNativeFeatureFlagsDef
|
||||
return ReactNativeFeatureFlagsDefaults::fuseboxEnabledRelease();
|
||||
}
|
||||
|
||||
bool fuseboxFrameRecordingEnabled() override {
|
||||
auto value = values_["fuseboxFrameRecordingEnabled"];
|
||||
if (!value.isNull()) {
|
||||
return value.getBool();
|
||||
}
|
||||
|
||||
return ReactNativeFeatureFlagsDefaults::fuseboxFrameRecordingEnabled();
|
||||
}
|
||||
|
||||
bool fuseboxNetworkInspectionEnabled() override {
|
||||
auto value = values_["fuseboxNetworkInspectionEnabled"];
|
||||
if (!value.isNull()) {
|
||||
|
||||
+2
-1
@@ -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<<4fe7e087f4f531772fe08943888c24d8>>
|
||||
* @generated SignedSource<<bbe45a12ec0471479bd9763b59f1c3ca>>
|
||||
*/
|
||||
|
||||
/**
|
||||
@@ -87,6 +87,7 @@ class ReactNativeFeatureFlagsProvider {
|
||||
virtual bool fixTextClippingAndroid15useBoundsForWidth() = 0;
|
||||
virtual bool fuseboxAssertSingleHostState() = 0;
|
||||
virtual bool fuseboxEnabledRelease() = 0;
|
||||
virtual bool fuseboxFrameRecordingEnabled() = 0;
|
||||
virtual bool fuseboxNetworkInspectionEnabled() = 0;
|
||||
virtual bool hideOffscreenVirtualViewsOnIOS() = 0;
|
||||
virtual bool overrideBySynchronousMountPropsAtMountingAndroid() = 0;
|
||||
|
||||
+6
-1
@@ -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<<f2d9f3c9c479bbdadd033baaf619c3d3>>
|
||||
* @generated SignedSource<<ce2fa6a5b28f4a59c63f92556b22eb99>>
|
||||
*/
|
||||
|
||||
/**
|
||||
@@ -354,6 +354,11 @@ bool NativeReactNativeFeatureFlags::fuseboxEnabledRelease(
|
||||
return ReactNativeFeatureFlags::fuseboxEnabledRelease();
|
||||
}
|
||||
|
||||
bool NativeReactNativeFeatureFlags::fuseboxFrameRecordingEnabled(
|
||||
jsi::Runtime& /*runtime*/) {
|
||||
return ReactNativeFeatureFlags::fuseboxFrameRecordingEnabled();
|
||||
}
|
||||
|
||||
bool NativeReactNativeFeatureFlags::fuseboxNetworkInspectionEnabled(
|
||||
jsi::Runtime& /*runtime*/) {
|
||||
return ReactNativeFeatureFlags::fuseboxNetworkInspectionEnabled();
|
||||
|
||||
+3
-1
@@ -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<<4a51c6eacd3990f204dc88a9e0cac764>>
|
||||
* @generated SignedSource<<7db04fd2e9b9ea200fe1ef894ab33727>>
|
||||
*/
|
||||
|
||||
/**
|
||||
@@ -160,6 +160,8 @@ class NativeReactNativeFeatureFlags
|
||||
|
||||
bool fuseboxEnabledRelease(jsi::Runtime& runtime);
|
||||
|
||||
bool fuseboxFrameRecordingEnabled(jsi::Runtime& runtime);
|
||||
|
||||
bool fuseboxNetworkInspectionEnabled(jsi::Runtime& runtime);
|
||||
|
||||
bool hideOffscreenVirtualViewsOnIOS(jsi::Runtime& runtime);
|
||||
|
||||
@@ -709,6 +709,17 @@ const definitions: FeatureFlagDefinitions = {
|
||||
},
|
||||
ossReleaseStage: 'none',
|
||||
},
|
||||
fuseboxFrameRecordingEnabled: {
|
||||
defaultValue: false,
|
||||
metadata: {
|
||||
dateAdded: '2026-03-05',
|
||||
description:
|
||||
'Enable frame timings and screenshots support in the React Native DevTools CDP backend. This flag is global and should not be changed across React Host lifetimes.',
|
||||
expectedReleaseValue: true,
|
||||
purpose: 'experimentation',
|
||||
},
|
||||
ossReleaseStage: 'none',
|
||||
},
|
||||
fuseboxNetworkInspectionEnabled: {
|
||||
defaultValue: true,
|
||||
metadata: {
|
||||
|
||||
@@ -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<<faefb8736898315190c95d866c4c4ce9>>
|
||||
* @generated SignedSource<<44a2abb1927d4db27052329f6544fefc>>
|
||||
* @flow strict
|
||||
* @noformat
|
||||
*/
|
||||
@@ -110,6 +110,7 @@ export type ReactNativeFeatureFlags = $ReadOnly<{
|
||||
fixTextClippingAndroid15useBoundsForWidth: Getter<boolean>,
|
||||
fuseboxAssertSingleHostState: Getter<boolean>,
|
||||
fuseboxEnabledRelease: Getter<boolean>,
|
||||
fuseboxFrameRecordingEnabled: Getter<boolean>,
|
||||
fuseboxNetworkInspectionEnabled: Getter<boolean>,
|
||||
hideOffscreenVirtualViewsOnIOS: Getter<boolean>,
|
||||
overrideBySynchronousMountPropsAtMountingAndroid: Getter<boolean>,
|
||||
@@ -455,6 +456,10 @@ export const fuseboxAssertSingleHostState: Getter<boolean> = createNativeFlagGet
|
||||
* Flag determining if the React Native DevTools (Fusebox) CDP backend should be enabled in release builds. This flag is global and should not be changed across React Host lifetimes.
|
||||
*/
|
||||
export const fuseboxEnabledRelease: Getter<boolean> = createNativeFlagGetter('fuseboxEnabledRelease', false);
|
||||
/**
|
||||
* Enable frame timings and screenshots support in the React Native DevTools CDP backend. This flag is global and should not be changed across React Host lifetimes.
|
||||
*/
|
||||
export const fuseboxFrameRecordingEnabled: Getter<boolean> = createNativeFlagGetter('fuseboxFrameRecordingEnabled', false);
|
||||
/**
|
||||
* 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.
|
||||
*/
|
||||
|
||||
+2
-1
@@ -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<<174d4b001feed817ad74b441b6dae50d>>
|
||||
* @generated SignedSource<<58c114ad13dad3296a563952cc6365f8>>
|
||||
* @flow strict
|
||||
* @noformat
|
||||
*/
|
||||
@@ -87,6 +87,7 @@ export interface Spec extends TurboModule {
|
||||
+fixTextClippingAndroid15useBoundsForWidth?: () => boolean;
|
||||
+fuseboxAssertSingleHostState?: () => boolean;
|
||||
+fuseboxEnabledRelease?: () => boolean;
|
||||
+fuseboxFrameRecordingEnabled?: () => boolean;
|
||||
+fuseboxNetworkInspectionEnabled?: () => boolean;
|
||||
+hideOffscreenVirtualViewsOnIOS?: () => boolean;
|
||||
+overrideBySynchronousMountPropsAtMountingAndroid?: () => boolean;
|
||||
|
||||
Reference in new issue
Block a user