mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-02-11 22:32:38 +08:00
Don't use the Bridge from CatalystInstance.
Summary: getBridge() is annotated VisibleForTesting, but still used in DevSupportManager. Instead, add the necessary methods to the CatalystInstance interface. public Reviewed By: astreet Differential Revision: D2651265 fb-gh-sync-id: 395893a961c32843871de4451eeccb33135b7ede
This commit is contained in:
committed by
facebook-github-bot-6
parent
5b6b5a64d1
commit
c8f3b43984
@@ -306,6 +306,27 @@ public class CatalystInstance {
|
||||
mBridgeIdleListeners.remove(listener);
|
||||
}
|
||||
|
||||
public boolean supportsProfiling() {
|
||||
if (mBridge == null) {
|
||||
return false;
|
||||
}
|
||||
return mBridge.supportsProfiling();
|
||||
}
|
||||
|
||||
public void startProfiler(String title) {
|
||||
if (mBridge == null) {
|
||||
return;
|
||||
}
|
||||
mBridge.startProfiler(title);
|
||||
}
|
||||
|
||||
public void stopProfiler(String title, String filename) {
|
||||
if (mBridge == null) {
|
||||
return;
|
||||
}
|
||||
mBridge.stopProfiler(title, filename);
|
||||
}
|
||||
|
||||
private String buildModulesConfigJSONProperty(
|
||||
NativeModuleRegistry nativeModuleRegistry,
|
||||
JavaScriptModulesConfig jsModulesConfig) {
|
||||
|
||||
Reference in New Issue
Block a user