Added attribute launch_mode in generated xml. 29/50029/4
authorLukasz Wysocki <l.wysocki@samsung.com>
Fri, 23 Oct 2015 07:42:09 +0000 (09:42 +0200)
committerPawel Sikorski <p.sikorski@samsung.com>
Tue, 27 Oct 2015 16:05:54 +0000 (17:05 +0100)
This change was made for tpk and wgt installers.

Change-Id: I1d937f51dcdb95103af71ec7eaa72be7b9c803e3

src/common/step/step_generate_xml.cc
src/tpk/step/step_parse.cc
src/wgt/step/step_parse.cc

index 53f36a2..b1db323 100755 (executable)
@@ -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(
index be08f03..5058dda 100644 (file)
@@ -422,10 +422,20 @@ common_installer::Step::Status StepParse::process() {
   if (perm_info)
     privileges = perm_info->GetPrivileges();
 
+  std::shared_ptr<const UIApplicationInfoList> ui_application_list =
+      std::static_pointer_cast<const UIApplicationInfoList>(
+          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;
index baaef18..e0bfe2c 100755 (executable)
@@ -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;