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