mirror of
https://github.com/openharmony/ability_ability_runtime.git
synced 2026-08-25 12:23:20 -04:00
@@ -2398,8 +2398,15 @@ void MainThread::HandleUpdatePluginInfoInstalled(const ApplicationInfo &pluginAp
|
||||
}
|
||||
}
|
||||
}
|
||||
if (IsPluginNamespaceInherited() && !pluginModuleNames.empty()) {
|
||||
AbilityRuntime::JsRuntime::InheritPluginNamespace(pluginModuleNames);
|
||||
if (!pluginModuleNames.empty()) {
|
||||
applicationInfo_->hasPlugin = true;
|
||||
application_->UpdateApplicationInfoInstalled(*applicationInfo_);
|
||||
AppLibPathMap appLibPaths {};
|
||||
GetPluginNativeLibPath(pluginBundleInfos, appLibPaths);
|
||||
AbilityRuntime::JsRuntime::SetAppLibPath(appLibPaths, applicationInfo_->isSystemApp);
|
||||
if (IsPluginNamespaceInherited()) {
|
||||
AbilityRuntime::JsRuntime::InheritPluginNamespace(pluginModuleNames);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3628,7 +3635,7 @@ bool MainThread::GetHqfFileAndHapPath(const std::string &bundleName,
|
||||
TAG_LOGE(AAFwkTag::APPKIT, "Get bundle info of %{public}s failed", bundleName.c_str());
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
for (auto hapInfo : bundleInfo.hapModuleInfos) {
|
||||
if (hapInfo.hqfInfo.hqfFilePath.empty()) {
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user