namespace {
constexpr const char REQUIRED_API_VERSION[] = "7";
-constexpr const char REQUIRED_DOTNET_API_VERSION[] = "10";
std::string GetName(xmlNode* node) {
if (node == nullptr)
if (ret != PMINFO_R_OK)
return false;
- const char* required_api_version;
- if (strstr(apptype, "dotnet") != nullptr)
- required_api_version = REQUIRED_DOTNET_API_VERSION;
- else
- required_api_version = REQUIRED_API_VERSION;
-
- if (strverscmp(required_api_version, api_version) <= 0)
+ if (strverscmp(REQUIRED_API_VERSION, api_version) <= 0)
return true;
return false;
if (appid.empty())
continue;
- std::string onboot = GetAttribute(node, "on-boot");
- if (onboot != "true")
- continue;
-
std::string comp_type = GetName(node);
- if (comp_type == "ui-application") {
- if (!IsSupported(appid, GetTargetUid()))
- continue;
- }
+ if (comp_type == "widget-application" || comp_type == "watch-application")
+ continue;
- auto app_info = new (std::nothrow) AppInfo(appid);
- if (app_info == nullptr) {
- _E("Out of memory");
- return -1;
- }
+ if (!IsSupported(appid, GetTargetUid())) continue;
+ AppInfo* app_info = nullptr;
for (xmlNode* child_node = node->children; child_node;
child_node = child_node->next) {
std::string name = GetName(child_node);
if (name != "boot-sequence")
continue;
+ app_info = new (std::nothrow) AppInfo(appid);
+ if (app_info == nullptr) {
+ _E("Out of memory");
+ return -1;
+ }
+
ParseBootSequence(child_node, app_info);
+ break;
}
+ if (app_info == nullptr) continue;
args_->Push(std::shared_ptr<AppInfo>(app_info));
}