feat: add an interface to fuse the dylink interface

Close #I78F4J

Signed-off-by: wangchen <wangchen240@huawei.com>
This commit is contained in:
wangchen
2023-06-01 22:30:55 +08:00
parent b7f3f34eef
commit 0293bb26fd
+5
View File
@@ -23,6 +23,7 @@
#include <atomic>
#include <sys/epoll.h>
#include <unistd.h>
#include <dlfcn.h>
#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<JsEnv::SourceMapOperator> operatorObj)