mirror of
https://gitee.com/openharmony/arkui_ace_engine
synced 2024-12-03 13:06:04 +00:00
adapt ark napi
Change-Id: Ie75db3462042ead5b7785e2f7422a2372e80c734 Signed-off-by: songcongyi <songcongyi1@huawei.com>
This commit is contained in:
parent
e840a25b79
commit
3e4b1bba9f
@ -2788,6 +2788,10 @@ bool JsiEngine::Initialize(const RefPtr<FrontendDelegate>& delegate)
|
||||
}
|
||||
nativeEngine_ = new ArkNativeEngine(const_cast<EcmaVM*>(vm), static_cast<void*>(this));
|
||||
ACE_DCHECK(delegate);
|
||||
if (delegate && delegate->GetAssetManager()) {
|
||||
std::string packagePath = delegate->GetAssetManager()->GetPackagePath();
|
||||
nativeEngine_->SetPackagePath(packagePath);
|
||||
}
|
||||
delegate->AddTaskObserver([nativeEngine = nativeEngine_]() {
|
||||
nativeEngine->Loop(LOOP_NOWAIT);
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user