From: Lukasz Wysocki Date: Fri, 23 Oct 2015 07:42:09 +0000 (+0200) Subject: Added attribute launch_mode in generated xml. X-Git-Tag: accepted/tizen/mobile/20151029.231518~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F29%2F50029%2F4;p=platform%2Fcore%2Fappfw%2Fapp-installers.git Added attribute launch_mode in generated xml. This change was made for tpk and wgt installers. Change-Id: I1d937f51dcdb95103af71ec7eaa72be7b9c803e3 --- diff --git a/src/common/step/step_generate_xml.cc b/src/common/step/step_generate_xml.cc index 53f36a2..b1db323 100755 --- a/src/common/step/step_generate_xml.cc +++ b/src/common/step/step_generate_xml.cc @@ -33,6 +33,9 @@ void WriteUIApplicationAttributes( if (app->nodisplay) xmlTextWriterWriteAttribute(writer, BAD_CAST "nodisplay", BAD_CAST app->nodisplay); + if (app->launch_mode) + xmlTextWriterWriteAttribute(writer, BAD_CAST "launch_mode", + BAD_CAST app->launch_mode); } void WriteServiceApplicationAttributes( diff --git a/src/tpk/step/step_parse.cc b/src/tpk/step/step_parse.cc index be08f03..5058dda 100644 --- a/src/tpk/step/step_parse.cc +++ b/src/tpk/step/step_parse.cc @@ -422,10 +422,20 @@ common_installer::Step::Status StepParse::process() { if (perm_info) privileges = perm_info->GetPrivileges(); + std::shared_ptr ui_application_list = + std::static_pointer_cast( + parser_->GetManifestData(app_keys::kUIApplicationKey)); + LOG(DEBUG) << " Read data -[ "; LOG(DEBUG) << "App package: " << info->package(); LOG(DEBUG) << " aplication version = " << info->version(); LOG(DEBUG) << " api_version = " << info->api_version(); + LOG(DEBUG) << " launch_modes -["; + for (const auto& application : ui_application_list->items) { + LOG(DEBUG) << " launch_mode[" << application.ui_info.appid() << "] = " + << application.ui_info.launch_mode(); + } + LOG(DEBUG) << " ]-"; LOG(DEBUG) << " privileges -["; for (const auto& p : privileges) { LOG(DEBUG) << " " << p; diff --git a/src/wgt/step/step_parse.cc b/src/wgt/step/step_parse.cc index baaef18..e0bfe2c 100755 --- a/src/wgt/step/step_parse.cc +++ b/src/wgt/step/step_parse.cc @@ -457,6 +457,7 @@ common_installer::Step::Status StepParse::process() { LOG(DEBUG) << " short_name = " << short_name; LOG(DEBUG) << " aplication version = " << package_version; LOG(DEBUG) << " api_version = " << info->required_version(); + LOG(DEBUG) << " launch_mode = " << info->launch_mode(); LOG(DEBUG) << " privileges -["; for (const auto& p : permissions) { LOG(DEBUG) << " " << p;