From cb6609d8d332a8cc7ab20bd772b56c02362a64f4 Mon Sep 17 00:00:00 2001 From: Chunling Ye Date: Tue, 4 Aug 2020 15:41:28 +0800 Subject: [PATCH] [Service]Add more xwalk extensions for service app 1.add xwalk extensions: exif/content/download/account/iotcon 2.fix window not defined error for exif extension Change-Id: I5c53c8d4bbc0fc0267e05c14b50731f628024732 Signed-off-by: Chunling Ye --- packaging/plugins.json | 26 ++++++++++++++++++++++++++ wrt_app/common/wrt_xwalk_extension.ts | 1 + 2 files changed, 27 insertions(+) diff --git a/packaging/plugins.json b/packaging/plugins.json index ba82e28..26d4f0a 100644 --- a/packaging/plugins.json +++ b/packaging/plugins.json @@ -48,5 +48,31 @@ "name":"tizen.alarm", "lib":"/usr/lib/tizen-extensions-crosswalk/libtizen_alarm.so", "entry_points": ["tizen.AlarmRelative","tizen.AlarmAbsolute"] + }, + { + "name":"tizen.exif", + "lib":"/usr/lib/tizen-extensions-crosswalk/libtizen_exif.so", + "entry_points": ["tizen.ExifInformation"] + }, + { + "name":"tizen.content", + "lib":"/usr/lib/tizen-extensions-crosswalk/libtizen_content.so", + "entry_points": [] + }, + { + "name":"tizen.download", + "lib":"/usr/lib/tizen-extensions-crosswalk/libtizen_download.so", + "entry_points": ["tizen.DownloadRequest"] + }, + { + "name":"tizen.account", + "lib":"/usr/lib/tizen-extensions-crosswalk/libtizen_account.so", + "entry_points": ["tizen.Account"] + }, + { + "name":"tizen.iotcon", + "lib":"/usr/lib/tizen-extensions-crosswalk/libtizen_iotcon.so", + "entry_points": ["tizen.IotconOption","tizen.Query","tizen.QueryFilter", + "tizen.Representation","tizen.Response","tizen.State"] } ] diff --git a/wrt_app/common/wrt_xwalk_extension.ts b/wrt_app/common/wrt_xwalk_extension.ts index feffcdd..461e7dd 100644 --- a/wrt_app/common/wrt_xwalk_extension.ts +++ b/wrt_app/common/wrt_xwalk_extension.ts @@ -23,6 +23,7 @@ interface NativeXWalkExtension extends NativeWRTjs.XWalkExtension { let instance: XWalkExtension | undefined; let api_: { [key: string]: any } = {}; let extensions_: { [key: string]: NativeXWalkExtension } = {}; +global.window = global.window ?? global; class XWalkExtension { constructor() { -- 2.7.4