Rename RemoteNodeAPI tp RemoteServerContext

Reviewed By: mweststrate

Differential Revision: D32921160

fbshipit-source-id: 9d6b723427d7a819f2fc1b7168f6d1077dc56bd9
This commit is contained in:
Andrey Goncharov
2021-12-10 06:34:37 -08:00
committed by Facebook GitHub Bot
parent 0e785fb18d
commit 4cb80a452f
8 changed files with 18 additions and 18 deletions

View File

@@ -262,7 +262,7 @@ export default class AllocationsPlugin extends FlipperDevicePlugin<
}
async init() {
await getFlipperLib().removeNodeAPI.childProcess.exec(
await getFlipperLib().remoteServerContext.childProcess.exec(
'adb forward tcp:6000 localfilesystem:/data/local/debugger-socket',
);
await this.connectToDebugApi();

View File

@@ -81,7 +81,7 @@ export default class KaiOSGraphs extends FlipperDevicePlugin<State, any, any> {
async init() {
try {
await getFlipperLib().removeNodeAPI.childProcess.exec('adb root');
await getFlipperLib().remoteServerContext.childProcess.exec('adb root');
} catch (e) {
console.error('Error obtaining root on the device', e);
}

View File

@@ -33,7 +33,9 @@ const DEV_TOOLS_PORT = 8097; // hardcoded in RN
async function findGlobalDevTools(): Promise<string | undefined> {
try {
const {stdout: basePath} =
await getFlipperLib().removeNodeAPI.childProcess.exec('npm root -g');
await getFlipperLib().remoteServerContext.childProcess.exec(
'npm root -g',
);
const devToolsPath = path.join(
basePath.trim(),
'react-devtools',