}
bool StepParse::FillApplicationInfo(manifest_x* manifest) {
- std::string api_version;
std::shared_ptr<const TizenApplicationInfo> app_info =
std::static_pointer_cast<const TizenApplicationInfo>(
parser_->GetManifestData(app_keys::kTizenApplicationKey));
manifest->uiapplication->icon =
reinterpret_cast<icon_x*> (calloc(1, sizeof(icon_x)));
- api_version = app_info->required_version();
manifest->uiapplication->appid = strdup(app_info->id().c_str());
manifest->uiapplication->type = strdup("webapp");
if (short_name_set.begin() != short_name_set.end())
short_name = short_name_set.begin()->second;
- const std::string& tizen_version = wgt_info->version();
+ const std::string& package_version = wgt_info->version();
const std::string& required_api_version = info->required_version();
context_->config_data.get().required_api_version.set(required_api_version);
- context_->config_data.get().required_tizen_version.set(tizen_version);
context_->pkgid.set(std::string(manifest->package));
std::shared_ptr<const PermissionsInfo> perm_info =
LOG(DEBUG) << " id = " << info->id();
LOG(DEBUG) << " name = " << name;
LOG(DEBUG) << " short_name = " << short_name;
- LOG(DEBUG) << " tizen_version = " << tizen_version;
+ LOG(DEBUG) << " aplication version = " << package_version;
LOG(DEBUG) << " icon = " << manifest->uiapplication->icon->name;
LOG(DEBUG) << " api_version = " << info->required_version();
LOG(DEBUG) << " privileges -[";
namespace copy_storage {
common_installer::Step::Status StepWgtCopyStorageDirectories::process() {
- int rel_version =
- context_->config_data.get().required_tizen_version.get().at(0) - '0';
- if (rel_version < 3) {
+ int version =
+ context_->config_data.get().required_api_version.get().at(0) - '0';
+ if (version < 3) {
LOG(DEBUG) << "Shared directory coping for tizen 2.x";
return StepCopyStorageDirectories::process();
}
}
common_installer::Step::Status StepWgtCopyStorageDirectories::undo() {
- int rel_version =
- context_->config_data.get().required_tizen_version.get().at(0) - '0';
- if (rel_version < 3) {
+ int version =
+ context_->config_data.get().required_api_version.get().at(0) - '0';
+ if (version < 3) {
LOG(DEBUG) << "Shared directory coping for tizen 2.x";
return StepCopyStorageDirectories::undo();
}