mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-03-30 17:33:21 +08:00
move some JS modules to debug only
Reviewed By: lexs Differential Revision: D3893217 fbshipit-source-id: d84aea3391fea435ea1de39f7ce8cf08586b373f
This commit is contained in:
committed by
Facebook Github Bot 2
parent
5c13eaccbd
commit
bdc47313e8
@@ -168,13 +168,13 @@ import static com.facebook.react.bridge.ReactMarkerConstants.CREATE_UI_MANAGER_M
|
||||
RCTEventEmitter.class,
|
||||
RCTNativeAppEventEmitter.class,
|
||||
AppRegistry.class,
|
||||
com.facebook.react.bridge.Systrace.class,
|
||||
HMRClient.class,
|
||||
JSCSamplingProfiler.SamplingProfiler.class,
|
||||
DebugComponentOwnershipModule.RCTDebugComponentOwnership.class));
|
||||
com.facebook.react.bridge.Systrace.class));
|
||||
|
||||
if (ReactBuildConfig.DEBUG) {
|
||||
jsModules.add(DebugComponentOwnershipModule.RCTDebugComponentOwnership.class);
|
||||
jsModules.add(HMRClient.class);
|
||||
jsModules.add(JSCHeapCapture.HeapCapture.class);
|
||||
jsModules.add(JSCSamplingProfiler.SamplingProfiler.class);
|
||||
}
|
||||
|
||||
return jsModules;
|
||||
|
||||
Reference in New Issue
Block a user