move some JS modules to debug only

Reviewed By: lexs

Differential Revision: D3893217

fbshipit-source-id: d84aea3391fea435ea1de39f7ce8cf08586b373f
This commit is contained in:
Aaron Chiu 2016-09-22 11:24:11 -07:00 committed by Facebook Github Bot 2
parent 5c13eaccbd
commit bdc47313e8

View File

@ -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;