xmlTextWriterEndElement(writer);
}
+ for (const char* profile :
+ GListRange<char*>(context_->manifest_data.get()->deviceprofile)) {
+ xmlTextWriterStartElement(writer, BAD_CAST "profile");
+ xmlTextWriterWriteAttribute(writer, BAD_CAST "name",
+ BAD_CAST profile);
+ xmlTextWriterEndElement(writer);
+ }
+
const auto& shortcuts =
context_->manifest_plugins_data.get().shortcut_info.get();
if (!shortcuts.empty()) {
#include <tpk_manifest_handlers/description_handler.h>
#include <tpk_manifest_handlers/package_handler.h>
#include <tpk_manifest_handlers/privileges_handler.h>
+#include <tpk_manifest_handlers/profile_handler.h>
#include <tpk_manifest_handlers/service_application_handler.h>
#include <tpk_manifest_handlers/shortcut_handler.h>
#include <tpk_manifest_handlers/ui_application_handler.h>
manifest->installlocation = strdup(app_info->install_location().c_str());
manifest->api_version = strdup(app_info->api_version().c_str());
+ std::shared_ptr<const ProfileInfo> profile_info =
+ std::static_pointer_cast<const ProfileInfo>(
+ parser_->GetManifestData(ProfileInfo::Key()));
+ if (profile_info) {
+ for (auto& profile : profile_info->profiles()) {
+ manifest->deviceprofile = g_list_append(manifest->deviceprofile,
+ strdup(profile.c_str()));
+ }
+ }
+
if (ui_application_list) {
manifest->mainapp_id =
strdup(ui_application_list->items[0].ui_info.appid().c_str());