diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/devsupport/DefaultDevSupportManagerFactory.kt b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/devsupport/DefaultDevSupportManagerFactory.kt index 068b1204fc6af6..c8bbf44b7772fd 100644 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/devsupport/DefaultDevSupportManagerFactory.kt +++ b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/devsupport/DefaultDevSupportManagerFactory.kt @@ -9,6 +9,7 @@ package com.facebook.react.devsupport import android.content.Context import com.facebook.react.common.SurfaceDelegateFactory +import com.facebook.react.common.build.ReactBuildConfig import com.facebook.react.devsupport.interfaces.DevBundleDownloadListener import com.facebook.react.devsupport.interfaces.DevLoadingViewManager import com.facebook.react.devsupport.interfaces.DevSupportManager @@ -101,7 +102,11 @@ public class DefaultDevSupportManagerFactory : DevSupportManagerFactory { useDevSupport: Boolean ): DevSupportManager = if (!useDevSupport) { - ReleaseDevSupportManager() + if (ReactBuildConfig.UNSTABLE_ENABLE_FUSEBOX_RELEASE) { + PerftestDevSupportManager(applicationContext) + } else { + ReleaseDevSupportManager() + } } else { BridgelessDevSupportManager( applicationContext, diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/runtime/ReactHostImpl.java b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/runtime/ReactHostImpl.java index 3189d7199067e2..7f773b6164629b 100644 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/runtime/ReactHostImpl.java +++ b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/runtime/ReactHostImpl.java @@ -194,7 +194,7 @@ public ReactHostImpl( mUIExecutor = uiExecutor; mMemoryPressureRouter = new MemoryPressureRouter(context); mAllowPackagerServerAccess = allowPackagerServerAccess; - mUseDevSupport = useDevSupport || ReactBuildConfig.UNSTABLE_ENABLE_FUSEBOX_RELEASE; + mUseDevSupport = useDevSupport; if (devSupportManagerFactory == null) { devSupportManagerFactory = new DefaultDevSupportManagerFactory(); } diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/runtime/ReactInstance.java b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/runtime/ReactInstance.java index 2edfe157f03329..9e028e25c3980d 100644 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/runtime/ReactInstance.java +++ b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/runtime/ReactInstance.java @@ -130,9 +130,7 @@ final class ReactInstance { mQueueConfiguration.getNativeModulesQueueThread(); ReactChoreographer.initialize(AndroidChoreographerProvider.getInstance()); - if (useDevSupport) { - devSupportManager.startInspector(); - } + devSupportManager.startInspector(); JSTimerExecutor jsTimerExecutor = createJSTimerExecutor(); mJavaTimerManager =