From 94eba3b2fbd7843844b542196fe9a58eefeff9b9 Mon Sep 17 00:00:00 2001 From: z30034863 Date: Mon, 14 Jul 2025 20:50:00 +0800 Subject: [PATCH] feature SetAppAbcLibPath 2 Signed-off-by: z30034863 --- frameworks/native/appkit/app/main_thread.cpp | 2 +- frameworks/native/runtime/ets_runtime.cpp | 2 +- interfaces/inner_api/runtime/include/ets_runtime.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/frameworks/native/appkit/app/main_thread.cpp b/frameworks/native/appkit/app/main_thread.cpp index 01a08e7b576..a62c214a321 100644 --- a/frameworks/native/appkit/app/main_thread.cpp +++ b/frameworks/native/appkit/app/main_thread.cpp @@ -1646,7 +1646,7 @@ void MainThread::HandleLaunchApplication(const AppLaunchData &appLaunchData, con } else { #endif if (IsEtsAPP(appInfo)) { - AbilityRuntime::ETSRuntime::SetAppLibPath(appLibPaths); + AbilityRuntime::ETSRuntime::SetAppLibPath(appLibPaths, appAbcLibPaths); } else { AbilityRuntime::JsRuntime::SetAppLibPath(appLibPaths, isSystemApp); } diff --git a/frameworks/native/runtime/ets_runtime.cpp b/frameworks/native/runtime/ets_runtime.cpp index cbc2a3854c8..8f63bc54e8f 100644 --- a/frameworks/native/runtime/ets_runtime.cpp +++ b/frameworks/native/runtime/ets_runtime.cpp @@ -232,7 +232,7 @@ std::unique_ptr ETSRuntime::Create(const Options &options, std::uniq return instance; } -void ETSRuntime::SetAppLibPath(const AppLibPathMap &appLibPaths) +void ETSRuntime::SetAppLibPath(const AppLibPathMap &appLibPaths, const AppLibPathMap& appAbcLibPaths) { TAG_LOGD(AAFwkTag::ETSRUNTIME, "SetAppLibPath called"); if (!RegisterETSEnvFuncs()) { diff --git a/interfaces/inner_api/runtime/include/ets_runtime.h b/interfaces/inner_api/runtime/include/ets_runtime.h index 2b332eee8a3..e478e54768d 100644 --- a/interfaces/inner_api/runtime/include/ets_runtime.h +++ b/interfaces/inner_api/runtime/include/ets_runtime.h @@ -46,7 +46,7 @@ namespace AbilityRuntime { class ETSRuntime : public Runtime { public: static std::unique_ptr Create(const Options &options, std::unique_ptr &jsRuntime); - static void SetAppLibPath(const AppLibPathMap &appLibPaths); + static void SetAppLibPath(const AppLibPathMap &appLibPaths, const AppLibPathMap& appAbcLibPaths); ~ETSRuntime() override; Language GetLanguage() const override { -- Gitee