xref: /aosp_15_r20/prebuilts/devtools/repository/sdk-repository-07.xsd (revision 4bfccde5c7e9ea06f821db40ef0af54f6695c320)
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/7"
19    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
20    xmlns:sdk="http://schemas.android.com/sdk/android/repository/7"
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         - v7 is used by the SDK Manager in Tools r20:
73            - For <tool> and <platform-tool> packages, the <revision> element becomes a
74              a "full revision" element with <major>, <minor>, <micro> and <preview> sub-elements.
75            - The <beta-rc> element is no longer supported, it is replaced by
76              <revision> -> <preview> and is only for <tool> and <platform-tool> packages.
77            - <min-tools-rev> and <min-platform-tools-rev> also become a full revision element.
78    -->
79
80    <xsd:element name="sdk-repository" type="sdk:repositoryType" />
81
82    <xsd:complexType name="repositoryType">
83        <xsd:annotation>
84            <xsd:documentation>
85                The repository contains a collection of downloadable packages.
86            </xsd:documentation>
87        </xsd:annotation>
88        <xsd:choice minOccurs="0" maxOccurs="unbounded">
89            <xsd:element name="platform"        type="sdk:platformType"     />
90            <xsd:element name="system-image"    type="sdk:systemImageType"  />
91            <xsd:element name="source"          type="sdk:sourceType"       />
92            <xsd:element name="tool"            type="sdk:toolType"         />
93            <xsd:element name="platform-tool"   type="sdk:platformToolType" />
94            <xsd:element name="doc"             type="sdk:docType"          />
95            <xsd:element name="sample"          type="sdk:sampleType"       />
96            <xsd:element name="license"         type="sdk:licenseType"      />
97        </xsd:choice>
98    </xsd:complexType>
99
100    <!-- The definition of an SDK platform package. -->
101
102    <xsd:complexType name="platformType">
103        <xsd:annotation>
104            <xsd:documentation>An SDK platform package.</xsd:documentation>
105        </xsd:annotation>
106        <xsd:all>
107            <!-- The Android platform version. It is string such as "1.0". -->
108            <xsd:element name="version"   type="xsd:normalizedString" />
109            <!-- The Android API Level for the platform. An int > 0. -->
110            <xsd:element name="api-level" type="xsd:positiveInteger"  />
111            <!-- The optional codename for this platform, if it's a preview. -->
112            <xsd:element name="codename"  type="xsd:string" minOccurs="0" />
113            <!-- The revision, an int > 0, incremented each time a new
114                 package is generated. -->
115            <xsd:element name="revision"  type="xsd:positiveInteger" />
116
117            <!-- Information on the layoutlib packaged in this platform. -->
118            <xsd:element name="layoutlib" type="sdk:layoutlibType" />
119
120            <!-- optional elements -->
121
122            <!-- The optional license of this package. If present, users will have
123                 to agree to it before downloading. -->
124            <xsd:element name="uses-license"  type="sdk:usesLicenseType" minOccurs="0" />
125            <!-- The optional description of this package. -->
126            <xsd:element name="description"   type="xsd:string"      minOccurs="0" />
127            <!-- The optional description URL of this package -->
128            <xsd:element name="desc-url"      type="xsd:token"       minOccurs="0" />
129            <!-- The optional release note for this package. -->
130            <xsd:element name="release-note"  type="xsd:string"      minOccurs="0" />
131            <!-- The optional release note URL of this package -->
132            <xsd:element name="release-url"   type="xsd:token"       minOccurs="0" />
133            <!-- A list of file archives for this package. -->
134            <xsd:element name="archives"      type="sdk:archivesType" />
135            <!-- The minimal revision of tools required by this package.
136                 Optional. If present, must be a revision element. -->
137            <xsd:element name="min-tools-rev" type="sdk:revisionType" minOccurs="0" />
138
139            <!-- The ABI of the system image *included* in this platform, if any.
140                 When the field is present, it means the platform already embeds one
141                 system image. A platform can also have any number of external
142                 &lt;system-image&gt; associated with it.  -->
143            <xsd:element name="included-abi"  type="sdk:abiType" minOccurs="0" />
144
145            <!-- An optional element indicating the package is obsolete.
146                 The string content is however currently not defined and ignored. -->
147            <xsd:element name="obsolete"      type="xsd:string" minOccurs="0" />
148        </xsd:all>
149    </xsd:complexType>
150
151
152    <!-- The definition of a layout library used by a platform. -->
153
154    <xsd:complexType name="layoutlibType" >
155        <xsd:annotation>
156            <xsd:documentation>
157                Version information for a layoutlib included in a platform.
158            </xsd:documentation>
159        </xsd:annotation>
160        <xsd:all>
161            <!-- The layoutlib API level, an int > 0,
162                 incremented with each new incompatible lib. -->
163            <xsd:element name="api"          type="xsd:positiveInteger" />
164            <!-- The incremental minor revision for that API, e.g. in case of bug fixes.
165                 Optional. An int >= 0, assumed to be 0 if the element is missing. -->
166            <xsd:element name="revision"     type="xsd:nonNegativeInteger" minOccurs="0" />
167        </xsd:all>
168    </xsd:complexType>
169
170
171    <!-- The definition of a system image used by a platform. -->
172
173    <xsd:complexType name="systemImageType" >
174        <xsd:annotation>
175            <xsd:documentation>
176                System Image for a platform.
177            </xsd:documentation>
178        </xsd:annotation>
179        <xsd:all>
180            <!-- api-level + codename identifies the platform to which this system image belongs. -->
181
182            <!-- The Android API Level for the platform. An int > 0. -->
183            <xsd:element name="api-level" type="xsd:positiveInteger"  />
184            <!-- The optional codename for this platform, if it's a preview. -->
185            <xsd:element name="codename"  type="xsd:string" minOccurs="0" />
186
187            <!-- The revision, an int > 0, incremented each time a new
188                 package is generated. -->
189            <xsd:element name="revision"  type="xsd:positiveInteger" />
190
191            <!-- The ABI of the system emulated by this image. -->
192            <xsd:element name="abi"       type="sdk:abiType" />
193
194            <!-- The optional license of this package. If present, users will have
195                 to agree to it before downloading. -->
196            <xsd:element name="uses-license"  type="sdk:usesLicenseType" minOccurs="0" />
197            <!-- The optional description of this package. -->
198            <xsd:element name="description"   type="xsd:string"      minOccurs="0" />
199            <!-- The optional description URL of this package -->
200            <xsd:element name="desc-url"      type="xsd:token"       minOccurs="0" />
201            <!-- The optional release note for this package. -->
202            <xsd:element name="release-note"  type="xsd:string"      minOccurs="0" />
203            <!-- The optional release note URL of this package -->
204            <xsd:element name="release-url"   type="xsd:token"       minOccurs="0" />
205
206            <!-- A list of file archives for this package. -->
207            <xsd:element name="archives"  type="sdk:archivesType" />
208
209            <!-- An optional element indicating the package is obsolete.
210                 The string content is however currently not defined and ignored. -->
211            <xsd:element name="obsolete"  type="xsd:string" minOccurs="0" />
212        </xsd:all>
213    </xsd:complexType>
214
215
216    <!-- The definition of the ABI supported by a platform's system image. -->
217
218    <xsd:simpleType name="abiType">
219        <xsd:annotation>
220            <xsd:documentation>The ABI of a platform's system image.</xsd:documentation>
221        </xsd:annotation>
222        <xsd:restriction base="xsd:token">
223            <xsd:enumeration value="armeabi"     />
224            <xsd:enumeration value="armeabi-v7a" />
225            <xsd:enumeration value="x86"         />
226            <xsd:enumeration value="mips"        />
227        </xsd:restriction>
228    </xsd:simpleType>
229
230
231    <!-- The definition of a source package. -->
232
233    <xsd:complexType name="sourceType" >
234        <xsd:annotation>
235            <xsd:documentation>
236                Sources for a platform.
237            </xsd:documentation>
238        </xsd:annotation>
239        <xsd:all>
240            <!-- api-level + codename identifies the platform to which this source belongs. -->
241
242            <!-- The Android API Level for the platform. An int > 0. -->
243            <xsd:element name="api-level" type="xsd:positiveInteger"  />
244            <!-- The optional codename for this platform, if it's a preview. -->
245            <xsd:element name="codename"  type="xsd:string" minOccurs="0" />
246
247            <!-- The revision, an int > 0, incremented each time a new
248                 package is generated. -->
249            <xsd:element name="revision"  type="xsd:positiveInteger" />
250
251            <!-- The optional license of this package. If present, users will have
252                 to agree to it before downloading. -->
253            <xsd:element name="uses-license"  type="sdk:usesLicenseType" minOccurs="0" />
254            <!-- The optional description of this package. -->
255            <xsd:element name="description"   type="xsd:string"      minOccurs="0" />
256            <!-- The optional description URL of this package -->
257            <xsd:element name="desc-url"      type="xsd:token"       minOccurs="0" />
258            <!-- The optional release note for this package. -->
259            <xsd:element name="release-note"  type="xsd:string"      minOccurs="0" />
260            <!-- The optional release note URL of this package -->
261            <xsd:element name="release-url"   type="xsd:token"       minOccurs="0" />
262
263            <!-- A list of file archives for this package. -->
264            <xsd:element name="archives"  type="sdk:archivesType" />
265
266            <!-- An optional element indicating the package is obsolete.
267                 The string content is however currently not defined and ignored. -->
268            <xsd:element name="obsolete"  type="xsd:string" minOccurs="0" />
269        </xsd:all>
270    </xsd:complexType>
271
272
273    <!-- The definition of an SDK tool package. -->
274
275    <xsd:complexType name="toolType" >
276        <xsd:annotation>
277            <xsd:documentation>An SDK tool package.</xsd:documentation>
278        </xsd:annotation>
279        <xsd:all>
280            <!-- The full revision (major.minor.micro.preview), incremented each
281                 time a new package is generated. -->
282            <xsd:element name="revision"      type="sdk:revisionType" />
283
284            <!-- The optional license of this package. If present, users will have
285                 to agree to it before downloading. -->
286            <xsd:element name="uses-license" type="sdk:usesLicenseType" minOccurs="0" />
287            <!-- The optional description of this package. -->
288            <xsd:element name="description"  type="xsd:string"      minOccurs="0" />
289            <!-- The optional description URL of this package -->
290            <xsd:element name="desc-url"     type="xsd:token"       minOccurs="0" />
291            <!-- The optional release note for this package. -->
292            <xsd:element name="release-note" type="xsd:string"      minOccurs="0" />
293            <!-- The optional release note URL of this package -->
294            <xsd:element name="release-url"  type="xsd:token"       minOccurs="0" />
295            <!-- A list of file archives for this package. -->
296            <xsd:element name="archives"     type="sdk:archivesType" />
297
298            <!-- The minimal revision of platform-tools required by this package.
299                 Mandatory. Must be a revision element. -->
300            <xsd:element name="min-platform-tools-rev" type="sdk:revisionType" />
301
302            <!-- An optional element indicating the package is obsolete.
303                 The string content is however currently not defined and ignored. -->
304            <xsd:element name="obsolete"  type="xsd:string" minOccurs="0" />
305        </xsd:all>
306    </xsd:complexType>
307
308
309    <!-- The definition of an SDK platform-tool package. -->
310
311    <xsd:complexType name="platformToolType" >
312        <xsd:annotation>
313            <xsd:documentation>An SDK platform-tool package.</xsd:documentation>
314        </xsd:annotation>
315        <xsd:all>
316            <!-- The full revision (major.minor.micro.preview), incremented each
317                 time a new package is generated. -->
318            <xsd:element name="revision"      type="sdk:revisionType" />
319
320            <!-- The optional license of this package. If present, users will have
321                 to agree to it before downloading. -->
322            <xsd:element name="uses-license" type="sdk:usesLicenseType" minOccurs="0" />
323            <!-- The optional description of this package. -->
324            <xsd:element name="description"  type="xsd:string"      minOccurs="0" />
325            <!-- The optional description URL of this package -->
326            <xsd:element name="desc-url"     type="xsd:token"       minOccurs="0" />
327            <!-- The optional release note for this package. -->
328            <xsd:element name="release-note" type="xsd:string"      minOccurs="0" />
329            <!-- The optional release note URL of this package -->
330            <xsd:element name="release-url"  type="xsd:token"       minOccurs="0" />
331            <!-- A list of file archives for this package. -->
332            <xsd:element name="archives"     type="sdk:archivesType" />
333
334            <!-- An optional element indicating the package is obsolete.
335                 The string content is however currently not defined and ignored. -->
336            <xsd:element name="obsolete"  type="xsd:string" minOccurs="0" />
337        </xsd:all>
338    </xsd:complexType>
339
340
341    <!-- The definition of an SDK doc package. -->
342
343    <xsd:complexType name="docType" >
344        <xsd:annotation>
345            <xsd:documentation>An SDK doc package.</xsd:documentation>
346        </xsd:annotation>
347        <xsd:all>
348            <!-- The Android API Level for the documentation. An int > 0. -->
349            <xsd:element name="api-level" type="xsd:positiveInteger"  />
350            <!-- The optional codename for this doc, if it's a preview. -->
351            <xsd:element name="codename"  type="xsd:string" minOccurs="0" />
352
353            <!-- The revision, an int > 0, incremented each time a new
354                 package is generated. -->
355            <xsd:element name="revision"     type="xsd:positiveInteger" />
356            <!-- The optional license of this package. If present, users will have
357                 to agree to it before downloading. -->
358            <xsd:element name="uses-license" type="sdk:usesLicenseType" minOccurs="0" />
359            <!-- The optional description of this package. -->
360            <xsd:element name="description"  type="xsd:string"      minOccurs="0" />
361            <!-- The optional description URL of this package -->
362            <xsd:element name="desc-url"     type="xsd:token"       minOccurs="0" />
363            <!-- The optional release note for this package. -->
364            <xsd:element name="release-note" type="xsd:string"      minOccurs="0" />
365            <!-- The optional release note URL of this package -->
366            <xsd:element name="release-url"  type="xsd:token"       minOccurs="0" />
367            <!-- A list of file archives for this package. -->
368            <xsd:element name="archives"     type="sdk:archivesType" />
369
370
371            <!-- An optional element indicating the package is obsolete.
372                 The string content is however currently not defined and ignored. -->
373            <xsd:element name="obsolete"  type="xsd:string" minOccurs="0" />
374        </xsd:all>
375    </xsd:complexType>
376
377
378    <!-- The definition of an SDK sample package. -->
379
380    <xsd:complexType name="sampleType" >
381        <xsd:annotation>
382            <xsd:documentation>An SDK sample package.</xsd:documentation>
383        </xsd:annotation>
384        <xsd:all>
385            <!-- The Android API Level for the documentation. An int > 0. -->
386            <xsd:element name="api-level" type="xsd:positiveInteger"  />
387            <!-- The optional codename for this doc, if it's a preview. -->
388            <xsd:element name="codename"  type="xsd:string" minOccurs="0" />
389
390            <!-- The revision, an int > 0, incremented each time a new
391                 package is generated. -->
392            <xsd:element name="revision"     type="xsd:positiveInteger" />
393            <!-- The optional license of this package. If present, users will have
394                 to agree to it before downloading. -->
395            <xsd:element name="uses-license" type="sdk:usesLicenseType" minOccurs="0" />
396            <!-- The optional description of this package. -->
397            <xsd:element name="description"  type="xsd:string"      minOccurs="0" />
398            <!-- The optional description URL of this package -->
399            <xsd:element name="desc-url"     type="xsd:token"       minOccurs="0" />
400            <!-- The optional release note for this package. -->
401            <xsd:element name="release-note" type="xsd:string"      minOccurs="0" />
402            <!-- The optional release note URL of this package -->
403            <xsd:element name="release-url"  type="xsd:token"       minOccurs="0" />
404            <!-- A list of file archives for this package. -->
405            <xsd:element name="archives"     type="sdk:archivesType" />
406            <!-- The minimal revision of tools required by this package.
407                 Optional. If present, must be a revision element. -->
408            <xsd:element name="min-tools-rev" type="sdk:revisionType" minOccurs="0" />
409
410
411            <!-- An optional element indicating the package is obsolete.
412                 The string content is however currently not defined and ignored. -->
413            <xsd:element name="obsolete"  type="xsd:string" minOccurs="0" />
414        </xsd:all>
415    </xsd:complexType>
416
417
418    <!-- The definition of a path segment used by the extra element. -->
419
420    <xsd:simpleType name="segmentType">
421        <xsd:annotation>
422            <xsd:documentation>
423                One path segment for the install path of an extra element.
424                It must be a single-segment path.
425            </xsd:documentation>
426        </xsd:annotation>
427        <xsd:restriction base="xsd:token">
428            <xsd:pattern value="[a-zA-Z0-9_]+"/>
429        </xsd:restriction>
430    </xsd:simpleType>
431
432    <xsd:simpleType name="segmentListType">
433        <xsd:annotation>
434            <xsd:documentation>
435                A semi-colon separated list of a segmentTypes.
436            </xsd:documentation>
437        </xsd:annotation>
438        <xsd:restriction base="xsd:token">
439            <xsd:pattern value="[a-zA-Z0-9_;]+"/>
440        </xsd:restriction>
441    </xsd:simpleType>
442
443
444    <!-- The definition of a license to be referenced by the uses-license element. -->
445
446    <xsd:complexType name="licenseType">
447        <xsd:annotation>
448            <xsd:documentation>
449                A license definition. Such a license must be used later as a reference
450                using a uses-license element in one of the package elements.
451            </xsd:documentation>
452        </xsd:annotation>
453        <xsd:simpleContent>
454            <xsd:extension base="xsd:string">
455                <xsd:attribute name="id"   type="xsd:ID" />
456                <xsd:attribute name="type" type="xsd:token" fixed="text" />
457            </xsd:extension>
458        </xsd:simpleContent>
459    </xsd:complexType>
460
461
462    <!-- Type describing the license used by a package.
463         The license MUST be defined using a license node and referenced
464         using the ref attribute of the license element inside a package.
465     -->
466
467    <xsd:complexType name="usesLicenseType">
468        <xsd:annotation>
469            <xsd:documentation>
470                Describes the license used by a package. The license MUST be defined
471                using a license node and referenced using the ref attribute of the
472                license element inside a package.
473            </xsd:documentation>
474        </xsd:annotation>
475        <xsd:attribute name="ref" type="xsd:IDREF" />
476    </xsd:complexType>
477
478
479    <!-- A collection of files that can be downloaded for a given architecture.
480         The <archives> node is mandatory in the repository elements and the
481         collection must have at least one <archive> declared.
482         Each archive is a zip file that will be unzipped in a location that depends
483         on its package type.
484     -->
485
486    <xsd:complexType name="archivesType">
487        <xsd:annotation>
488            <xsd:documentation>
489                A collection of files that can be downloaded for a given architecture.
490                The &lt;archives&gt; node is mandatory in the repository packages and the
491                collection must have at least one &lt;archive&gt; declared.
492                Each archive is a zip file that will be unzipped in a location that depends
493                on its package type.
494            </xsd:documentation>
495        </xsd:annotation>
496        <xsd:sequence minOccurs="1" maxOccurs="unbounded">
497            <!-- One archive file -->
498            <xsd:element name="archive">
499                <xsd:complexType>
500                    <!-- Properties of the archive file -->
501                    <xsd:all>
502                        <!-- The size in bytes of the archive to download. -->
503                        <xsd:element name="size"     type="xsd:positiveInteger" />
504                        <!-- The checksum of the archive file. -->
505                        <xsd:element name="checksum" type="sdk:checksumType" />
506                        <!-- The URL is an absolute URL if it starts with http://, https://
507                             or ftp://. Otherwise it is relative to the parent directory that
508                             contains this repository.xml -->
509                        <xsd:element name="url"      type="xsd:token" />
510                    </xsd:all>
511
512                    <!-- Attributes that identify the OS and architecture -->
513                    <xsd:attribute name="os" use="required">
514                        <xsd:simpleType>
515                            <xsd:restriction base="xsd:token">
516                                <xsd:enumeration value="any" />
517                                <xsd:enumeration value="linux" />
518                                <xsd:enumeration value="macosx" />
519                                <xsd:enumeration value="windows" />
520                            </xsd:restriction>
521                        </xsd:simpleType>
522                    </xsd:attribute>
523                    <xsd:attribute name="arch" use="optional">
524                        <xsd:simpleType>
525                            <xsd:restriction base="xsd:token">
526                                <xsd:enumeration value="any" />
527                                <xsd:enumeration value="ppc" />
528                                <xsd:enumeration value="x86" />
529                                <xsd:enumeration value="x86_64" />
530                            </xsd:restriction>
531                        </xsd:simpleType>
532                    </xsd:attribute>
533                </xsd:complexType>
534            </xsd:element>
535        </xsd:sequence>
536    </xsd:complexType>
537
538
539    <!-- A full revision, with a major.minor.micro and an optional preview number.
540         The major number is mandatory, the other elements are optional.
541     -->
542
543    <xsd:complexType name="revisionType">
544        <xsd:annotation>
545            <xsd:documentation>
546                A full revision, with a major.minor.micro and an
547                optional preview number. The major number is mandatory.
548            </xsd:documentation>
549        </xsd:annotation>
550        <xsd:all>
551            <!-- The major revision, an int > 0, incremented each time a new
552                 package is generated. -->
553            <xsd:element name="major"      type="xsd:positiveInteger" />
554            <!-- The minor revision, an int >= 0, incremented each time a new
555                 minor package is generated. Assumed to be 0 if missing. -->
556            <xsd:element name="minor"     type="xsd:nonNegativeInteger" minOccurs="0" />
557            <!-- The micro revision, an int >= 0, incremented each time a new
558                 buf fix is generated. Assumed to be 0 if missing. -->
559            <xsd:element name="micro"     type="xsd:nonNegativeInteger" minOccurs="0" />
560            <!-- The preview/release candidate revision, an int > 0,
561                 incremented each time a new preview is generated.
562                 Not present for final releases. -->
563            <xsd:element name="preview"   type="xsd:positiveInteger" minOccurs="0" />
564        </xsd:all>
565    </xsd:complexType>
566
567
568    <!-- A collection of file paths available in an &lt;extra&gt; package
569         that can be installed in an Android project.
570         If present, the &lt;project-files&gt; collection must contain at least one path.
571         Each path is relative to the root directory of the package.
572     -->
573
574    <xsd:complexType name="projectFilesType">
575        <xsd:annotation>
576            <xsd:documentation>
577                A collection of file paths available in an &lt;extra&gt; package
578                that can be installed in an Android project.
579                If present, the &lt;project-files&gt; collection must contain at least one path.
580                Each path is relative to the root directory of the package.
581            </xsd:documentation>
582        </xsd:annotation>
583        <xsd:sequence minOccurs="1" maxOccurs="unbounded">
584            <!-- One JAR Path, relative to the root folder of the package. -->
585            <xsd:element name="path" type="xsd:string" />
586        </xsd:sequence>
587    </xsd:complexType>
588
589
590    <!-- The definition of a file checksum -->
591
592    <xsd:simpleType name="sha1Number">
593        <xsd:annotation>
594            <xsd:documentation>A SHA1 checksum.</xsd:documentation>
595        </xsd:annotation>
596        <xsd:restriction base="xsd:string">
597            <xsd:pattern value="([0-9a-fA-F]){40}"/>
598        </xsd:restriction>
599    </xsd:simpleType>
600
601    <xsd:complexType name="checksumType">
602        <xsd:annotation>
603            <xsd:documentation>A file checksum, currently only SHA1.</xsd:documentation>
604        </xsd:annotation>
605        <xsd:simpleContent>
606            <xsd:extension base="sdk:sha1Number">
607                <xsd:attribute name="type" type="xsd:token" fixed="sha1" />
608            </xsd:extension>
609        </xsd:simpleContent>
610    </xsd:complexType>
611
612</xsd:schema>
613