Add manifest scheme of package dependency
[platform/core/appfw/pkgmgr-info.git] / parser / manifest.xsd.ref
1 <?xml version="1.0" encoding="UTF-8"?>
2 <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" targetNamespace="http://tizen.org/ns/packages" xmlns:packages="http://tizen.org/ns/packages">
3   <xs:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="xml.xsd"/>
4
5   <xs:element name="manifest">
6     <xs:complexType>
7       <xs:choice maxOccurs="unbounded">
8         <xs:element ref="packages:label"/>
9         <xs:element ref="packages:icon"/>
10         <xs:element ref="packages:author"/>
11         <xs:element ref="packages:description"/>
12         <xs:element ref="packages:compatibility"/>
13         <xs:element ref="packages:profile"/>
14         <xs:element ref="packages:watch-application"/>
15         <xs:element ref="packages:watchface"/>
16         <xs:element ref="packages:service-application"/>
17         <xs:element ref="packages:ui-application"/>
18         <xs:element ref="packages:ime-application"/>
19         <xs:element ref="packages:shortcut-list"/>
20         <xs:element ref="packages:widget"/>
21         <xs:element ref="packages:widget-application"/>
22         <xs:element ref="packages:account"/>
23         <xs:element ref="packages:notifications"/>
24         <xs:element ref="packages:privileges"/>
25         <xs:element ref="packages:font"/>
26         <xs:element ref="packages:ime"/>
27         <xs:element ref="packages:feature"/>
28         <xs:element ref="packages:trust-anchor"/>
29         <xs:element ref="packages:component-based-application"/>
30         <xs:element ref="packages:dependencies"/>
31       </xs:choice>
32       <xs:attribute name="storeclient-id" type="xs:string"/>
33       <xs:attribute name="install-location" type="packages:InstallLocationType"/>
34       <xs:attribute name="package" use="required" type="xs:string"/>
35       <xs:attribute name="type" type="packages:PackageType"/>
36       <xs:attribute name="version" use="required" type="xs:string"/>
37       <xs:attribute name="size" type="xs:NMTOKEN"/>
38       <xs:attribute name="root_path" type="xs:string"/>
39       <xs:attribute name="csc_path" type="xs:string"/>
40       <xs:attribute name="appsetting" type="xs:boolean"/>
41       <xs:attribute name="nodisplay-setting" type="xs:boolean"/>
42       <xs:attribute name="url" type="xs:string"/>
43       <xs:attribute name="support-disable" type="xs:boolean"/>
44       <xs:attribute name="api-version" type="xs:string"/>
45       <xs:attribute name="backend-installer" type="xs:string"/>
46       <xs:attribute name="preload" type="xs:boolean"/>
47     </xs:complexType>
48   </xs:element>
49
50   <xs:simpleType name="InstallLocationType">
51     <xs:restriction base="xs:string">
52       <xs:enumeration value="auto"/>
53       <xs:enumeration value="internal-only"/>
54       <xs:enumeration value="prefer-external"/>
55     </xs:restriction>
56   </xs:simpleType>
57   <xs:simpleType name="PackageType">
58     <xs:restriction base="xs:string">
59       <xs:enumeration value="rpm"/>
60       <xs:enumeration value="tpk"/>
61       <xs:enumeration value="wgt"/>
62     </xs:restriction>
63   </xs:simpleType>
64   <xs:simpleType name="ProfileType">
65     <xs:restriction base="xs:string">
66       <xs:enumeration value="mobile"/>
67       <xs:enumeration value="wearable"/>
68       <xs:enumeration value="TV"/>
69     </xs:restriction>
70   </xs:simpleType>
71   <xs:simpleType name="TypeType">
72     <xs:restriction base="xs:string">
73       <xs:enumeration value="capp"/>
74       <xs:enumeration value="c++app"/>
75       <xs:enumeration value="webapp"/>
76       <xs:enumeration value="jsapp"/>
77     </xs:restriction>
78   </xs:simpleType>
79   <xs:simpleType name="HwAccelerationType">
80     <xs:restriction base="xs:string">
81       <xs:enumeration value="on"/>
82       <xs:enumeration value="off"/>
83       <xs:enumeration value="default"/>
84       <xs:enumeration value="use-GL"/>
85       <xs:enumeration value="not-use-GL"/>
86       <xs:enumeration value="use-system-setting"/>
87     </xs:restriction>
88   </xs:simpleType>
89   <xs:simpleType name="ScreenReaderType">
90     <xs:restriction base="xs:string">
91       <xs:enumeration value="screenreader-off"/>
92       <xs:enumeration value="screenreader-on"/>
93       <xs:enumeration value="use-system-setting"/>
94     </xs:restriction>
95   </xs:simpleType>
96   <xs:simpleType name="RecentImage">
97     <xs:restriction base="xs:string">
98     <xs:enumeration value="icon"/>
99     <xs:enumeration value="capture"/>
100      </xs:restriction>
101   </xs:simpleType>
102   <xs:simpleType name="PrivilegeType">
103     <xs:restriction base="xs:string">
104       <xs:enumeration value="tpk"/>
105       <xs:enumeration value="wgt"/>
106     </xs:restriction>
107   </xs:simpleType>
108   <xs:simpleType name="AppControlVisibilityType">
109     <xs:restriction base="xs:string">
110       <xs:enumeration value="local-only"/>
111       <xs:enumeration value="remote-only"/>
112       <xs:enumeration value="both"/>
113     </xs:restriction>
114   </xs:simpleType>
115
116   <xs:element name="author">
117     <xs:complexType mixed="true">
118       <xs:attribute name="email"/>
119       <xs:attribute name="href"/>
120       <xs:attribute ref="xml:lang"/>
121     </xs:complexType>
122   </xs:element>
123   <xs:element name="description">
124     <xs:complexType mixed="true">
125       <xs:attribute ref="xml:lang"/>
126     </xs:complexType>
127   </xs:element>
128   <xs:element name="compatibility">
129     <xs:complexType/>
130   </xs:element>
131   <xs:element name="profile">
132     <xs:complexType>
133       <xs:attribute name="name" use="required" type="packages:ProfileType"/>
134     </xs:complexType>
135   </xs:element>
136   <xs:element name="watch-application">
137     <xs:complexType>
138       <xs:choice maxOccurs="unbounded" minOccurs="0">
139         <xs:element ref="packages:label"/>
140         <xs:element ref="packages:icon"/>
141       </xs:choice>
142       <xs:attribute name="appid" use="required" type="xs:string"/>
143       <xs:attribute name="exec" use="required"/>
144       <xs:attribute name="ambient-support" type="xs:boolean"/>
145     </xs:complexType>
146   </xs:element>
147   <xs:element name="watchface">
148   </xs:element>
149   <xs:element name="service-application">
150     <xs:complexType>
151       <xs:choice maxOccurs="unbounded" minOccurs="0">
152         <xs:element ref="packages:label"/>
153         <xs:element ref="packages:icon"/>
154         <xs:element ref="packages:application-service"/>
155         <xs:element ref="packages:app-control"/>
156         <xs:element ref="packages:category"/>
157         <xs:element ref="packages:metadata"/>
158         <xs:element ref="packages:permission"/>
159         <xs:element ref="packages:datacontrol"/>
160         <xs:element ref="packages:background-category"/>
161       </xs:choice>
162       <xs:attribute name="appid" use="required" type="xs:string"/>
163       <xs:attribute name="auto-restart" type="xs:boolean"/>
164       <xs:attribute name="exec" use="required"/>
165       <xs:attribute name="on-boot" type="xs:boolean"/>
166       <xs:attribute name="type" use="required" type="packages:TypeType"/>
167       <xs:attribute name="multiple" type="xs:boolean"/>
168       <xs:attribute name="taskmanage" type="xs:boolean"/>
169       <xs:attribute name="permission-type" type="xs:string"/>
170       <xs:attribute name="component-type" type="xs:string"/>
171       <xs:attribute name="nodisplay" type="xs:boolean"/>
172     </xs:complexType>
173   </xs:element>
174   <xs:element name="ui-application">
175     <xs:complexType>
176       <xs:choice maxOccurs="unbounded" minOccurs="0">
177         <xs:element ref="packages:label"/>
178         <xs:element ref="packages:icon"/>
179         <xs:element ref="packages:image"/>
180         <xs:element ref="packages:application-service"/>
181         <xs:element ref="packages:app-control"/>
182         <xs:element ref="packages:category"/>
183         <xs:element ref="packages:metadata"/>
184         <xs:element ref="packages:permission"/>
185         <xs:element ref="packages:datacontrol"/>
186         <xs:element ref="packages:background-category"/>
187         <xs:element ref="packages:splash-screens"/>
188       </xs:choice>
189       <xs:attribute name="appid" use="required" type="xs:string"/>
190       <xs:attribute name="exec" use="required"/>
191       <xs:attribute name="multiple" type="xs:boolean"/>
192       <xs:attribute name="nodisplay" type="xs:boolean"/>
193       <xs:attribute name="taskmanage" type="xs:boolean"/>
194       <xs:attribute name="enabled" type="xs:boolean"/>
195       <xs:attribute name="type" use="required" type="packages:TypeType"/>
196       <xs:attribute name="categories" type="xs:NCName"/>
197       <xs:attribute name="extraid"/>
198       <xs:attribute name="hw-acceleration" type="packages:HwAccelerationType"/>
199       <xs:attribute name="screen-reader" type="packages:ScreenReaderType"/>
200       <xs:attribute name="recentimage" type="packages:RecentImage"/>
201       <xs:attribute name="mainapp" type="xs:boolean"/>
202       <xs:attribute name="indicatordisplay" type="xs:boolean"/>
203       <xs:attribute name="portrait-effectimage" type="xs:string"/>
204       <xs:attribute name="landscape-effectimage" type="xs:string"/>
205       <xs:attribute name="effectimage-type" type="xs:string"/>
206       <xs:attribute name="guestmode-visibility" type="xs:string"/>
207       <xs:attribute name="launchcondition" type="xs:boolean"/>
208       <xs:attribute name="permission-type" type="xs:string"/>
209       <xs:attribute name="component-type" type="xs:string"/>
210       <xs:attribute name="submode" type="xs:boolean"/>
211       <xs:attribute name="submode-mainid" type="xs:string"/>
212       <xs:attribute name="process-pool" type="xs:boolean"/>
213       <xs:attribute name="auto-restart" type="xs:boolean"/>
214       <xs:attribute name="on-boot" type="xs:boolean"/>
215       <xs:attribute name="multi-instance" type="xs:boolean"/>
216       <xs:attribute name="multi-instance-mainid" type="xs:string"/>
217       <xs:attribute name="ui-gadget" type="xs:boolean"/>
218       <xs:attribute name="launch_mode" type="packages:LaunchType"/>
219       <xs:attribute name="splash-screen-display" type="xs:boolean"/>
220     </xs:complexType>
221   </xs:element>
222   <xs:element name="ime-application">
223     <xs:complexType>
224       <xs:choice maxOccurs="unbounded">
225         <xs:element ref="packages:label"/>
226         <xs:element ref="packages:icon"/>
227       </xs:choice>
228       <xs:attribute name="appid" use="required" type="xs:string"/>
229       <xs:attribute name="exec" use="required" type="xs:NCName"/>
230       <xs:attribute name="multiple" type="xs:boolean"/>
231       <xs:attribute name="nodisplay" type="xs:boolean"/>
232       <xs:attribute name="type" use="required" type="packages:TypeType"/>
233     </xs:complexType>
234   </xs:element>
235   <xs:element name="shortcut-list">
236   </xs:element>
237   <xs:element name="widget">
238   </xs:element>
239   <xs:element name="widget-application">
240     <xs:complexType>
241       <xs:choice maxOccurs="unbounded" minOccurs="0">
242         <xs:element ref="packages:label"/>
243         <xs:element ref="packages:icon"/>
244         <xs:element ref="packages:support-size"/>
245       </xs:choice>
246       <xs:attribute name="appid" use="required" type="xs:ID"/>
247       <xs:attribute name="exec" use="required"/>
248       <xs:attribute name="main" type="xs:boolean"/>
249       <xs:attribute name="update-period" type="xs:positiveInteger"/>
250       <xs:attribute name="preview" type="xs:string"/>
251     </xs:complexType>
252   </xs:element>
253   <xs:element name="account">
254   </xs:element>
255   <xs:element name="notifications">
256   </xs:element>
257   <xs:element name="ime">
258   </xs:element>
259   <xs:element name="feature">
260   </xs:element>
261   <xs:element name="trust-anchor">
262     <xs:complexType>
263       <xs:attribute name="use-system-certs" type="xs:string"/>
264     </xs:complexType>
265   </xs:element>
266   <xs:element name="privileges">
267     <xs:complexType>
268       <xs:choice maxOccurs="unbounded" minOccurs="0">
269         <xs:element ref="packages:privilege"/>
270         <xs:element ref="packages:appdefined-privilege"/>
271       </xs:choice>
272     </xs:complexType>
273   </xs:element>
274   <xs:element name="privilege">
275     <xs:complexType mixed="true">
276       <xs:attribute name="type" type="PrivilegeType"/>
277     </xs:complexType>
278   </xs:element>
279   <xs:element name="provides-appdefined-privileges">
280     <xs:complexType>
281       <xs:choice maxOccurs="unbounded" minOccurs="0">
282         <xs:element ref="packages:appdefined-privilege"/>
283       </xs:choice>
284     </xs:complexType>
285   </xs:element>
286   <xs:element name="appdefined-privilege">
287     <xs:complexType mixed="true">
288       <xs:attribute name="type" type="PrivilegeType"/>
289       <xs:attribute name="license" type="xs:string"/>
290     </xs:complexType>
291   </xs:element>
292   <xs:element name="font">
293   </xs:element>
294   <xs:element name="label">
295     <xs:complexType mixed="true">
296       <xs:attribute ref="xml:lang"/>
297     </xs:complexType>
298   </xs:element>
299   <xs:element name="icon">
300   <xs:complexType mixed="true">
301     <xs:attribute ref="xml:lang"/>
302     <xs:attribute name="section" type="xs:string"/>
303     <xs:attribute name="resolution" type="packages:ResolutionType"/>
304     <xs:attribute name="dpi" type="xs:string"/>
305   </xs:complexType>
306   </xs:element>
307   <xs:element name="image">
308   <xs:complexType mixed="true">
309     <xs:attribute ref="xml:lang"/>
310     <xs:attribute name="section" type="xs:string"/>
311   </xs:complexType>
312   </xs:element>
313   <xs:simpleType name="SectionType">
314   <xs:restriction base="xs:string">
315     <xs:enumeration value="notification"/>
316     <xs:enumeration value="setting"/>
317    </xs:restriction>
318   </xs:simpleType>
319   <xs:simpleType name="LaunchType">
320   <xs:restriction base="xs:string">
321     <xs:enumeration value="caller"/>
322     <xs:enumeration value="single"/>
323     <xs:enumeration value="group"/>
324     <xs:enumeration value="singleton"/>
325    </xs:restriction>
326   </xs:simpleType>
327   <xs:simpleType name="ResolutionType">
328   <xs:restriction base="xs:string">
329     <xs:enumeration value="xhigh"/>
330     <xs:enumeration value="high"/>
331    </xs:restriction>
332   </xs:simpleType>
333   <xs:element name="application-service">
334     <xs:complexType>
335       <xs:choice maxOccurs="unbounded">
336         <xs:element ref="packages:operation"/>
337         <xs:element ref="packages:uri"/>
338         <xs:element ref="packages:mime"/>
339         <xs:element ref="packages:subapp"/>
340       </xs:choice>
341     </xs:complexType>
342   </xs:element>
343   <xs:element name="app-control">
344     <xs:complexType>
345       <xs:choice maxOccurs="unbounded">
346         <xs:element ref="packages:operation"/>
347         <xs:element ref="packages:uri"/>
348         <xs:element ref="packages:mime"/>
349         <xs:element ref="packages:subapp"/>
350       </xs:choice>
351       <xs:attribute name="id" type="xs:string"/>
352       <xs:attribute name="visibility" type="packages:AppControlVisibilityType"/>
353     </xs:complexType>
354   </xs:element>
355   <xs:element name="category">
356     <xs:complexType>
357       <xs:choice maxOccurs="unbounded">
358         <xs:any minOccurs="0" processContents="lax"/>
359       </xs:choice>
360       <xs:attribute name="name" use="required"/>
361       <xs:anyAttribute processContents="lax"/>
362     </xs:complexType>
363   </xs:element>
364   <xs:element name="metadata">
365     <xs:complexType>
366       <xs:attribute name="key" use="required" type="xs:string"/>
367       <xs:attribute name="value" type="xs:string"/>
368     </xs:complexType>
369   </xs:element>
370   <xs:element name="permission">
371   <xs:complexType>
372     <xs:attribute name="type" type="xs:string"/>
373   </xs:complexType>
374   </xs:element>
375   <xs:element name="datacontrol">
376   <xs:complexType>
377     <xs:choice maxOccurs="unbounded" minOccurs="0">
378       <xs:element ref="packages:privilege"/>
379     </xs:choice>
380     <xs:attribute name="providerid" type="xs:string"/>
381     <xs:attribute name="access" type="xs:string"/>
382     <xs:attribute name="type" type="xs:string"/>
383   </xs:complexType>
384   </xs:element>
385   <xs:element name="operation">
386     <xs:complexType>
387       <xs:attribute name="name" use="required"/>
388     </xs:complexType>
389   </xs:element>
390   <xs:element name="uri">
391     <xs:complexType>
392       <xs:attribute name="name" use="required"/>
393     </xs:complexType>
394   </xs:element>
395   <xs:element name="mime">
396     <xs:complexType>
397       <xs:attribute name="name" use="required"/>
398     </xs:complexType>
399   </xs:element>
400   <xs:element name="subapp">
401     <xs:complexType>
402       <xs:attribute name="name" use="required"/>
403     </xs:complexType>
404   </xs:element>
405   <xs:element name="background-category">
406     <xs:complexType mixed="true">
407       <xs:attribute name="value" type="packages:BackgroundCategoryType"/>
408     </xs:complexType>
409   </xs:element>
410   <xs:simpleType name="BackgroundCategoryType">
411     <xs:restriction base="xs:string">
412       <xs:enumeration value="media"/>
413       <xs:enumeration value="download"/>
414       <xs:enumeration value="background-network"/>
415       <xs:enumeration value="location"/>
416       <xs:enumeration value="sensor"/>
417       <xs:enumeration value="iot-communication"/>
418       <xs:enumeration value="system"/>
419     </xs:restriction>
420   </xs:simpleType>
421   <xs:element name="support-size">
422   </xs:element>
423   <xs:element name="splash-screens">
424     <xs:complexType>
425       <xs:choice maxOccurs="unbounded" minOccurs="0">
426         <xs:element ref="packages:splash-screen"/>
427       </xs:choice>
428     </xs:complexType>
429   </xs:element>
430   <xs:element name="splash-screen">
431     <xs:complexType>
432       <xs:attribute name="src" use="required" type="xs:string"/>
433       <xs:attribute name="type" use="required" type="xs:string"/>
434       <xs:attribute name="dpi" type="xs:string"/>
435       <xs:attribute name="orientation" use="required" type="xs:string"/>
436       <xs:attribute name="indicator-display" type="xs:string"/>
437       <xs:attribute name="app-control-operation" type="xs:string"/>
438       <xs:attribute name="color-depth" type="xs:string"/>
439     </xs:complexType>
440   </xs:element>
441   <xs:element name="component-based-application">
442     <xs:complexType>
443       <xs:choice maxOccurs="unbounded" minOccurs="0">
444         <xs:element ref="packages:icon"/>
445         <xs:element ref="packages:label"/>
446         <xs:element ref="packages:metadata"/>
447         <xs:element ref="packages:background-category"/>
448         <xs:element ref="packages:frame-component"/>
449         <xs:element ref="packages:service-component"/>
450       </xs:choice>
451       <xs:attribute name="appid" use="required" type="xs:string"/>
452       <xs:attribute name="exec" use="required"/>
453       <xs:attribute name="type" use="required" type="xs:string"/>
454     </xs:complexType>
455   </xs:element>
456   <xs:element name="frame-component">
457     <xs:complexType>
458       <xs:attribute name="id" use="required" type="xs:string"/>
459       <xs:attribute name="launch_mode" type="xs:string"/>
460     </xs:complexType>
461   </xs:element>
462   <xs:element name="service-component">
463     <xs:complexType>
464       <xs:attribute name="id" use="required" type="xs:string"/>
465     </xs:complexType>
466   </xs:element>
467   <xs:element name="dependencies">
468     <xs:complexType>
469       <xs:choice maxOccurs="unbounded" minOccurs="0">
470         <xs:element ref="packages:dependency"/>
471       </xs:choice>
472     </xs:complexType>
473   </xs:element>
474   <xs:element name="dependency">
475     <xs:complexType mixed="true">
476       <xs:attribute name="type" use="required" type="xs:string"/>
477       <xs:attribute name="required-version" type="xs:string"/>
478     </xs:complexType>
479   </xs:element>
480 </xs:schema>