#include "hybrid/step/configuration/step_stash_tpk_config.h"
#include "hybrid/step/encryption/step_encrypt_hybrid_resources.h"
#include "hybrid/step/pkgmgr/step_merge_xml.h"
+#include "lib/wgt_archive_info.h"
#include "wgt/step/configuration/step_parse.h"
#include "wgt/step/configuration/step_set_old_signature_files_location.h"
#include "wgt/step/encryption/step_remove_encryption_data.h"
context_->backend_data.set(new HybridBackendData());
}
+std::unique_ptr<ci::ArchiveInfo> HybridInstaller::GetArchiveInfo() {
+ std::unique_ptr<WgtArchiveInfo> archive_info;
+ archive_info.reset(new WgtArchiveInfo(pkgmgr_->GetRequestInfo(GetIndex())));
+ return archive_info;
+}
+
void HybridInstaller::InstallSteps() {
AppInstaller::InstallSteps();
AddStepAfter<hybrid::configuration::StepStashTpkConfig>("CheckInstallable");
class HybridInstaller : public common_installer::AppInstaller {
public:
explicit HybridInstaller(common_installer::PkgMgrPtr pkgmgr);
+ std::unique_ptr<common_installer::ArchiveInfo> GetArchiveInfo() override;
SCOPE_LOG_TAG(HybridInstaller)
AUX_SOURCE_DIRECTORY(${CMAKE_CURRENT_SOURCE_DIR}/step/pkgmgr WGT_STEP_PKGMGR_SRCS)
AUX_SOURCE_DIRECTORY(${CMAKE_CURRENT_SOURCE_DIR}/step/security WGT_STEP_SECURITY_SRCS)
AUX_SOURCE_DIRECTORY(${CMAKE_CURRENT_SOURCE_DIR}/utils WGT_UTILS_SRCS)
+AUX_SOURCE_DIRECTORY(${CMAKE_CURRENT_SOURCE_DIR}/../lib LIB_SRCS)
# Target - definition
ADD_LIBRARY(${TARGET_LIBNAME_WGT} SHARED
${WGT_STEP_FILESYSTEM_SRCS}
${WGT_STEP_PKGMGR_SRCS}
${WGT_STEP_SECURITY_SRCS}
- ${WGT_UTILS_SRCS})
+ ${WGT_UTILS_SRCS}
+ ${LIB_SRCS})
# Target - includes
TARGET_INCLUDE_DIRECTORIES(${TARGET_LIBNAME_WGT} PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/../")
# Target - deps
PKGMGR_INSTALLER_DEPS
ENCRYPTION_DEPS
Boost
+ VCONF_DEPS
)
SET_TARGET_PROPERTIES(${TARGET_LIBNAME_WGT} PROPERTIES COMPILE_FLAGS "-fPIC")
#include <wgt_manifest_handlers/widget_config_parser.h>
+#include "lib/wgt_archive_info.h"
#include "wgt/utils/shared_dirs.h"
#include "wgt/step/configuration/step_check_rds_manifest.h"
#include "wgt/step/configuration/step_check_start_files.h"
context_->backend_data.set(new WgtBackendData());
}
+std::unique_ptr<ci::ArchiveInfo> WgtInstaller::GetArchiveInfo() {
+ std::unique_ptr<WgtArchiveInfo> archive_info;
+ archive_info.reset(new WgtArchiveInfo(pkgmgr_->GetRequestInfo(GetIndex())));
+ return archive_info;
+}
+
void WgtInstaller::InstallSteps() {
AppInstaller::InstallSteps();
ReplaceStep<wgt::configuration::StepParse>("ParseManifest",
* \param pkgmgr pointer to pkgmgr
*/
explicit WgtInstaller(common_installer::PkgMgrPtr pkgrmgr);
+ std::unique_ptr<common_installer::ArchiveInfo> GetArchiveInfo() override;
protected:
void InstallSteps() override;