From 0293bb26fd761ad2dbd2467b1f0d01ac7075c130 Mon Sep 17 00:00:00 2001 From: wangchen Date: Thu, 1 Jun 2023 22:30:55 +0800 Subject: [PATCH] feat: add an interface to fuse the dylink interface Close #I78F4J Signed-off-by: wangchen --- frameworks/native/runtime/js_runtime.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/frameworks/native/runtime/js_runtime.cpp b/frameworks/native/runtime/js_runtime.cpp index 9ee02abcae..238a908f0d 100644 --- a/frameworks/native/runtime/js_runtime.cpp +++ b/frameworks/native/runtime/js_runtime.cpp @@ -23,6 +23,7 @@ #include #include #include +#include #include "accesstoken_kit.h" #include "constants.h" @@ -649,6 +650,10 @@ void JsRuntime::SetAppLibPath(const AppLibPathMap& appLibPaths, const bool& isSy for (const auto &appLibPath : appLibPaths) { moduleManager->SetAppLibPath(appLibPath.first, appLibPath.second, isSystemApp); } + + if (!isSystemApp) { + dlns_disable(); + } } void JsRuntime::InitSourceMap(const std::shared_ptr operatorObj)