1*4bfccde5SXin Li<?xml version="1.0" encoding="UTF-8"?> 2*4bfccde5SXin Li<!-- 3*4bfccde5SXin Li * Copyright (C) 2010 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/3" 19*4bfccde5SXin Li xmlns:xsd="http://www.w3.org/2001/XMLSchema" 20*4bfccde5SXin Li xmlns:sdk="http://schemas.android.com/sdk/android/repository/3" 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 52*4bfccde5SXin Li <xsd:element name="sdk-repository" type="sdk:repositoryType" /> 53*4bfccde5SXin Li 54*4bfccde5SXin Li <xsd:complexType name="repositoryType"> 55*4bfccde5SXin Li <xsd:annotation> 56*4bfccde5SXin Li <xsd:documentation> 57*4bfccde5SXin Li The repository contains a collection of downloadable packages. 58*4bfccde5SXin Li </xsd:documentation> 59*4bfccde5SXin Li </xsd:annotation> 60*4bfccde5SXin Li <xsd:choice minOccurs="0" maxOccurs="unbounded"> 61*4bfccde5SXin Li <xsd:element name="platform" type="sdk:platformType" /> 62*4bfccde5SXin Li <xsd:element name="tool" type="sdk:toolType" /> 63*4bfccde5SXin Li <xsd:element name="platform-tool" type="sdk:platformToolType" /> 64*4bfccde5SXin Li <xsd:element name="doc" type="sdk:docType" /> 65*4bfccde5SXin Li <xsd:element name="sample" type="sdk:sampleType" /> 66*4bfccde5SXin Li <xsd:element name="extra" type="sdk:extraType" /> 67*4bfccde5SXin Li <xsd:element name="license" type="sdk:licenseType" /> 68*4bfccde5SXin Li </xsd:choice> 69*4bfccde5SXin Li </xsd:complexType> 70*4bfccde5SXin Li 71*4bfccde5SXin Li <!-- The definition of an SDK platform package. --> 72*4bfccde5SXin Li 73*4bfccde5SXin Li <xsd:complexType name="platformType"> 74*4bfccde5SXin Li <xsd:annotation> 75*4bfccde5SXin Li <xsd:documentation>An SDK platform package.</xsd:documentation> 76*4bfccde5SXin Li </xsd:annotation> 77*4bfccde5SXin Li <xsd:all> 78*4bfccde5SXin Li <!-- The Android platform version. It is string such as "1.0". --> 79*4bfccde5SXin Li <xsd:element name="version" type="xsd:normalizedString" /> 80*4bfccde5SXin Li <!-- The Android API Level for the platform. An int > 0. --> 81*4bfccde5SXin Li <xsd:element name="api-level" type="xsd:positiveInteger" /> 82*4bfccde5SXin Li <!-- The optional codename for this platform, if it's a preview. --> 83*4bfccde5SXin Li <xsd:element name="codename" type="xsd:string" minOccurs="0" /> 84*4bfccde5SXin Li 85*4bfccde5SXin Li <!-- The revision, an int > 0, incremented each time a new 86*4bfccde5SXin Li package is generated. --> 87*4bfccde5SXin Li <xsd:element name="revision" type="xsd:positiveInteger" /> 88*4bfccde5SXin Li <!-- The optional license of this package. If present, users will have 89*4bfccde5SXin Li to agree to it before downloading. --> 90*4bfccde5SXin Li <xsd:element name="uses-license" type="sdk:usesLicenseType" minOccurs="0" /> 91*4bfccde5SXin Li <!-- The optional description of this package. --> 92*4bfccde5SXin Li <xsd:element name="description" type="xsd:string" minOccurs="0" /> 93*4bfccde5SXin Li <!-- The optional description URL of this package --> 94*4bfccde5SXin Li <xsd:element name="desc-url" type="xsd:token" minOccurs="0" /> 95*4bfccde5SXin Li <!-- The optional release note for this package. --> 96*4bfccde5SXin Li <xsd:element name="release-note" type="xsd:string" minOccurs="0" /> 97*4bfccde5SXin Li <!-- The optional release note URL of this package --> 98*4bfccde5SXin Li <xsd:element name="release-url" type="xsd:token" minOccurs="0" /> 99*4bfccde5SXin Li <!-- A list of file archives for this package. --> 100*4bfccde5SXin Li <xsd:element name="archives" type="sdk:archivesType" /> 101*4bfccde5SXin Li <!-- The minimal revision of tools required by this package. 102*4bfccde5SXin Li Optional. If present, must be an int > 0. --> 103*4bfccde5SXin Li <xsd:element name="min-tools-rev" type="xsd:positiveInteger" minOccurs="0" /> 104*4bfccde5SXin Li 105*4bfccde5SXin Li <!-- An optional element indicating the package is obsolete. 106*4bfccde5SXin Li The string content is however currently not defined and ignored. --> 107*4bfccde5SXin Li <xsd:element name="obsolete" type="xsd:string" minOccurs="0" /> 108*4bfccde5SXin Li </xsd:all> 109*4bfccde5SXin Li </xsd:complexType> 110*4bfccde5SXin Li 111*4bfccde5SXin Li 112*4bfccde5SXin Li <!-- The definition of an SDK tool package. --> 113*4bfccde5SXin Li 114*4bfccde5SXin Li <xsd:complexType name="toolType" > 115*4bfccde5SXin Li <xsd:annotation> 116*4bfccde5SXin Li <xsd:documentation>An SDK tool package.</xsd:documentation> 117*4bfccde5SXin Li </xsd:annotation> 118*4bfccde5SXin Li <xsd:all> 119*4bfccde5SXin Li <!-- The revision, an int > 0, incremented each time a new 120*4bfccde5SXin Li package is generated. --> 121*4bfccde5SXin Li <xsd:element name="revision" type="xsd:positiveInteger" /> 122*4bfccde5SXin Li <!-- The optional license of this package. If present, users will have 123*4bfccde5SXin Li to agree to it before downloading. --> 124*4bfccde5SXin Li <xsd:element name="uses-license" type="sdk:usesLicenseType" minOccurs="0" /> 125*4bfccde5SXin Li <!-- The optional description of this package. --> 126*4bfccde5SXin Li <xsd:element name="description" type="xsd:string" minOccurs="0" /> 127*4bfccde5SXin Li <!-- The optional description URL of this package --> 128*4bfccde5SXin Li <xsd:element name="desc-url" type="xsd:token" minOccurs="0" /> 129*4bfccde5SXin Li <!-- The optional release note for this package. --> 130*4bfccde5SXin Li <xsd:element name="release-note" type="xsd:string" minOccurs="0" /> 131*4bfccde5SXin Li <!-- The optional release note URL of this package --> 132*4bfccde5SXin Li <xsd:element name="release-url" type="xsd:token" minOccurs="0" /> 133*4bfccde5SXin Li <!-- A list of file archives for this package. --> 134*4bfccde5SXin Li <xsd:element name="archives" type="sdk:archivesType" /> 135*4bfccde5SXin Li <!-- An optional element indicating the package is obsolete. 136*4bfccde5SXin Li The string content is however currently not defined and ignored. --> 137*4bfccde5SXin Li <xsd:element name="obsolete" type="xsd:string" minOccurs="0" /> 138*4bfccde5SXin Li 139*4bfccde5SXin Li <!-- The minimal revision of platform-tools required by this package. 140*4bfccde5SXin Li Mandatory. Must be an int > 0. --> 141*4bfccde5SXin Li <xsd:element name="min-platform-tools-rev" type="xsd:positiveInteger" /> 142*4bfccde5SXin Li </xsd:all> 143*4bfccde5SXin Li </xsd:complexType> 144*4bfccde5SXin Li 145*4bfccde5SXin Li 146*4bfccde5SXin Li <!-- The definition of an SDK platform-tool package. --> 147*4bfccde5SXin Li 148*4bfccde5SXin Li <xsd:complexType name="platformToolType" > 149*4bfccde5SXin Li <xsd:annotation> 150*4bfccde5SXin Li <xsd:documentation>An SDK platform-tool package.</xsd:documentation> 151*4bfccde5SXin Li </xsd:annotation> 152*4bfccde5SXin Li <xsd:all> 153*4bfccde5SXin Li <!-- The revision, an int > 0, incremented each time a new 154*4bfccde5SXin Li package is generated. --> 155*4bfccde5SXin Li <xsd:element name="revision" type="xsd:positiveInteger" /> 156*4bfccde5SXin Li <!-- The optional license of this package. If present, users will have 157*4bfccde5SXin Li to agree to it before downloading. --> 158*4bfccde5SXin Li <xsd:element name="uses-license" type="sdk:usesLicenseType" minOccurs="0" /> 159*4bfccde5SXin Li <!-- The optional description of this package. --> 160*4bfccde5SXin Li <xsd:element name="description" type="xsd:string" minOccurs="0" /> 161*4bfccde5SXin Li <!-- The optional description URL of this package --> 162*4bfccde5SXin Li <xsd:element name="desc-url" type="xsd:token" minOccurs="0" /> 163*4bfccde5SXin Li <!-- The optional release note for this package. --> 164*4bfccde5SXin Li <xsd:element name="release-note" type="xsd:string" minOccurs="0" /> 165*4bfccde5SXin Li <!-- The optional release note URL of this package --> 166*4bfccde5SXin Li <xsd:element name="release-url" type="xsd:token" minOccurs="0" /> 167*4bfccde5SXin Li <!-- A list of file archives for this package. --> 168*4bfccde5SXin Li <xsd:element name="archives" type="sdk:archivesType" /> 169*4bfccde5SXin Li 170*4bfccde5SXin Li <!-- An optional element indicating the package is obsolete. 171*4bfccde5SXin Li The string content is however currently not defined and ignored. --> 172*4bfccde5SXin Li <xsd:element name="obsolete" type="xsd:string" minOccurs="0" /> 173*4bfccde5SXin Li </xsd:all> 174*4bfccde5SXin Li </xsd:complexType> 175*4bfccde5SXin Li 176*4bfccde5SXin Li 177*4bfccde5SXin Li <!-- The definition of an SDK doc package. --> 178*4bfccde5SXin Li 179*4bfccde5SXin Li <xsd:complexType name="docType" > 180*4bfccde5SXin Li <xsd:annotation> 181*4bfccde5SXin Li <xsd:documentation>An SDK doc package.</xsd:documentation> 182*4bfccde5SXin Li </xsd:annotation> 183*4bfccde5SXin Li <xsd:all> 184*4bfccde5SXin Li <!-- The Android API Level for the documentation. An int > 0. --> 185*4bfccde5SXin Li <xsd:element name="api-level" type="xsd:positiveInteger" /> 186*4bfccde5SXin Li <!-- The optional codename for this doc, if it's a preview. --> 187*4bfccde5SXin Li <xsd:element name="codename" type="xsd:string" minOccurs="0" /> 188*4bfccde5SXin Li 189*4bfccde5SXin Li <!-- The revision, an int > 0, incremented each time a new 190*4bfccde5SXin Li package is generated. --> 191*4bfccde5SXin Li <xsd:element name="revision" type="xsd:positiveInteger" /> 192*4bfccde5SXin Li <!-- The optional license of this package. If present, users will have 193*4bfccde5SXin Li to agree to it before downloading. --> 194*4bfccde5SXin Li <xsd:element name="uses-license" type="sdk:usesLicenseType" minOccurs="0" /> 195*4bfccde5SXin Li <!-- The optional description of this package. --> 196*4bfccde5SXin Li <xsd:element name="description" type="xsd:string" minOccurs="0" /> 197*4bfccde5SXin Li <!-- The optional description URL of this package --> 198*4bfccde5SXin Li <xsd:element name="desc-url" type="xsd:token" minOccurs="0" /> 199*4bfccde5SXin Li <!-- The optional release note for this package. --> 200*4bfccde5SXin Li <xsd:element name="release-note" type="xsd:string" minOccurs="0" /> 201*4bfccde5SXin Li <!-- The optional release note URL of this package --> 202*4bfccde5SXin Li <xsd:element name="release-url" type="xsd:token" minOccurs="0" /> 203*4bfccde5SXin Li <!-- A list of file archives for this package. --> 204*4bfccde5SXin Li <xsd:element name="archives" type="sdk:archivesType" /> 205*4bfccde5SXin Li 206*4bfccde5SXin Li <!-- An optional element indicating the package is obsolete. 207*4bfccde5SXin Li The string content is however currently not defined and ignored. --> 208*4bfccde5SXin Li <xsd:element name="obsolete" type="xsd:string" minOccurs="0" /> 209*4bfccde5SXin Li </xsd:all> 210*4bfccde5SXin Li </xsd:complexType> 211*4bfccde5SXin Li 212*4bfccde5SXin Li 213*4bfccde5SXin Li <!-- The definition of an SDK sample package. --> 214*4bfccde5SXin Li 215*4bfccde5SXin Li <xsd:complexType name="sampleType" > 216*4bfccde5SXin Li <xsd:annotation> 217*4bfccde5SXin Li <xsd:documentation>An SDK sample package.</xsd:documentation> 218*4bfccde5SXin Li </xsd:annotation> 219*4bfccde5SXin Li <xsd:all> 220*4bfccde5SXin Li <!-- The Android API Level for the documentation. An int > 0. --> 221*4bfccde5SXin Li <xsd:element name="api-level" type="xsd:positiveInteger" /> 222*4bfccde5SXin Li <!-- The optional codename for this doc, if it's a preview. --> 223*4bfccde5SXin Li <xsd:element name="codename" type="xsd:string" minOccurs="0" /> 224*4bfccde5SXin Li 225*4bfccde5SXin Li <!-- The revision, an int > 0, incremented each time a new 226*4bfccde5SXin Li package is generated. --> 227*4bfccde5SXin Li <xsd:element name="revision" type="xsd:positiveInteger" /> 228*4bfccde5SXin Li <!-- The optional license of this package. If present, users will have 229*4bfccde5SXin Li to agree to it before downloading. --> 230*4bfccde5SXin Li <xsd:element name="uses-license" type="sdk:usesLicenseType" minOccurs="0" /> 231*4bfccde5SXin Li <!-- The optional description of this package. --> 232*4bfccde5SXin Li <xsd:element name="description" type="xsd:string" minOccurs="0" /> 233*4bfccde5SXin Li <!-- The optional description URL of this package --> 234*4bfccde5SXin Li <xsd:element name="desc-url" type="xsd:token" minOccurs="0" /> 235*4bfccde5SXin Li <!-- The optional release note for this package. --> 236*4bfccde5SXin Li <xsd:element name="release-note" type="xsd:string" minOccurs="0" /> 237*4bfccde5SXin Li <!-- The optional release note URL of this package --> 238*4bfccde5SXin Li <xsd:element name="release-url" type="xsd:token" minOccurs="0" /> 239*4bfccde5SXin Li <!-- A list of file archives for this package. --> 240*4bfccde5SXin Li <xsd:element name="archives" type="sdk:archivesType" /> 241*4bfccde5SXin Li <!-- The minimal revision of tools required by this package. 242*4bfccde5SXin Li Optional. If present, must be an int > 0. --> 243*4bfccde5SXin Li <xsd:element name="min-tools-rev" type="xsd:positiveInteger" minOccurs="0" /> 244*4bfccde5SXin Li 245*4bfccde5SXin Li <!-- An optional element indicating the package is obsolete. 246*4bfccde5SXin Li The string content is however currently not defined and ignored. --> 247*4bfccde5SXin Li <xsd:element name="obsolete" type="xsd:string" minOccurs="0" /> 248*4bfccde5SXin Li </xsd:all> 249*4bfccde5SXin Li </xsd:complexType> 250*4bfccde5SXin Li 251*4bfccde5SXin Li 252*4bfccde5SXin Li <!-- The definition of an SDK extra package. This kind of package is for 253*4bfccde5SXin Li "free" content. Such packages are installed in SDK/vendor/path. 254*4bfccde5SXin Li --> 255*4bfccde5SXin Li 256*4bfccde5SXin Li <xsd:complexType name="extraType" > 257*4bfccde5SXin Li <xsd:annotation> 258*4bfccde5SXin Li <xsd:documentation> 259*4bfccde5SXin Li An SDK extra package. This kind of package is for "free" content. 260*4bfccde5SXin Li Such packages are installed in SDK/vendor/path. 261*4bfccde5SXin Li </xsd:documentation> 262*4bfccde5SXin Li </xsd:annotation> 263*4bfccde5SXin Li <xsd:all> 264*4bfccde5SXin Li 265*4bfccde5SXin Li <!-- The install path top folder name. 266*4bfccde5SXin Li The segments "add-ons", "docs", "platforms", "platform-tools", "temp" 267*4bfccde5SXin Li and "tools" are reserved and cannot be used. 268*4bfccde5SXin Li --> 269*4bfccde5SXin Li <xsd:element name="vendor" type="sdk:segmentType" /> 270*4bfccde5SXin Li 271*4bfccde5SXin Li <!-- The install path sub-folder name. --> 272*4bfccde5SXin Li <xsd:element name="path" type="sdk:segmentType" /> 273*4bfccde5SXin Li 274*4bfccde5SXin Li <!-- The revision, an int > 0, incremented each time a new 275*4bfccde5SXin Li package is generated. --> 276*4bfccde5SXin Li <xsd:element name="revision" type="xsd:positiveInteger" /> 277*4bfccde5SXin Li <!-- The optional license of this package. If present, users will have 278*4bfccde5SXin Li to agree to it before downloading. --> 279*4bfccde5SXin Li <xsd:element name="uses-license" type="sdk:usesLicenseType" minOccurs="0" /> 280*4bfccde5SXin Li <!-- The optional description of this package. --> 281*4bfccde5SXin Li <xsd:element name="description" type="xsd:string" minOccurs="0" /> 282*4bfccde5SXin Li <!-- The optional description URL of this package --> 283*4bfccde5SXin Li <xsd:element name="desc-url" type="xsd:token" minOccurs="0" /> 284*4bfccde5SXin Li <!-- The optional release note for this package. --> 285*4bfccde5SXin Li <xsd:element name="release-note" type="xsd:string" minOccurs="0" /> 286*4bfccde5SXin Li <!-- The optional release note URL of this package --> 287*4bfccde5SXin Li <xsd:element name="release-url" type="xsd:token" minOccurs="0" /> 288*4bfccde5SXin Li <!-- A list of file archives for this package. --> 289*4bfccde5SXin Li <xsd:element name="archives" type="sdk:archivesType" /> 290*4bfccde5SXin Li <!-- The minimal revision of tools required by this package. 291*4bfccde5SXin Li Optional. If present, must be an int > 0. --> 292*4bfccde5SXin Li <xsd:element name="min-tools-rev" type="xsd:positiveInteger" minOccurs="0" /> 293*4bfccde5SXin Li <!-- The minimal API level required by this package. 294*4bfccde5SXin Li Optional. If present, must be an int > 0. --> 295*4bfccde5SXin Li <xsd:element name="min-api-level" type="xsd:positiveInteger" minOccurs="0" /> 296*4bfccde5SXin Li 297*4bfccde5SXin Li <!-- An optional element indicating the package is obsolete. 298*4bfccde5SXin Li The string content is however currently not defined and ignored. --> 299*4bfccde5SXin Li <xsd:element name="obsolete" type="xsd:string" minOccurs="0" /> 300*4bfccde5SXin Li </xsd:all> 301*4bfccde5SXin Li </xsd:complexType> 302*4bfccde5SXin Li 303*4bfccde5SXin Li 304*4bfccde5SXin Li <!-- The definition of a path segment used by the extra element. --> 305*4bfccde5SXin Li 306*4bfccde5SXin Li <xsd:simpleType name="segmentType"> 307*4bfccde5SXin Li <xsd:annotation> 308*4bfccde5SXin Li <xsd:documentation> 309*4bfccde5SXin Li One path segment for the install path of an extra element. 310*4bfccde5SXin Li It must be a single-segment path. 311*4bfccde5SXin Li </xsd:documentation> 312*4bfccde5SXin Li </xsd:annotation> 313*4bfccde5SXin Li <xsd:restriction base="xsd:token"> 314*4bfccde5SXin Li <xsd:pattern value="[a-zA-Z0-9_]+"/> 315*4bfccde5SXin Li </xsd:restriction> 316*4bfccde5SXin Li </xsd:simpleType> 317*4bfccde5SXin Li 318*4bfccde5SXin Li 319*4bfccde5SXin Li <!-- The definition of a license to be referenced by the uses-license element. --> 320*4bfccde5SXin Li 321*4bfccde5SXin Li <xsd:complexType name="licenseType"> 322*4bfccde5SXin Li <xsd:annotation> 323*4bfccde5SXin Li <xsd:documentation> 324*4bfccde5SXin Li A license definition. Such a license must be used later as a reference 325*4bfccde5SXin Li using a uses-license element in one of the package elements. 326*4bfccde5SXin Li </xsd:documentation> 327*4bfccde5SXin Li </xsd:annotation> 328*4bfccde5SXin Li <xsd:simpleContent> 329*4bfccde5SXin Li <xsd:extension base="xsd:string"> 330*4bfccde5SXin Li <xsd:attribute name="id" type="xsd:ID" /> 331*4bfccde5SXin Li <xsd:attribute name="type" type="xsd:token" fixed="text" /> 332*4bfccde5SXin Li </xsd:extension> 333*4bfccde5SXin Li </xsd:simpleContent> 334*4bfccde5SXin Li </xsd:complexType> 335*4bfccde5SXin Li 336*4bfccde5SXin Li 337*4bfccde5SXin Li <!-- Type describing the license used by a package. 338*4bfccde5SXin Li The license MUST be defined using a license node and referenced 339*4bfccde5SXin Li using the ref attribute of the license element inside a package. 340*4bfccde5SXin Li --> 341*4bfccde5SXin Li 342*4bfccde5SXin Li <xsd:complexType name="usesLicenseType"> 343*4bfccde5SXin Li <xsd:annotation> 344*4bfccde5SXin Li <xsd:documentation> 345*4bfccde5SXin Li Describes the license used by a package. The license MUST be defined 346*4bfccde5SXin Li using a license node and referenced using the ref attribute of the 347*4bfccde5SXin Li license element inside a package. 348*4bfccde5SXin Li </xsd:documentation> 349*4bfccde5SXin Li </xsd:annotation> 350*4bfccde5SXin Li <xsd:attribute name="ref" type="xsd:IDREF" /> 351*4bfccde5SXin Li </xsd:complexType> 352*4bfccde5SXin Li 353*4bfccde5SXin Li 354*4bfccde5SXin Li <!-- A collection of files that can be downloaded for a given architecture. 355*4bfccde5SXin Li The <archives> node is mandatory in the repository elements and the 356*4bfccde5SXin Li collection must have at least one <archive> declared. 357*4bfccde5SXin Li Each archive is a zip file that will be unzipped in a location that depends 358*4bfccde5SXin Li on its package type. 359*4bfccde5SXin Li --> 360*4bfccde5SXin Li 361*4bfccde5SXin Li <xsd:complexType name="archivesType"> 362*4bfccde5SXin Li <xsd:annotation> 363*4bfccde5SXin Li <xsd:documentation> 364*4bfccde5SXin Li A collection of files that can be downloaded for a given architecture. 365*4bfccde5SXin Li The <archives> node is mandatory in the repository packages and the 366*4bfccde5SXin Li collection must have at least one <archive> declared. 367*4bfccde5SXin Li Each archive is a zip file that will be unzipped in a location that depends 368*4bfccde5SXin Li on its package type. 369*4bfccde5SXin Li </xsd:documentation> 370*4bfccde5SXin Li </xsd:annotation> 371*4bfccde5SXin Li <xsd:sequence minOccurs="1" maxOccurs="unbounded"> 372*4bfccde5SXin Li <!-- One archive file --> 373*4bfccde5SXin Li <xsd:element name="archive"> 374*4bfccde5SXin Li <xsd:complexType> 375*4bfccde5SXin Li <!-- Properties of the archive file --> 376*4bfccde5SXin Li <xsd:all> 377*4bfccde5SXin Li <!-- The size in bytes of the archive to download. --> 378*4bfccde5SXin Li <xsd:element name="size" type="xsd:positiveInteger" /> 379*4bfccde5SXin Li <!-- The checksum of the archive file. --> 380*4bfccde5SXin Li <xsd:element name="checksum" type="sdk:checksumType" /> 381*4bfccde5SXin Li <!-- The URL is an absolute URL if it starts with http://, https:// 382*4bfccde5SXin Li or ftp://. Otherwise it is relative to the parent directory that 383*4bfccde5SXin Li contains this repository.xml --> 384*4bfccde5SXin Li <xsd:element name="url" type="xsd:token" /> 385*4bfccde5SXin Li </xsd:all> 386*4bfccde5SXin Li 387*4bfccde5SXin Li <!-- Attributes that identify the OS and architecture --> 388*4bfccde5SXin Li <xsd:attribute name="os" use="required"> 389*4bfccde5SXin Li <xsd:simpleType> 390*4bfccde5SXin Li <xsd:restriction base="xsd:token"> 391*4bfccde5SXin Li <xsd:enumeration value="any" /> 392*4bfccde5SXin Li <xsd:enumeration value="linux" /> 393*4bfccde5SXin Li <xsd:enumeration value="macosx" /> 394*4bfccde5SXin Li <xsd:enumeration value="windows" /> 395*4bfccde5SXin Li </xsd:restriction> 396*4bfccde5SXin Li </xsd:simpleType> 397*4bfccde5SXin Li </xsd:attribute> 398*4bfccde5SXin Li <xsd:attribute name="arch" use="optional"> 399*4bfccde5SXin Li <xsd:simpleType> 400*4bfccde5SXin Li <xsd:restriction base="xsd:token"> 401*4bfccde5SXin Li <xsd:enumeration value="any" /> 402*4bfccde5SXin Li <xsd:enumeration value="ppc" /> 403*4bfccde5SXin Li <xsd:enumeration value="x86" /> 404*4bfccde5SXin Li <xsd:enumeration value="x86_64" /> 405*4bfccde5SXin Li </xsd:restriction> 406*4bfccde5SXin Li </xsd:simpleType> 407*4bfccde5SXin Li </xsd:attribute> 408*4bfccde5SXin Li </xsd:complexType> 409*4bfccde5SXin Li </xsd:element> 410*4bfccde5SXin Li </xsd:sequence> 411*4bfccde5SXin Li </xsd:complexType> 412*4bfccde5SXin Li 413*4bfccde5SXin Li 414*4bfccde5SXin Li <!-- The definition of a file checksum --> 415*4bfccde5SXin Li 416*4bfccde5SXin Li <xsd:simpleType name="sha1Number"> 417*4bfccde5SXin Li <xsd:annotation> 418*4bfccde5SXin Li <xsd:documentation>A SHA1 checksum.</xsd:documentation> 419*4bfccde5SXin Li </xsd:annotation> 420*4bfccde5SXin Li <xsd:restriction base="xsd:string"> 421*4bfccde5SXin Li <xsd:pattern value="([0-9a-fA-F]){40}"/> 422*4bfccde5SXin Li </xsd:restriction> 423*4bfccde5SXin Li </xsd:simpleType> 424*4bfccde5SXin Li 425*4bfccde5SXin Li <xsd:complexType name="checksumType"> 426*4bfccde5SXin Li <xsd:annotation> 427*4bfccde5SXin Li <xsd:documentation>A file checksum, currently only SHA1.</xsd:documentation> 428*4bfccde5SXin Li </xsd:annotation> 429*4bfccde5SXin Li <xsd:simpleContent> 430*4bfccde5SXin Li <xsd:extension base="sdk:sha1Number"> 431*4bfccde5SXin Li <xsd:attribute name="type" type="xsd:token" fixed="sha1" /> 432*4bfccde5SXin Li </xsd:extension> 433*4bfccde5SXin Li </xsd:simpleContent> 434*4bfccde5SXin Li </xsd:complexType> 435*4bfccde5SXin Li 436*4bfccde5SXin Li</xsd:schema> 437