Retire historical app source descriptors

This commit is contained in:
liu weikai
2026-06-13 14:05:38 +08:00
parent a767eab168
commit 88a5bb0ccd
39 changed files with 165 additions and 465 deletions
@@ -40,17 +40,12 @@ const char* LinuxSimAppShell::activeUxPackId() const
bool LinuxSimAppShell::validate() const
{
const auto& historical_source = linuxSimHistoricalSourceDescriptor();
return config_.target_id != nullptr &&
targetProfile() != nullptr &&
product_composition::findTargetUxBinding(targetId()) != nullptr &&
config_.ux_pack_id != nullptr &&
std::strcmp(config_.ux_pack_id, activeUxPackId()) == 0 &&
ui_lvgl_ux::findUxPackById(activeUxPackId()) != nullptr &&
config_.historical_source != nullptr &&
historical_source.historical_root_name != nullptr &&
historical_source.historical_role != nullptr &&
historical_source.replacement_owner != nullptr;
ui_lvgl_ux::findUxPackById(activeUxPackId()) != nullptr;
}
} // namespace linux_sim_shell