platform/core/appfw/app-installers.git
9 years agonamespaces reorganization 28/33028/4
Pawel Sikorski [Fri, 2 Jan 2015 10:18:40 +0000 (11:18 +0100)]
namespaces reorganization

* common_installer {} - this namespace includes all app-installers definitions
  (Step,  ContextInstaller, utils, AppInstaller)

* utils {} - this namespace includes all extra definitions that are
  not directly related to app-installer framework and are used within
  the project (eg. logging, "dirs" handling, design patterns primitives
  (eg. singleton) etc)

* common/unzip {} - this is a namespace that includes unzipping step
  and its additional definitions

* common/signature {} - this is a namespace that includes signature step
  and its additional definitions

* common/copy {}, common/register {}, etc - these namespaces are
  analogic to unzip or signature

* wgt {} - this is a namespace that includes definitions specified for
  wgt type installation

* wgt/parse {} - this is a namespace that includes parsing step
  specified for wgt type installation

Change-Id: I9fbc542e9184def7bbd6955837c506ccf32825e3
Signed-off-by: Pawel Sikorski <p.sikorski@samsung.com>
Signed-off-by: Baptiste DURAND <baptiste.durand@open.eurogiciel.org>
9 years agofix inconsistent naming rule for accessor and build warning 94/32994/1
Wonguk Jeong [Fri, 2 Jan 2015 01:19:40 +0000 (10:19 +0900)]
fix inconsistent naming rule for accessor and build warning

1. get_manifest_data -> manifest_data (context_installer)
2. comment out unused parameter (step_unzip)

Change-Id: Ie8732a759fe888002f7adb792ac6b01f91a09b11
Signed-off-by: Wonguk Jeong <wonguk.jeong@samsung.com>
9 years agofix inconsistency of Step related class/file names 65/32965/2
Wonguk Jeong [Wed, 31 Dec 2014 01:43:52 +0000 (10:43 +0900)]
fix inconsistency of Step related class/file names

as is: StepUnzip(step_unzip.cc), SignatureStep(signature_step.cc)
to be: StepUnzip(step_unzip.cc), StepSignature(step_signature.cc)

Change-Id: I920056464d1e359a615b158e41477c56b56d9b0e
Signed-off-by: Wonguk Jeong <wonguk.jeong@samsung.com>
9 years agofill uid in constructor of context installer 63/32963/1
Wonguk Jeong [Wed, 31 Dec 2014 00:49:57 +0000 (09:49 +0900)]
fill uid in constructor of context installer

Change-Id: Icfe598fea96b4d505ff86f896784acf398a5545e
Signed-off-by: Wonguk Jeong <wonguk.jeong@samsung.com>
9 years agosource files reorganization 31/32931/2
Corentin Lecouvey [Tue, 30 Dec 2014 11:18:16 +0000 (12:18 +0100)]
source files reorganization

* move step.h and step-unzip.h into ./include/step/ dir
* create utils source files in order to offer some filesystem functions
* fix some coding style errrors

Change-Id: I339c94774f6d1b0e281425f290e3ef49a44ba66d
Signed-off-by: Corentin Lecouvey <corentin.lecouvey@open.eurogiciel.org>
9 years agofix dir scanning bug during step unzip 98/32898/1
Wonguk Jeong [Tue, 30 Dec 2014 08:40:08 +0000 (17:40 +0900)]
fix dir scanning bug during step unzip

Scan iterator has been stopped on directory.
"unzGoToNextFile" was never invoked in case of directory file.

Change-Id: I66cf31eb7fa56720d1be7b0b56072780e1c2f542
Signed-off-by: Wonguk Jeong <wonguk.jeong@samsung.com>
9 years agorework step unzip 67/32767/2
Corentin Lecouvey [Tue, 23 Dec 2014 11:26:00 +0000 (12:26 +0100)]
rework step unzip

- add GetApplicationPath() method to ContextInstaller class
    in order to get user application path.
    This change involves to add context_installer.cc source file
    and add tzplatform-config dependency.
- define 'utils' namespace
- mainly use boost::filesystem interface
- no coding style errors in step_unzip files

Change-Id: Ibae9c9e48ab44793b83d7a55e6db776472fb4610
Signed-off-by: Corentin Lecouvey <corentin.lecouvey@open.eurogiciel.org>
9 years agofix coding style in few files 49/32749/2
Corentin Lecouvey [Tue, 23 Dec 2014 11:09:03 +0000 (12:09 +0100)]
fix coding style in few files

  * app_installer.h
  * app_installer.cc
  * step.h
  * wgt_backend.cc

Change-Id: Ib160a18be703a04e022c4a55a115d3165845fcf3
Signed-off-by: Corentin Lecouvey <corentin.lecouvey@open.eurogiciel.org>
9 years agomove Context_installer struct to ContextInstaller class 43/32743/2
Corentin Lecouvey [Tue, 23 Dec 2014 10:49:18 +0000 (11:49 +0100)]
move Context_installer struct to ContextInstaller class

Also fix coding style in context_installer.h

Change-Id: I05522ab8a66fb63d34dc93c156f5bb4a3ebedbfd
Signed-off-by: Corentin Lecouvey <corentin.lecouvey@open.eurogiciel.org>
9 years agoSignature implementation moved from xwalk 81/32481/8
Tomasz Iwanek [Thu, 4 Dec 2014 10:16:01 +0000 (11:16 +0100)]
Signature implementation moved from xwalk

This is digital signature implementation moved from xwalk.
It is based on following PRs:
 - https://github.com/crosswalk-project/crosswalk/pull/2169
 - https://github.com/crosswalk-project/crosswalk/pull/2291
 - https://github.com/crosswalk-project/crosswalk/pull/2422

There are some not solved issues:
 - test correctness for valid widgets,
 - seperation from managing root certificate,
 - style of this code.

[[ PLEASE NOTE THE COMMIT CONTAINS CROSSWALK'S BSD-STYLE LICENSE ]]

Change-Id: I42db7e8a02b44a88ca88d143ad034fd1e253f3e2
Signed-off-by: Pawel Sikorski <p.sikorski@samsung.com>
9 years agoAdapt check coding style tool to file extension (*.h and *.cc) 42/32742/1
Corentin Lecouvey [Tue, 23 Dec 2014 10:44:58 +0000 (11:44 +0100)]
Adapt check coding style tool to file extension (*.h and *.cc)

Change-Id: I1bcbfc3693018106e42bc8a92423baba9c71f3c9
Signed-off-by: Corentin Lecouvey <corentin.lecouvey@open.eurogiciel.org>
9 years agoInotroducing std::string for pkgid, file_name, unpack_directory of 26/32626/2
Pawel Sikorski [Fri, 19 Dec 2014 15:43:42 +0000 (16:43 +0100)]
Inotroducing std::string for pkgid, file_name, unpack_directory of
InstallerContext.
Thanks to that these fields are automatically alloacted/deallocated
(no need to call free in case of errors, in case of clean/undo steps, etc)

Additionally, "const char *" instead of "char *" in
* extractTo_u,
* unzip_u

Change-Id: Id16cbf1c7ece36024e197c07f6e05a149d8f1324
Signed-off-by: Pawel Sikorski <p.sikorski@samsung.com>
9 years agoUsing C++ includes instead of C: 25/32625/2
Pawel Sikorski [Fri, 19 Dec 2014 14:18:39 +0000 (15:18 +0100)]
Using C++ includes instead of C:
* stdio.h --> cstdio
* stdlib.h --> cstdlib
* errno.h --> cerrno
* assert.h --> cassert
* string.h --> cstring

Change-Id: Ie51b397fb8ba6a943b8a279e80afb8cd67a297d7

9 years agoStyle check rules fix 80/32480/6
Tomasz Iwanek [Thu, 18 Dec 2014 08:19:46 +0000 (09:19 +0100)]
Style check rules fix

Added:
-build/c++11 - disable errors of using c++11

Removed:
-runtime/references - this rules was not relevant to code

To run style, type:

./tools/check-coding-style

Change-Id: Ie367dd5bfd44c5ea8bb64b4640e443212907863a

9 years agoChange rpm group classification 12/32612/1
Tomasz Iwanek [Fri, 19 Dec 2014 13:55:39 +0000 (14:55 +0100)]
Change rpm group classification

Change-Id: Ic6262f806785b72c88b396e20923ccc2dc8a5d9c

9 years agofix packaging to improve rpmlint score 95/32595/1
Corentin Lecouvey [Fri, 19 Dec 2014 09:10:01 +0000 (10:10 +0100)]
fix packaging to improve rpmlint score

- rename spec file
- adapt license syntax
- adapt group tag
- fix %post/%postun scriptlets

Change-Id: Ia692175d8f66fd7046caf6164b91b455e64b8961
Signed-off-by: Corentin Lecouvey <corentin.lecouvey@open.eurogiciel.org>
9 years agoFile name and their extension changes: 74/32474/1
Pawel Sikorski [Wed, 17 Dec 2014 17:08:59 +0000 (18:08 +0100)]
File name and their extension changes:
* .hxx --> .h
* .cxx -> .cc
* dash ("-") in filenames --> underline ("_")

CmakeLists.txt modified accordingly

Change-Id: I3e61156428971f535608a0d16f58ef6eb5f3536b

9 years agoDependencies fix 26/31826/4
Tomasz Iwanek [Wed, 10 Dec 2014 15:21:26 +0000 (16:21 +0100)]
Dependencies fix

I made mistake in CMakeLists.txt.
Please use ApplyPkgConfig for any new dependency
as it is done for existing ones.
This reduces boilerplate lines about include_directories
and link_libraries added over and over again.

Change-Id: I25144ea4c6516565e998cb3d71048ad2fe87cf81

9 years agoStylecheck script 47/31747/3
Tomasz Iwanek [Tue, 2 Dec 2014 09:08:33 +0000 (10:08 +0100)]
Stylecheck script

Change-Id: Ife054126780fc0b6e8fcb3d413f1a44ea71bc4db

9 years agoadd step-unzip 86/31886/3
Sabera Djelti (sdi2) [Fri, 28 Nov 2014 18:32:43 +0000 (19:32 +0100)]
add step-unzip

Change-Id: I06aca1845aa1a63c70fdd22ec45bea9a77f6d5bb
Signed-off-by: Sabera Djelti (sdi2) <sabera.djelti@open.eurogiciel.org>
9 years agoFix & improve cmake 48/31748/3
Tomasz Iwanek [Fri, 5 Dec 2014 12:17:12 +0000 (13:17 +0100)]
Fix & improve cmake

Change-Id: Icee2e5cfbd8afa9f067d0fad11a1f386910949ad

9 years agoAdd Skeleton and basis class 15/30915/5
Baptiste DURAND [Thu, 27 Nov 2014 08:18:00 +0000 (09:18 +0100)]
Add Skeleton and basis class

Change-Id: I90aeaef9904c173ea5cd76d38ba874e9f5e239fc
Signed-off-by: Baptiste DURAND <baptiste.durand@open.eurogiciel.org>
9 years agoInitial empty repository
Sriram Ramkrishna [Tue, 25 Nov 2014 00:17:25 +0000 (16:17 -0800)]
Initial empty repository