Store each api-version of application 48/200048/5
authorSangyoon Jang <jeremy.jang@samsung.com>
Mon, 18 Feb 2019 02:42:19 +0000 (11:42 +0900)
committerSangyoon Jang <jeremy.jang@samsung.com>
Thu, 11 Apr 2019 06:52:22 +0000 (06:52 +0000)
Change-Id: I00b2b88e6b3c126c0f157ef5d39a75b9a6d079bc
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
parser/manifest.xsd.in
parser/manifest.xsd.ref
parser/src/pkgmgr_parser_db.c

index 9fd38f9..e948e3a 100644 (file)
@@ -84,6 +84,7 @@
       <xs:attribute name="appid" use="required" type="xs:string"/>
       <xs:attribute name="exec" use="required"/>
       <xs:attribute name="ambient-support" type="xs:boolean"/>
+      <xs:attribute name="api-version" type="xs:string"/>
       <xs:anyAttribute namespace="##any" processContents="lax"/>
     </xs:complexType>
   </xs:element>
       <xs:attribute name="permission-type" type="xs:string"/>
       <xs:attribute name="component-type" type="xs:string"/>
       <xs:attribute name="nodisplay" type="xs:boolean"/>
+      <xs:attribute name="api-version" type="xs:string"/>
       <xs:anyAttribute namespace="##any" processContents="lax"/>
     </xs:complexType>
   </xs:element>
       <xs:attribute name="ui-gadget" type="xs:boolean"/>
       <xs:attribute name="launch_mode" type="xs:string"/>
       <xs:attribute name="splash-screen-display" type="xs:boolean"/>
+      <xs:attribute name="api-version" type="xs:string"/>
       <xs:anyAttribute namespace="##any" processContents="lax"/>
     </xs:complexType>
   </xs:element>
       <xs:attribute name="multiple" type="xs:boolean"/>
       <xs:attribute name="nodisplay" type="xs:boolean"/>
       <xs:attribute name="type" use="required" type="xs:string"/>
+      <xs:attribute name="api-version" type="xs:string"/>
       <xs:anyAttribute namespace="##any" processContents="lax"/>
     </xs:complexType>
   </xs:element>
       <xs:attribute name="update-period" type="xs:nonNegativeInteger"/>
       <xs:attribute name="max-instance" type="xs:nonNegativeInteger"/>
       <xs:attribute name="preview" type="xs:string"/>
+      <xs:attribute name="api-version" type="xs:string"/>
       <xs:anyAttribute namespace="##any" processContents="lax"/>
     </xs:complexType>
   </xs:element>
       <xs:attribute name="appid" use="required" type="xs:string"/>
       <xs:attribute name="exec" use="required"/>
       <xs:attribute name="type" use="required" type="xs:string"/>
+      <xs:attribute name="api-version" type="xs:string"/>
       <xs:anyAttribute namespace="##any" processContents="lax"/>
     </xs:complexType>
   </xs:element>
index e1a4f11..709e695 100644 (file)
       <xs:attribute name="appid" use="required" type="xs:string"/>
       <xs:attribute name="exec" use="required"/>
       <xs:attribute name="ambient-support" type="xs:boolean"/>
+      <xs:attribute name="api-version" type="xs:string"/>
     </xs:complexType>
   </xs:element>
   <xs:element name="watchface">
       <xs:attribute name="permission-type" type="xs:string"/>
       <xs:attribute name="component-type" type="xs:string"/>
       <xs:attribute name="nodisplay" type="xs:boolean"/>
+      <xs:attribute name="api-version" type="xs:string"/>
     </xs:complexType>
   </xs:element>
   <xs:element name="ui-application">
       <xs:attribute name="ui-gadget" type="xs:boolean"/>
       <xs:attribute name="launch_mode" type="packages:LaunchType"/>
       <xs:attribute name="splash-screen-display" type="xs:boolean"/>
+      <xs:attribute name="api-version" type="xs:string"/>
     </xs:complexType>
   </xs:element>
   <xs:element name="ime-application">
       <xs:attribute name="multiple" type="xs:boolean"/>
       <xs:attribute name="nodisplay" type="xs:boolean"/>
       <xs:attribute name="type" use="required" type="packages:TypeType"/>
+      <xs:attribute name="api-version" type="xs:string"/>
     </xs:complexType>
   </xs:element>
   <xs:element name="shortcut-list">
       <xs:attribute name="main" type="xs:boolean"/>
       <xs:attribute name="update-period" type="xs:positiveInteger"/>
       <xs:attribute name="preview" type="xs:string"/>
+      <xs:attribute name="api-version" type="xs:string"/>
     </xs:complexType>
   </xs:element>
   <xs:element name="account">
       <xs:attribute name="appid" use="required" type="xs:string"/>
       <xs:attribute name="exec" use="required"/>
       <xs:attribute name="type" use="required" type="xs:string"/>
+      <xs:attribute name="api-version" type="xs:string"/>
     </xs:complexType>
   </xs:element>
   <xs:element name="frame-component">
index bf7e35d..284b172 100644 (file)
@@ -2028,7 +2028,7 @@ static int __insert_application_info(sqlite3 *db, manifest_x *mfx)
                __BIND_INT(db, stmt, idx++, bg_category);
                __BIND_TEXT(db, stmt, idx++, mfx->type ? mfx->type : "tpk");
                __BIND_TEXT(db, stmt, idx++, mfx->root_path);
-               __BIND_TEXT(db, stmt, idx++, mfx->api_version);
+               __BIND_TEXT(db, stmt, idx++, app->api_version);
                __BIND_TEXT(db, stmt, idx++, effective_appid);
                __BIND_TEXT(db, stmt, idx++,
                                __get_bool(app->splash_screen_display, true));