Load installed server add-ons

Reviewed By: nikoant

Differential Revision: D34300475

fbshipit-source-id: 6bb6c0ab811e28806a0924b3487931bdb0dd2c59
This commit is contained in:
Andrey Goncharov
2022-02-28 03:50:34 -08:00
committed by Facebook GitHub Bot
parent b4b9c0ab28
commit 8b94186783
7 changed files with 62 additions and 22 deletions

View File

@@ -45,8 +45,13 @@ export const createServerAddOnControls = (
};
return {
start: (pluginName, owner) =>
flipperServer.exec('plugins-server-add-on-start', pluginName, owner),
start: (pluginName, details, owner) =>
flipperServer.exec(
'plugins-server-add-on-start',
pluginName,
details,
owner,
),
stop: (pluginName, owner) =>
flipperServer.exec('plugins-server-add-on-stop', pluginName, owner),
sendMessage: async (pluginName, method, params) => {