[Service] Support webapis.getAppIdsByMetadata() 16/274416/3 submit/tizen/20220428.160021
authorDongHyun Song <dh81.song@samsung.com>
Thu, 28 Apr 2022 04:49:53 +0000 (13:49 +0900)
committerSangYong Park <sy302.park@samsung.com>
Thu, 28 Apr 2022 06:12:28 +0000 (06:12 +0000)
This new API will be used to find proper apps quickly more than
tizen.application.getAppsInfo()

Related patch:
https://review.tizen.org/gerrit/#/c/platform/framework/web/chromium-efl/+/274342/

Change-Id: Ibe8c2a279943cc85570f057e38721aa5d4b95729
Signed-off-by: DongHyun Song <dh81.song@samsung.com>
wrt_app/service/device_api_router.ts

index 40c33d7..cde4134 100644 (file)
@@ -73,7 +73,11 @@ export class DeviceAPIRouter {
       else if (wrt.da) return 'DA';
       else return 'common';
     }
+    global.webapis.getAppIdsByMetadata = (metadata: string) => {
+      return wrt.getAppIdsByMetadata(metadata);
+    }
     Object.defineProperties(global.webapis, {
+      getAppIdsByMetadata: { writable: false, enumerable: true },
       getCallerAppId: { writable: false, enumerable: true },
       getPackageId: { writable: false, enumerable: true },
       getServiceId: { writable: false, enumerable: true },