Remove child_process from kaios-allocation, kaios-ram, uiqr

Summary:
Changelog: Remove child_process usage  from kaios-allocation, kaios-ram plugins
Facebok:
Remove child_process usage from uiqr plugin

Reviewed By: mweststrate

Differential Revision: D32881860

fbshipit-source-id: 4270aaf28808baee399e263a6a7528f20242784f
This commit is contained in:
Andrey Goncharov
2021-12-10 06:34:37 -08:00
committed by Facebook GitHub Bot
parent 9df3437683
commit a87b99cd3d
7 changed files with 9 additions and 16 deletions

View File

@@ -23,11 +23,11 @@ import {
import {sleep} from 'flipper';
import util from 'util';
import {exec} from 'promisify-child-process';
import FirefoxClient from 'firefox-client';
import BaseClientMethods from 'firefox-client/lib/client-methods';
import extend from 'firefox-client/lib/extend';
import {getFlipperLib} from 'flipper-plugin';
// This uses legacy `extend` from `firefox-client`, since this seems to be what the implementation expects
// It's probably possible to rewrite this in a modern way and properly type it, but for now leaving this as it is
@@ -262,7 +262,7 @@ export default class AllocationsPlugin extends FlipperDevicePlugin<
}
async init() {
await exec(
await getFlipperLib().removeNodeAPI.childProcess.exec(
'adb forward tcp:6000 localfilesystem:/data/local/debugger-socket',
);
await this.connectToDebugApi();

View File

@@ -30,8 +30,7 @@
"patch-package": "^6.2.0"
},
"dependencies": {
"firefox-client": "0.3.0",
"promisify-child-process": "^4.1.0"
"firefox-client": "0.3.0"
},
"resolutions": {
"minimist": "1.2.3"