Add uiapp, svcapp in core manifest
authorDuyoung Jang <duyoung.jang@samsung.com>
Wed, 19 Jun 2013 02:52:47 +0000 (11:52 +0900)
committerDuyoung Jang <duyoung.jang@samsung.com>
Wed, 19 Jun 2013 02:52:47 +0000 (11:52 +0900)
Change-Id: I299204353a2f34a182482acf7fc6d7a63eaa3fef
Signed-off-by: Duyoung Jang <duyoung.jang@samsung.com>
inc/InstallerDefs.h
src/XmlHandler/ManifestGenerator.cpp

index ddf606d..86a7256 100755 (executable)
@@ -23,7 +23,7 @@
 
 #include "InstallerUtil.h"
 
-#define OSP_INSTALLER_VERSION "version=[20130619.1]"
+#define OSP_INSTALLER_VERSION "version=[20130619.2]"
 
 #define DIR_BIN                                L"/bin"
 #define DIR_INFO                       L"/info"
index 3cd2647..fa6da7f 100755 (executable)
@@ -677,6 +677,11 @@ ManifestGenerator::WriteApp(int index, AppData* pAppData)
                __pWriter->WriteAttribute("launchcondition", "true");
        }
 
+       if (pAppData->__type == L"ServiceApp")
+       {
+               __pWriter->WriteAttribute("component-type", "svcapp");
+       }
+
        if (pAppData->__permissionType.IsEmpty() == false)
        {
                String type = pAppData->__permissionType;
@@ -849,6 +854,18 @@ ManifestGenerator::WriteSubModeApp(int index, AppData* pAppData)
        __pWriter->WriteAttribute("type", "c++app");
        __pWriter->WriteAttribute("hw-acceleration", glFrame);
 
+       if (pAppData->__permissionType.IsEmpty() == false)
+       {
+               String type = pAppData->__permissionType;
+               type.ToLowerCase();
+
+               __pWriter->WriteAttribute("permission-type", type);
+
+               __pWriter->StartElement("permission");
+               __pWriter->WriteAttribute("type", type);
+               __pWriter->EndElement();
+       }
+
        __pWriter->StartElement("label");
        __pWriter->WriteString(__pContext->__displayName);
        __pWriter->EndElement();