Skip to content

Commit

Permalink
Remove DevSplitBundleLoader
Browse files Browse the repository at this point in the history
Summary:
Changelog: [General][Removed] Remove internal DevSplitBundleLoader native module

`DevSplitBundleLoader` was part of an experimental bundling strategy that offloaded Hermes bytecode compilation to the packager server. The React Native parts of this experiment were never part of the public API, and the Metro parts never fully shipped in open source.

As part of implementing the simpler and more general [lazy bundling RFC](react-native-community/discussions-and-proposals#605), we are removing `DevSplitBundleLoader` and associated code from React Native's internals.

Reviewed By: robhogan

Differential Revision: D43597007

fbshipit-source-id: 1460e9045cd7a0f5ef43144b10afb932172e223c
  • Loading branch information
motiz88 authored and facebook-github-bot committed Mar 21, 2023
1 parent fdb2af5 commit 6dcdb93
Show file tree
Hide file tree
Showing 10 changed files with 0 additions and 224 deletions.

This file was deleted.

3 changes: 0 additions & 3 deletions packages/react-native/React/CoreModules/BUCK
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,6 @@ rn_apple_library(
) + react_module_plugin_providers(
name = "DevLoadingView",
native_class_func = "RCTDevLoadingViewCls",
) + react_module_plugin_providers(
name = "DevSplitBundleLoader",
native_class_func = "RCTDevSplitBundleLoaderCls",
) + react_module_plugin_providers(
name = "EventDispatcher",
native_class_func = "RCTEventDispatcherCls",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ Class RCTLogBoxCls(void) __attribute__((used));
Class RCTWebSocketExecutorCls(void) __attribute__((used));
Class RCTWebSocketModuleCls(void) __attribute__((used));
Class RCTDevLoadingViewCls(void) __attribute__((used));
Class RCTDevSplitBundleLoaderCls(void) __attribute__((used));
Class RCTEventDispatcherCls(void) __attribute__((used));
Class RCTBlobManagerCls(void) __attribute__((used));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ Class RCTCoreModulesClassProvider(const char *name) {
{"WebSocketExecutor", RCTWebSocketExecutorCls},
{"WebSocketModule", RCTWebSocketModuleCls},
{"DevLoadingView", RCTDevLoadingViewCls},
{"DevSplitBundleLoader", RCTDevSplitBundleLoaderCls},
{"EventDispatcher", RCTEventDispatcherCls},
{"BlobModule", RCTBlobManagerCls},
};
Expand Down
13 changes: 0 additions & 13 deletions packages/react-native/React/CoreModules/RCTDevSplitBundleLoader.h

This file was deleted.

108 changes: 0 additions & 108 deletions packages/react-native/React/CoreModules/RCTDevSplitBundleLoader.mm

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ rn_android_library(
react_native_target("java/com/facebook/react/module/model:model"),
react_native_target("java/com/facebook/react/modules/appearance:appearance"),
react_native_target("java/com/facebook/react/modules/appregistry:appregistry"),
react_native_target("java/com/facebook/react/modules/bundleloader:bundleloader"),
react_native_target("java/com/facebook/react/modules/debug:debug"),
react_native_target("java/com/facebook/react/modules/debug:interfaces"),
react_native_target("java/com/facebook/react/modules/deviceinfo:deviceinfo"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
import com.facebook.react.module.annotations.ReactModuleList;
import com.facebook.react.module.model.ReactModuleInfo;
import com.facebook.react.module.model.ReactModuleInfoProvider;
import com.facebook.react.modules.bundleloader.NativeDevSplitBundleLoaderModule;
import com.facebook.react.modules.core.DefaultHardwareBackBtnHandler;
import com.facebook.react.modules.core.DeviceEventManagerModule;
import com.facebook.react.modules.core.ExceptionsManagerModule;
Expand Down Expand Up @@ -57,7 +56,6 @@
SourceCodeModule.class,
TimingModule.class,
UIManagerModule.class,
NativeDevSplitBundleLoaderModule.class,
})
public class CoreModulesPackage extends TurboReactPackage implements ReactPackageLogger {

Expand Down Expand Up @@ -103,7 +101,6 @@ public ReactModuleInfoProvider getReactModuleInfoProvider() {
SourceCodeModule.class,
TimingModule.class,
UIManagerModule.class,
NativeDevSplitBundleLoaderModule.class,
};

final Map<String, ReactModuleInfo> reactModuleInfoMap = new HashMap<>();
Expand Down Expand Up @@ -160,9 +157,6 @@ public NativeModule getModule(String name, ReactApplicationContext reactContext)
return createUIManager(reactContext);
case DeviceInfoModule.NAME:
return new DeviceInfoModule(reactContext);
case NativeDevSplitBundleLoaderModule.NAME:
return new NativeDevSplitBundleLoaderModule(
reactContext, mReactInstanceManager.getDevSupportManager());
default:
throw new IllegalArgumentException(
"In CoreModulesPackage, could not find Native module for " + name);
Expand Down

This file was deleted.

This file was deleted.

0 comments on commit 6dcdb93

Please sign in to comment.