#include <common/step/step_unzip.h>
#include <common/step/step_update_app.h>
#include <common/step/step_update_security.h>
+#include <common/step/step_remove_manifest.h>
#include <tpk/step/step_create_symbolic_link.h>
#include <tpk/step/step_tpk_patch_icons.h>
#include "wgt/step/step_remove_encryption_data.h"
#include "wgt/step/step_wgt_patch_icons.h"
#include "wgt/step/step_wgt_patch_storage_directories.h"
-#include "wgt/step/step_wgt_remove_manifest.h"
namespace ci = common_installer;
AddStep<ci::filesystem::StepRemoveIcons>();
AddStep<wgt::encrypt::StepRemoveEncryptionData>();
AddStep<ci::security::StepRevokeSecurity>();
- AddStep<wgt::pkgmgr::StepRemoveManifest>();
+ AddStep<ci::pkgmgr::StepRemoveManifest>();
break;
case ci::RequestType::Reinstall:
// RDS is not supported for hybrid apps
step/step_wgt_patch_icons.cc
step/step_wgt_patch_storage_directories.cc
step/step_wgt_resource_directory.cc
- step/step_wgt_remove_manifest.cc
step/step_add_default_privileges.cc
wgt_app_query_interface.cc
wgt_installer.cc
+++ /dev/null
-// Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
-// Use of this source code is governed by a apache 2.0 license that can be
-// found in the LICENSE file.
-
-#include "wgt/step/step_wgt_remove_manifest.h"
-
-#include <boost/filesystem/path.hpp>
-#include <boost/filesystem/operations.hpp>
-#include <boost/system/error_code.hpp>
-
-#include <pkgmgr-info.h>
-#include <pkgmgr_installer.h>
-
-#include <algorithm>
-#include <string>
-
-#include "common/utils/file_util.h"
-
-namespace bf = boost::filesystem;
-namespace bs = boost::system;
-
-namespace wgt {
-namespace pkgmgr {
-
-
-common_installer::Step::Status StepRemoveManifest::process() {
- bs::error_code error;
- bf::remove(context_->xml_path.get(), error);
-
- if (error) {
- LOG(ERROR) << "Failed to remove xml manifest file";
- return Status::MANIFEST_ERROR;
- }
- LOG(DEBUG) << "Manifest file removed";
- return Status::OK;
-}
-
-
-} // namespace wgt
-} // namespace pkgmgr
+++ /dev/null
-// Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
-// Use of this source code is governed by a apache 2.0 license that can be
-// found in the LICENSE file.
-
-#ifndef WGT_STEP_STEP_WGT_REMOVE_MANIFEST_H_
-#define WGT_STEP_STEP_WGT_REMOVE_MANIFEST_H_
-
-#include <manifest_parser/utils/logging.h>
-
-#include "common/installer_context.h"
-#include "common/step/step.h"
-
-namespace wgt {
-namespace pkgmgr {
-
-/**
- * \brief Step responsbile for removing manifest file during uninstallation
- */
-class StepRemoveManifest : public common_installer::Step {
- public:
- using common_installer::Step::Step;
-
- /**
- * \brief main logic of remove manifest
- *
- * \return Status::OK if success, Status::ERROR otherwise
- */
- Status process() override;
-
- Status clean() override { return Status::OK; }
- Status undo() override { return Status::OK; }
- Status precheck() override { return Status::OK; }
-
- SCOPE_LOG_TAG(RemoveManifest)
-};
-
-} // namespace pkgmgr
-} // namespace wgt
-
-#endif // WGT_STEP_STEP_WGT_REMOVE_MANIFEST_H_
#include <common/step/step_update_app.h>
#include <common/step/step_update_security.h>
#include <common/step/step_check_old_certificate.h>
+#include <common/step/step_remove_manifest.h>
#include <wgt_manifest_handlers/widget_config_parser.h>
-
#include "wgt/step/step_add_default_privileges.h"
#include "wgt/step/step_check_settings_level.h"
#include "wgt/step/step_check_wgt_background_category.h"
#include "wgt/step/step_wgt_patch_icons.h"
#include "wgt/step/step_wgt_patch_storage_directories.h"
#include "wgt/step/step_wgt_resource_directory.h"
-#include "wgt/step/step_wgt_remove_manifest.h"
namespace ci = common_installer;
AddStep<ci::filesystem::StepRemoveIcons>();
AddStep<wgt::encrypt::StepRemoveEncryptionData>();
AddStep<ci::security::StepRevokeSecurity>();
- AddStep<wgt::pkgmgr::StepRemoveManifest>();
+ AddStep<ci::pkgmgr::StepRemoveManifest>();
break;
}
case ci::RequestType::Reinstall: {