1<?xml version="1.0" encoding="UTF-8"?>
2<!--
3 * Copyright (C) 2012 The Android Open Source Project
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
8 *
9 *      http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16-->
17<xsd:schema
18    targetNamespace="http://schemas.android.com/sdk/android/repository/6"
19    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
20    xmlns:sdk="http://schemas.android.com/sdk/android/repository/6"
21    elementFormDefault="qualified"
22    attributeFormDefault="unqualified"
23    version="1">
24
25    <!-- The repository contains a collection of downloadable items known as
26         "packages". Each package has a type and various attributes and contains
27         a list of file "archives" that can be downloaded for specific OSes.
28
29         An Android SDK repository is a web site that contains a "repository.xml"
30         file that conforms to this XML Schema.
31
32         History:
33         - v1 is used by the SDK Updater in Tools r3 and r4.
34
35         - v2 is used by the SDK Updater in Tools r5:
36            - It introduces a new <sample> repository type. Previously samples
37              were included in the <platform> packages. Instead this package is used
38              and and the samples are installed in $SDK/samples.
39            - All repository types have a new <obsolete> node. It works as a marker
40              to indicate the package is obsolete and should not be selected by default.
41              The UI also hides these out by default.
42
43         - v3 is used by the SDK Updater in Tools r8:
44            - It introduces a new <platform-tool> repository type. Previously platform-specific
45              tools were included in the <platform> packages. Instead this package is used
46              and platform-specific tools are installed in $SDK/platform-tools
47            - There's a new element <min-platform-tools-rev> in <tool>. The tool package now
48              requires that at least some minimal version of <platform-tool> be installed.
49            - It removes the <addon> repository type, which is now in its own XML Schema.
50
51         - v4 is used by the SDK Updater in Tools r12:
52            - <extra> element now has a <project-files> element that contains 1 or
53              or more <path>, each indicating the relative path of a file that this package
54              can contribute to installed projects.
55            - <platform> element now has a mandatory <layoutlib> that indicates the API
56              and revision of that layout library for this particular platform.
57
58         - v5 is used by the SDK Manager in Tools r14:
59            - <extra> now has an <old-paths> element, a ;-separated list of old paths that
60              should be detected and migrated to the new <path> for that package.
61            - <platform> has a new optional <abi-included> that describes the ABI of the
62              system image included in the platform, if any.
63            - New <system-image> package type, to store system images outside of <platform>s.
64            - New <source> package type.
65
66         - v6 is used by the SDK Manager in Tools r18:
67            - <extra> packages are removed. They are served only by the addon XML.
68            - <platform>, <system-image>, <source>, <tool>, <platform-tool>, <doc>
69              and <sample> get a new optional field <beta-rc> which can be used to indicate
70              the package is a Beta Release Candidate and not a final release.
71    -->
72
73    <xsd:element name="sdk-repository" type="sdk:repositoryType" />
74
75    <xsd:complexType name="repositoryType">
76        <xsd:annotation>
77            <xsd:documentation>
78                The repository contains a collection of downloadable packages.
79            </xsd:documentation>
80        </xsd:annotation>
81        <xsd:choice minOccurs="0" maxOccurs="unbounded">
82            <xsd:element name="platform"        type="sdk:platformType"     />
83            <xsd:element name="system-image"    type="sdk:systemImageType"  />
84            <xsd:element name="source"          type="sdk:sourceType"       />
85            <xsd:element name="tool"            type="sdk:toolType"         />
86            <xsd:element name="platform-tool"   type="sdk:platformToolType" />
87            <xsd:element name="doc"             type="sdk:docType"          />
88            <xsd:element name="sample"          type="sdk:sampleType"       />
89            <xsd:element name="license"         type="sdk:licenseType"      />
90        </xsd:choice>
91    </xsd:complexType>
92
93    <!-- The definition of an SDK platform package. -->
94
95    <xsd:complexType name="platformType">
96        <xsd:annotation>
97            <xsd:documentation>An SDK platform package.</xsd:documentation>
98        </xsd:annotation>
99        <xsd:all>
100            <!-- The Android platform version. It is string such as "1.0". -->
101            <xsd:element name="version"   type="xsd:normalizedString" />
102            <!-- The Android API Level for the platform. An int > 0. -->
103            <xsd:element name="api-level" type="xsd:positiveInteger"  />
104            <!-- The optional codename for this platform, if it's a preview. -->
105            <xsd:element name="codename"  type="xsd:string" minOccurs="0" />
106            <!-- The revision, an int > 0, incremented each time a new
107                 package is generated. -->
108            <xsd:element name="revision"  type="xsd:positiveInteger" />
109
110            <!-- Information on the layoutlib packaged in this platform. -->
111            <xsd:element name="layoutlib" type="sdk:layoutlibType" />
112
113            <!-- optional elements -->
114
115            <!-- The optional license of this package. If present, users will have
116                 to agree to it before downloading. -->
117            <xsd:element name="uses-license"  type="sdk:usesLicenseType" minOccurs="0" />
118            <!-- The optional description of this package. -->
119            <xsd:element name="description"   type="xsd:string"      minOccurs="0" />
120            <!-- The optional description URL of this package -->
121            <xsd:element name="desc-url"      type="xsd:token"       minOccurs="0" />
122            <!-- The optional release note for this package. -->
123            <xsd:element name="release-note"  type="xsd:string"      minOccurs="0" />
124            <!-- The optional release note URL of this package -->
125            <xsd:element name="release-url"   type="xsd:token"       minOccurs="0" />
126            <!-- A list of file archives for this package. -->
127            <xsd:element name="archives"      type="sdk:archivesType" />
128            <!-- The minimal revision of tools required by this package.
129                 Optional. If present, must be an int > 0. -->
130            <xsd:element name="min-tools-rev" type="xsd:positiveInteger" minOccurs="0" />
131
132            <!-- The ABI of the system image *included* in this platform, if any.
133                 When the field is present, it means the platform already embeds one
134                 system image. A platform can also have any number of external
135                 &lt;system-image&gt; associated with it.  -->
136            <xsd:element name="included-abi"  type="sdk:abiType" minOccurs="0" />
137
138            <!-- An optional element indicating the package is obsolete.
139                 The string content is however currently not defined and ignored. -->
140            <xsd:element name="obsolete"      type="xsd:string" minOccurs="0" />
141
142            <!-- An optional element indicating the package is a beta/preview.
143                 When present, it indicates the release-candidate number.
144                 When the element is absent, it indicates this is a released package. -->
145            <xsd:element name="beta-rc"       type="xsd:positiveInteger" minOccurs="0" />
146        </xsd:all>
147    </xsd:complexType>
148
149
150    <!-- The definition of a layout library used by a platform. -->
151
152    <xsd:complexType name="layoutlibType" >
153        <xsd:annotation>
154            <xsd:documentation>
155                Version information for a layoutlib included in a platform.
156            </xsd:documentation>
157        </xsd:annotation>
158        <xsd:all>
159            <!-- The layoutlib API level, an int > 0,
160                 incremented with each new incompatible lib. -->
161            <xsd:element name="api"          type="xsd:positiveInteger" />
162            <!-- The incremental minor revision for that API, e.g. in case of bug fixes.
163                 Optional. An int >= 0, assumed to be 0 if the element is missing. -->
164            <xsd:element name="revision"     type="xsd:nonNegativeInteger" minOccurs="0" />
165        </xsd:all>
166    </xsd:complexType>
167
168
169    <!-- The definition of a system image used by a platform. -->
170
171    <xsd:complexType name="systemImageType" >
172        <xsd:annotation>
173            <xsd:documentation>
174                System Image for a platform.
175            </xsd:documentation>
176        </xsd:annotation>
177        <xsd:all>
178            <!-- api-level + codename identifies the platform to which this system image belongs. -->
179
180            <!-- The Android API Level for the platform. An int > 0. -->
181            <xsd:element name="api-level" type="xsd:positiveInteger"  />
182            <!-- The optional codename for this platform, if it's a preview. -->
183            <xsd:element name="codename"  type="xsd:string" minOccurs="0" />
184
185            <!-- The revision, an int > 0, incremented each time a new
186                 package is generated. -->
187            <xsd:element name="revision"  type="xsd:positiveInteger" />
188
189            <!-- The ABI of the system emulated by this image. -->
190            <xsd:element name="abi"       type="sdk:abiType" />
191
192            <!-- The optional license of this package. If present, users will have
193                 to agree to it before downloading. -->
194            <xsd:element name="uses-license"  type="sdk:usesLicenseType" minOccurs="0" />
195            <!-- The optional description of this package. -->
196            <xsd:element name="description"   type="xsd:string"      minOccurs="0" />
197            <!-- The optional description URL of this package -->
198            <xsd:element name="desc-url"      type="xsd:token"       minOccurs="0" />
199            <!-- The optional release note for this package. -->
200            <xsd:element name="release-note"  type="xsd:string"      minOccurs="0" />
201            <!-- The optional release note URL of this package -->
202            <xsd:element name="release-url"   type="xsd:token"       minOccurs="0" />
203
204            <!-- A list of file archives for this package. -->
205            <xsd:element name="archives"  type="sdk:archivesType" />
206
207            <!-- An optional element indicating the package is obsolete.
208                 The string content is however currently not defined and ignored. -->
209            <xsd:element name="obsolete"  type="xsd:string" minOccurs="0" />
210
211            <!-- An optional element indicating the package is a beta/preview.
212                 When present, it indicates the release-candidate number.
213                 When the element is absent, it indicates this is a released package. -->
214            <xsd:element name="beta-rc"   type="xsd:positiveInteger" minOccurs="0" />
215        </xsd:all>
216    </xsd:complexType>
217
218    <!-- The definition of the ABI supported by a platform's system image. -->
219
220    <xsd:simpleType name="abiType">
221        <xsd:annotation>
222            <xsd:documentation>The ABI of a platform's system image.</xsd:documentation>
223        </xsd:annotation>
224        <xsd:restriction base="xsd:token">
225            <xsd:enumeration value="armeabi"     />
226            <xsd:enumeration value="armeabi-v7a" />
227            <xsd:enumeration value="x86"         />
228            <xsd:enumeration value="mips"        />
229        </xsd:restriction>
230    </xsd:simpleType>
231
232
233    <!-- The definition of a source package. -->
234
235    <xsd:complexType name="sourceType" >
236        <xsd:annotation>
237            <xsd:documentation>
238                Sources for a platform.
239            </xsd:documentation>
240        </xsd:annotation>
241        <xsd:all>
242            <!-- api-level + codename identifies the platform to which this source belongs. -->
243
244            <!-- The Android API Level for the platform. An int > 0. -->
245            <xsd:element name="api-level" type="xsd:positiveInteger"  />
246            <!-- The optional codename for this platform, if it's a preview. -->
247            <xsd:element name="codename"  type="xsd:string" minOccurs="0" />
248
249            <!-- The revision, an int > 0, incremented each time a new
250                 package is generated. -->
251            <xsd:element name="revision"  type="xsd:positiveInteger" />
252
253            <!-- The optional license of this package. If present, users will have
254                 to agree to it before downloading. -->
255            <xsd:element name="uses-license"  type="sdk:usesLicenseType" minOccurs="0" />
256            <!-- The optional description of this package. -->
257            <xsd:element name="description"   type="xsd:string"      minOccurs="0" />
258            <!-- The optional description URL of this package -->
259            <xsd:element name="desc-url"      type="xsd:token"       minOccurs="0" />
260            <!-- The optional release note for this package. -->
261            <xsd:element name="release-note"  type="xsd:string"      minOccurs="0" />
262            <!-- The optional release note URL of this package -->
263            <xsd:element name="release-url"   type="xsd:token"       minOccurs="0" />
264
265            <!-- A list of file archives for this package. -->
266            <xsd:element name="archives"  type="sdk:archivesType" />
267
268            <!-- An optional element indicating the package is obsolete.
269                 The string content is however currently not defined and ignored. -->
270            <xsd:element name="obsolete"  type="xsd:string" minOccurs="0" />
271
272            <!-- An optional element indicating the package is a beta/preview.
273                 When present, it indicates the release-candidate number.
274                 When the element is absent, it indicates this is a released package. -->
275            <xsd:element name="beta-rc"   type="xsd:positiveInteger" minOccurs="0" />
276        </xsd:all>
277    </xsd:complexType>
278
279
280    <!-- The definition of an SDK tool package. -->
281
282    <xsd:complexType name="toolType" >
283        <xsd:annotation>
284            <xsd:documentation>An SDK tool package.</xsd:documentation>
285        </xsd:annotation>
286        <xsd:all>
287            <!-- The revision, an int > 0, incremented each time a new
288                 package is generated. -->
289            <xsd:element name="revision"     type="xsd:positiveInteger" />
290            <!-- The optional license of this package. If present, users will have
291                 to agree to it before downloading. -->
292            <xsd:element name="uses-license" type="sdk:usesLicenseType" minOccurs="0" />
293            <!-- The optional description of this package. -->
294            <xsd:element name="description"  type="xsd:string"      minOccurs="0" />
295            <!-- The optional description URL of this package -->
296            <xsd:element name="desc-url"     type="xsd:token"       minOccurs="0" />
297            <!-- The optional release note for this package. -->
298            <xsd:element name="release-note" type="xsd:string"      minOccurs="0" />
299            <!-- The optional release note URL of this package -->
300            <xsd:element name="release-url"  type="xsd:token"       minOccurs="0" />
301            <!-- A list of file archives for this package. -->
302            <xsd:element name="archives"     type="sdk:archivesType" />
303
304            <!-- The minimal revision of platform-tools required by this package.
305                 Mandatory. Must be an int > 0. -->
306            <xsd:element name="min-platform-tools-rev" type="xsd:positiveInteger" />
307
308            <!-- An optional element indicating the package is obsolete.
309                 The string content is however currently not defined and ignored. -->
310            <xsd:element name="obsolete"  type="xsd:string" minOccurs="0" />
311
312            <!-- An optional element indicating the package is a beta/preview.
313                 When present, it indicates the release-candidate number.
314                 When the element is absent, it indicates this is a released package. -->
315            <xsd:element name="beta-rc"   type="xsd:positiveInteger" minOccurs="0" />
316        </xsd:all>
317    </xsd:complexType>
318
319
320    <!-- The definition of an SDK platform-tool package. -->
321
322    <xsd:complexType name="platformToolType" >
323        <xsd:annotation>
324            <xsd:documentation>An SDK platform-tool package.</xsd:documentation>
325        </xsd:annotation>
326        <xsd:all>
327            <!-- The revision, an int > 0, incremented each time a new
328                 package is generated. -->
329            <xsd:element name="revision"     type="xsd:positiveInteger" />
330            <!-- The optional license of this package. If present, users will have
331                 to agree to it before downloading. -->
332            <xsd:element name="uses-license" type="sdk:usesLicenseType" minOccurs="0" />
333            <!-- The optional description of this package. -->
334            <xsd:element name="description"  type="xsd:string"      minOccurs="0" />
335            <!-- The optional description URL of this package -->
336            <xsd:element name="desc-url"     type="xsd:token"       minOccurs="0" />
337            <!-- The optional release note for this package. -->
338            <xsd:element name="release-note" type="xsd:string"      minOccurs="0" />
339            <!-- The optional release note URL of this package -->
340            <xsd:element name="release-url"  type="xsd:token"       minOccurs="0" />
341            <!-- A list of file archives for this package. -->
342            <xsd:element name="archives"     type="sdk:archivesType" />
343
344            <!-- An optional element indicating the package is obsolete.
345                 The string content is however currently not defined and ignored. -->
346            <xsd:element name="obsolete"  type="xsd:string" minOccurs="0" />
347
348            <!-- An optional element indicating the package is a beta/preview.
349                 When present, it indicates the release-candidate number.
350                 When the element is absent, it indicates this is a released package. -->
351            <xsd:element name="beta-rc"   type="xsd:positiveInteger" minOccurs="0" />
352        </xsd:all>
353    </xsd:complexType>
354
355
356    <!-- The definition of an SDK doc package. -->
357
358    <xsd:complexType name="docType" >
359        <xsd:annotation>
360            <xsd:documentation>An SDK doc package.</xsd:documentation>
361        </xsd:annotation>
362        <xsd:all>
363            <!-- The Android API Level for the documentation. An int > 0. -->
364            <xsd:element name="api-level" type="xsd:positiveInteger"  />
365            <!-- The optional codename for this doc, if it's a preview. -->
366            <xsd:element name="codename"  type="xsd:string" minOccurs="0" />
367
368            <!-- The revision, an int > 0, incremented each time a new
369                 package is generated. -->
370            <xsd:element name="revision"     type="xsd:positiveInteger" />
371            <!-- The optional license of this package. If present, users will have
372                 to agree to it before downloading. -->
373            <xsd:element name="uses-license" type="sdk:usesLicenseType" minOccurs="0" />
374            <!-- The optional description of this package. -->
375            <xsd:element name="description"  type="xsd:string"      minOccurs="0" />
376            <!-- The optional description URL of this package -->
377            <xsd:element name="desc-url"     type="xsd:token"       minOccurs="0" />
378            <!-- The optional release note for this package. -->
379            <xsd:element name="release-note" type="xsd:string"      minOccurs="0" />
380            <!-- The optional release note URL of this package -->
381            <xsd:element name="release-url"  type="xsd:token"       minOccurs="0" />
382            <!-- A list of file archives for this package. -->
383            <xsd:element name="archives"     type="sdk:archivesType" />
384
385
386            <!-- An optional element indicating the package is obsolete.
387                 The string content is however currently not defined and ignored. -->
388            <xsd:element name="obsolete"  type="xsd:string" minOccurs="0" />
389
390            <!-- An optional element indicating the package is a beta/preview.
391                 When present, it indicates the release-candidate number.
392                 When the element is absent, it indicates this is a released package. -->
393            <xsd:element name="beta-rc"   type="xsd:positiveInteger" minOccurs="0" />
394        </xsd:all>
395    </xsd:complexType>
396
397
398    <!-- The definition of an SDK sample package. -->
399
400    <xsd:complexType name="sampleType" >
401        <xsd:annotation>
402            <xsd:documentation>An SDK sample package.</xsd:documentation>
403        </xsd:annotation>
404        <xsd:all>
405            <!-- The Android API Level for the documentation. An int > 0. -->
406            <xsd:element name="api-level" type="xsd:positiveInteger"  />
407            <!-- The optional codename for this doc, if it's a preview. -->
408            <xsd:element name="codename"  type="xsd:string" minOccurs="0" />
409
410            <!-- The revision, an int > 0, incremented each time a new
411                 package is generated. -->
412            <xsd:element name="revision"     type="xsd:positiveInteger" />
413            <!-- The optional license of this package. If present, users will have
414                 to agree to it before downloading. -->
415            <xsd:element name="uses-license" type="sdk:usesLicenseType" minOccurs="0" />
416            <!-- The optional description of this package. -->
417            <xsd:element name="description"  type="xsd:string"      minOccurs="0" />
418            <!-- The optional description URL of this package -->
419            <xsd:element name="desc-url"     type="xsd:token"       minOccurs="0" />
420            <!-- The optional release note for this package. -->
421            <xsd:element name="release-note" type="xsd:string"      minOccurs="0" />
422            <!-- The optional release note URL of this package -->
423            <xsd:element name="release-url"  type="xsd:token"       minOccurs="0" />
424            <!-- A list of file archives for this package. -->
425            <xsd:element name="archives"     type="sdk:archivesType" />
426            <!-- The minimal revision of tools required by this package.
427                 Optional. If present, must be an int > 0. -->
428            <xsd:element name="min-tools-rev" type="xsd:positiveInteger" minOccurs="0" />
429
430
431            <!-- An optional element indicating the package is obsolete.
432                 The string content is however currently not defined and ignored. -->
433            <xsd:element name="obsolete"  type="xsd:string" minOccurs="0" />
434
435            <!-- An optional element indicating the package is a beta/preview.
436                 When present, it indicates the release-candidate number.
437                 When the element is absent, it indicates this is a released package. -->
438            <xsd:element name="beta-rc"   type="xsd:positiveInteger" minOccurs="0" />
439        </xsd:all>
440    </xsd:complexType>
441
442
443    <!-- The definition of a path segment used by the extra element. -->
444
445    <xsd:simpleType name="segmentType">
446        <xsd:annotation>
447            <xsd:documentation>
448                One path segment for the install path of an extra element.
449                It must be a single-segment path.
450            </xsd:documentation>
451        </xsd:annotation>
452        <xsd:restriction base="xsd:token">
453            <xsd:pattern value="[a-zA-Z0-9_]+"/>
454        </xsd:restriction>
455    </xsd:simpleType>
456
457    <xsd:simpleType name="segmentListType">
458        <xsd:annotation>
459            <xsd:documentation>
460                A semi-colon separated list of a segmentTypes.
461            </xsd:documentation>
462        </xsd:annotation>
463        <xsd:restriction base="xsd:token">
464            <xsd:pattern value="[a-zA-Z0-9_;]+"/>
465        </xsd:restriction>
466    </xsd:simpleType>
467
468
469    <!-- The definition of a license to be referenced by the uses-license element. -->
470
471    <xsd:complexType name="licenseType">
472        <xsd:annotation>
473            <xsd:documentation>
474                A license definition. Such a license must be used later as a reference
475                using a uses-license element in one of the package elements.
476            </xsd:documentation>
477        </xsd:annotation>
478        <xsd:simpleContent>
479            <xsd:extension base="xsd:string">
480                <xsd:attribute name="id"   type="xsd:ID" />
481                <xsd:attribute name="type" type="xsd:token" fixed="text" />
482            </xsd:extension>
483        </xsd:simpleContent>
484    </xsd:complexType>
485
486
487    <!-- Type describing the license used by a package.
488         The license MUST be defined using a license node and referenced
489         using the ref attribute of the license element inside a package.
490     -->
491
492    <xsd:complexType name="usesLicenseType">
493        <xsd:annotation>
494            <xsd:documentation>
495                Describes the license used by a package. The license MUST be defined
496                using a license node and referenced using the ref attribute of the
497                license element inside a package.
498            </xsd:documentation>
499        </xsd:annotation>
500        <xsd:attribute name="ref" type="xsd:IDREF" />
501    </xsd:complexType>
502
503
504    <!-- A collection of files that can be downloaded for a given architecture.
505         The <archives> node is mandatory in the repository elements and the
506         collection must have at least one <archive> declared.
507         Each archive is a zip file that will be unzipped in a location that depends
508         on its package type.
509     -->
510
511    <xsd:complexType name="archivesType">
512        <xsd:annotation>
513            <xsd:documentation>
514                A collection of files that can be downloaded for a given architecture.
515                The &lt;archives&gt; node is mandatory in the repository packages and the
516                collection must have at least one &lt;archive&gt; declared.
517                Each archive is a zip file that will be unzipped in a location that depends
518                on its package type.
519            </xsd:documentation>
520        </xsd:annotation>
521        <xsd:sequence minOccurs="1" maxOccurs="unbounded">
522            <!-- One archive file -->
523            <xsd:element name="archive">
524                <xsd:complexType>
525                    <!-- Properties of the archive file -->
526                    <xsd:all>
527                        <!-- The size in bytes of the archive to download. -->
528                        <xsd:element name="size"     type="xsd:positiveInteger" />
529                        <!-- The checksum of the archive file. -->
530                        <xsd:element name="checksum" type="sdk:checksumType" />
531                        <!-- The URL is an absolute URL if it starts with http://, https://
532                             or ftp://. Otherwise it is relative to the parent directory that
533                             contains this repository.xml -->
534                        <xsd:element name="url"      type="xsd:token" />
535                    </xsd:all>
536
537                    <!-- Attributes that identify the OS and architecture -->
538                    <xsd:attribute name="os" use="required">
539                        <xsd:simpleType>
540                            <xsd:restriction base="xsd:token">
541                                <xsd:enumeration value="any" />
542                                <xsd:enumeration value="linux" />
543                                <xsd:enumeration value="macosx" />
544                                <xsd:enumeration value="windows" />
545                            </xsd:restriction>
546                        </xsd:simpleType>
547                    </xsd:attribute>
548                    <xsd:attribute name="arch" use="optional">
549                        <xsd:simpleType>
550                            <xsd:restriction base="xsd:token">
551                                <xsd:enumeration value="any" />
552                                <xsd:enumeration value="ppc" />
553                                <xsd:enumeration value="x86" />
554                                <xsd:enumeration value="x86_64" />
555                            </xsd:restriction>
556                        </xsd:simpleType>
557                    </xsd:attribute>
558                </xsd:complexType>
559            </xsd:element>
560        </xsd:sequence>
561    </xsd:complexType>
562
563
564    <!-- A collection of file paths available in an &lt;extra&gt; package
565         that can be installed in an Android project.
566         If present, the &lt;project-files&gt; collection must contain at least one path.
567         Each path is relative to the root directory of the package.
568     -->
569
570    <xsd:complexType name="projectFilesType">
571        <xsd:annotation>
572            <xsd:documentation>
573                A collection of file paths available in an &lt;extra&gt; package
574                that can be installed in an Android project.
575                If present, the &lt;project-files&gt; collection must contain at least one path.
576                Each path is relative to the root directory of the package.
577            </xsd:documentation>
578        </xsd:annotation>
579        <xsd:sequence minOccurs="1" maxOccurs="unbounded">
580            <!-- One JAR Path, relative to the root folder of the package. -->
581            <xsd:element name="path" type="xsd:string" />
582        </xsd:sequence>
583    </xsd:complexType>
584
585
586    <!-- The definition of a file checksum -->
587
588    <xsd:simpleType name="sha1Number">
589        <xsd:annotation>
590            <xsd:documentation>A SHA1 checksum.</xsd:documentation>
591        </xsd:annotation>
592        <xsd:restriction base="xsd:string">
593            <xsd:pattern value="([0-9a-fA-F]){40}"/>
594        </xsd:restriction>
595    </xsd:simpleType>
596
597    <xsd:complexType name="checksumType">
598        <xsd:annotation>
599            <xsd:documentation>A file checksum, currently only SHA1.</xsd:documentation>
600        </xsd:annotation>
601        <xsd:simpleContent>
602            <xsd:extension base="sdk:sha1Number">
603                <xsd:attribute name="type" type="xsd:token" fixed="sha1" />
604            </xsd:extension>
605        </xsd:simpleContent>
606    </xsd:complexType>
607
608</xsd:schema>
609