From 3b05de4cf0d609e050aa961f32458dd93cd163df Mon Sep 17 00:00:00 2001 From: Youngsoo Choi Date: Mon, 30 Nov 2020 22:24:21 -0800 Subject: [PATCH] Revert "[Service] Add edge orchestration interface" This reverts commit d55cc7de0b1ddb97a0eb533558fd51edb382763f. The edge interface is not ready yet on M85 chromium-efl. Change-Id: I1dfd008b4e6ebb4594aa7791ee2c5a58e43589a6 Signed-off-by: Youngsoo Choi --- wrt_app/service/device_api_router.ts | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/wrt_app/service/device_api_router.ts b/wrt_app/service/device_api_router.ts index a7e3563..7cb70cb 100644 --- a/wrt_app/service/device_api_router.ts +++ b/wrt_app/service/device_api_router.ts @@ -52,34 +52,9 @@ export class DeviceAPIRouter { global.webapis.getPackageId = () => { return this.packageId; } - this.initEdgeWebapis(); this.initProductWebapis(); } - initEdgeWebapis() { - if (wrt['edge'] && !global.webapis.edge) { - let edge = wrt.edge as NativeWRTjs.EdgeExtension; - global.webapis.edge = { - orchestrationGetDevicelist: (service_name: string, exec_type: string) => { - return edge.orchestrationGetDevicelist(service_name, exec_type); - }, - orchestrationReadCapability: (ip: string) => { - return edge.orchestrationReadCapability(ip); - }, - orchestrationRequestService: (app_name: string, self_select: boolean, exec_type: string, exec_parameter: string) => { - return edge.orchestrationRequestService(app_name, self_select, exec_type, exec_parameter); - }, - orchestrationRequestServiceOnDevice: (app_name: string, self_select: boolean, exec_type: string, exec_parameter: string, ip: string) => { - return edge.orchestrationRequestServiceOnDevice(app_name, self_select, exec_type, exec_parameter, ip); - }, - orchestrationWriteCapability: (json: string) => { - return edge.orchestrationWriteCapability(json); - }, - } - Object.defineProperty(global.webapis, 'edge', { writable: false, enumerable: true }); - } - } - initProductWebapis() { // for TV profile if (wrt.tv && !global.webapis.productinfo) { -- 2.7.4