mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Summary: Yesterday we shipped hermesengine.dev as part of the current 0.60 release. This PR brings those changes to master. ## Changelog [General] [Added] - Added support for Hermes Pull Request resolved: https://github.com/facebook/react-native/pull/25613 Test Plan: * CI is green both on GitHub and at FB * Creating a new app from source can use Hermes on Android Reviewed By: cpojer Differential Revision: D16221777 Pulled By: willholen fbshipit-source-id: aa6be10537863039cb666292465ba2e1d44b64ef
34 lines
687 B
C++
34 lines
687 B
C++
// Copyright 2004-present Facebook. All Rights Reserved.
|
|
|
|
#include "Registration.h"
|
|
#include "ConnectionDemux.h"
|
|
|
|
namespace facebook {
|
|
namespace hermes {
|
|
namespace inspector {
|
|
namespace chrome {
|
|
|
|
namespace {
|
|
|
|
ConnectionDemux &demux() {
|
|
static ConnectionDemux instance{facebook::react::getInspectorInstance()};
|
|
return instance;
|
|
}
|
|
|
|
} // namespace
|
|
|
|
void enableDebugging(
|
|
std::unique_ptr<RuntimeAdapter> adapter,
|
|
const std::string &title) {
|
|
demux().enableDebugging(std::move(adapter), title);
|
|
}
|
|
|
|
void disableDebugging(HermesRuntime &runtime) {
|
|
demux().disableDebugging(runtime);
|
|
}
|
|
|
|
} // namespace chrome
|
|
} // namespace inspector
|
|
} // namespace hermes
|
|
} // namespace facebook
|