Fix manifest schema for support tizen 2.3 tpk package 77/32977/2
authorSangyoon Jang <s89.jang@samsung.com>
Wed, 31 Dec 2014 08:13:34 +0000 (17:13 +0900)
committerSangyoon Jang <s89.jang@samsung.com>
Wed, 31 Dec 2014 08:17:13 +0000 (17:17 +0900)
for support ".tpk" package files in tizen 2.3

Change-Id: I95837c27ba26f692bc1d7e3f8ba01a709a8fd8b6
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
parser/manifest.xsd.in
parser/pkgmgr_parser.c

index cdf17f6..df8240b 100755 (executable)
@@ -11,7 +11,7 @@
           <xs:element ref="packages:author"/>
           <xs:element ref="packages:description"/>
           <xs:element ref="packages:compatibility"/>
-          <xs:element ref="packages:device-profile"/>
+          <xs:element ref="packages:profile"/>
           <xs:element ref="packages:service-application"/>
           <xs:element ref="packages:ui-application"/>
           <xs:element ref="packages:ime-application"/>
@@ -36,6 +36,7 @@
          <xs:attribute name="appsetting" type="xs:boolean"/>
          <xs:attribute name="nodisplay-setting" type="xs:boolean"/>
          <xs:attribute name="url" type="xs:string"/>
+         <xs:attribute name="api-version" type="xs:string"/>
     </xs:complexType>
   </xs:element>
 
         <xs:enumeration value="tpk"/>
         <xs:enumeration value="wgt"/>
         <xs:enumeration value="apk"/>
+        <xs:enumeration value="coretpk"/>
       </xs:restriction>
     </xs:simpleType>
+    <xs:simpleType name="ProfileType">
+      <xs:restriction base="xs:string">
+        <xs:enumeration value="mobile"/>
+        <xs:enumeration value="wearable"/>
+        <xs:enumeration value="TV"/>
+       </xs:restriction>
+    </xs:simpleType>
     <xs:simpleType name="TypeType">
       <xs:restriction base="xs:string">
         <xs:enumeration value="capp"/>
   <xs:element name="device-profile">
     <xs:complexType/>
   </xs:element>
+  <xs:element name="profile">
+    <xs:complexType>
+      <xs:attribute name="name" type="packages:ProfileType"/>
+    </xs:complexType>
+  </xs:element>
   <xs:element name="service-application">
     <xs:complexType>
       <xs:sequence>
index 849a57a..f9446ef 100755 (executable)
@@ -4078,7 +4078,7 @@ static int __start_process(xmlTextReaderPtr reader, manifest_x * mfx, uid_t uid)
                        memset(icon, '\0', sizeof(icon_x));
                        LISTADD(mfx->icon, icon);
                        ret = __ps_process_icon(reader, icon, uid);
-               } else if (!strcmp(ASCII(node), "device-profile")) {
+               } else if (!strcmp(ASCII(node), "profile")) {
                        deviceprofile_x *deviceprofile = malloc(sizeof(deviceprofile_x));
                        if (deviceprofile == NULL) {
                                _LOGD("Malloc Failed\n");