mirror of
https://github.com/openharmony/ability_ability_runtime.git
synced 2026-08-24 12:43:16 -04:00
完成在taskpool中调用canIUse需求
Signed-off-by: liutuantuan <liutuantuan1@huawei.com>
This commit is contained in:
@@ -43,6 +43,7 @@
|
||||
#include "js_runtime_utils.h"
|
||||
#include "native_engine/impl/ark/ark_native_engine.h"
|
||||
#include "commonlibrary/ets_utils/js_sys_module/console/console.h"
|
||||
#include "syscap_ts.h"
|
||||
#ifdef SUPPORT_SCREEN
|
||||
using OHOS::Ace::ContainerScope;
|
||||
#endif
|
||||
@@ -88,6 +89,7 @@ void InitWorkerFunc(NativeEngine* nativeEngine)
|
||||
}
|
||||
|
||||
OHOS::JsSysModule::Console::InitConsoleModule(reinterpret_cast<napi_env>(nativeEngine));
|
||||
InitSyscapModule(reinterpret_cast<napi_env>(nativeEngine), globalObj);
|
||||
#ifdef SUPPORT_SCREEN
|
||||
OHOS::Ace::DeclarativeModulePreloader::PreloadWorker(*nativeEngine);
|
||||
#endif
|
||||
|
||||
@@ -116,6 +116,7 @@ ohos_shared_library("runtime") {
|
||||
"resource_management:global_resmgr",
|
||||
"samgr:samgr_proxy",
|
||||
"zlib:shared_libz",
|
||||
"init:syscap_ts",
|
||||
]
|
||||
|
||||
if (cj_frontend) {
|
||||
|
||||
Reference in New Issue
Block a user