1*4bfccde5SXin Li<?xml version="1.0" encoding="UTF-8"?> 2*4bfccde5SXin Li<!-- 3*4bfccde5SXin Li * Copyright (C) 2011 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/addon/5" 19*4bfccde5SXin Li xmlns:xsd="http://www.w3.org/2001/XMLSchema" 20*4bfccde5SXin Li xmlns:sdk="http://schemas.android.com/sdk/android/addon/5" 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 Addon repository is a web site that contains an "addon.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 r8. It is split out of the 34*4bfccde5SXin Li main SDK Repository XML Schema and can only contain <addon> and 35*4bfccde5SXin Li <extra> packages. 36*4bfccde5SXin Li 37*4bfccde5SXin Li - v2 is used by the SDK Updater in Tools r12. 38*4bfccde5SXin Li - <extra> element now has a <project-files> element that contains 1 or 39*4bfccde5SXin Li or more <path>, each indicating the relative path of a file that this package 40*4bfccde5SXin Li can contribute to installed projects. 41*4bfccde5SXin Li - <addon> element now has an optional <layoutlib> that indicates the API 42*4bfccde5SXin Li and revision of the layout library for this particular add-on, if any. 43*4bfccde5SXin Li 44*4bfccde5SXin Li - v3 is used by the SDK Manager in Tools r14: 45*4bfccde5SXin Li - <extra> now has an <old-paths> element, a ;-separated list of old paths that 46*4bfccde5SXin Li should be detected and migrated to the new <path> for that package. 47*4bfccde5SXin Li 48*4bfccde5SXin Li - v4 is used by the SDK Manager in Tools r18: 49*4bfccde5SXin Li - <extra> and <addon> are not in the Repository XSD v6 anymore. 50*4bfccde5SXin Li - <extra> get a new field <name-display>, which is used by the SDK Manager to 51*4bfccde5SXin Li customize the name of the extra in the list display. The single <vendor> 52*4bfccde5SXin Li field becomes <vendor-id> and <vendor-display>, the id being used internally 53*4bfccde5SXin Li and the display in the UI. 54*4bfccde5SXin Li - <addon> does the same, where <name> is replaced by <name-id> and <name-display> 55*4bfccde5SXin Li and <vendor> is replaced by <vendor-id> and <vendor-display>. 56*4bfccde5SXin Li 57*4bfccde5SXin Li - v5 is used by the SDK Manager in Tools r20: 58*4bfccde5SXin Li - The <beta-rc> element is no longer supported. It was never implemented anyway. 59*4bfccde5SXin Li - For <tool> and <platform-tool> packages, the <revision> element becomes a 60*4bfccde5SXin Li a "full revision" element with <major>, <minor>, <micro> and <preview> sub-elements. 61*4bfccde5SXin Li - <min-tools-rev> for <extra> becomes a full revision element. 62*4bfccde5SXin Li --> 63*4bfccde5SXin Li 64*4bfccde5SXin Li <xsd:element name="sdk-addon" type="sdk:repositoryType" /> 65*4bfccde5SXin Li 66*4bfccde5SXin Li <xsd:complexType name="repositoryType"> 67*4bfccde5SXin Li <xsd:annotation> 68*4bfccde5SXin Li <xsd:documentation> 69*4bfccde5SXin Li The repository contains a collection of downloadable packages. 70*4bfccde5SXin Li </xsd:documentation> 71*4bfccde5SXin Li </xsd:annotation> 72*4bfccde5SXin Li <xsd:choice minOccurs="0" maxOccurs="unbounded"> 73*4bfccde5SXin Li <xsd:element name="add-on" type="sdk:addonType" /> 74*4bfccde5SXin Li <xsd:element name="extra" type="sdk:extraType" /> 75*4bfccde5SXin Li <xsd:element name="license" type="sdk:licenseType" /> 76*4bfccde5SXin Li </xsd:choice> 77*4bfccde5SXin Li </xsd:complexType> 78*4bfccde5SXin Li 79*4bfccde5SXin Li 80*4bfccde5SXin Li <!-- The definition of an SDK Add-on package. --> 81*4bfccde5SXin Li 82*4bfccde5SXin Li <xsd:complexType name="addonType"> 83*4bfccde5SXin Li <xsd:annotation> 84*4bfccde5SXin Li <xsd:documentation>An SDK add-on package.</xsd:documentation> 85*4bfccde5SXin Li </xsd:annotation> 86*4bfccde5SXin Li <xsd:all> 87*4bfccde5SXin Li <!-- The internal name id of the add-on. Must be unique per vendor. --> 88*4bfccde5SXin Li <xsd:element name="name-id" type="sdk:idType" /> 89*4bfccde5SXin Li <!-- The displayed name of the add-on. --> 90*4bfccde5SXin Li <xsd:element name="name-display" type="xsd:normalizedString" /> 91*4bfccde5SXin Li 92*4bfccde5SXin Li <!-- The internal vendor id of the add-on. Must be unique amongst vendors. --> 93*4bfccde5SXin Li <xsd:element name="vendor-id" type="sdk:idType" /> 94*4bfccde5SXin Li <!-- The displayed vendor name of the add-on. --> 95*4bfccde5SXin Li <xsd:element name="vendor-display" type="xsd:normalizedString" /> 96*4bfccde5SXin Li 97*4bfccde5SXin Li <!-- The Android API Level for the add-on. An int > 0. --> 98*4bfccde5SXin Li <xsd:element name="api-level" type="xsd:positiveInteger" /> 99*4bfccde5SXin Li <!-- Note: Add-ons do not support 'codenames' (a.k.a. API previews). --> 100*4bfccde5SXin Li <!-- The revision, an int > 0, incremented each time a new 101*4bfccde5SXin Li package is generated. --> 102*4bfccde5SXin Li <xsd:element name="revision" type="xsd:positiveInteger" /> 103*4bfccde5SXin Li 104*4bfccde5SXin Li <!-- An add-on can declare 0 or more libraries. 105*4bfccde5SXin Li This element is mandatory but it can be empty. 106*4bfccde5SXin Li --> 107*4bfccde5SXin Li 108*4bfccde5SXin Li <xsd:element name="libs"> 109*4bfccde5SXin Li <xsd:complexType> 110*4bfccde5SXin Li <xsd:sequence minOccurs="0" maxOccurs="unbounded"> 111*4bfccde5SXin Li <xsd:element name="lib"> 112*4bfccde5SXin Li <xsd:complexType> 113*4bfccde5SXin Li <xsd:all> 114*4bfccde5SXin Li <!-- The name of the library. --> 115*4bfccde5SXin Li <xsd:element name="name" type="xsd:normalizedString" /> 116*4bfccde5SXin Li <!-- The optional description of this add-on library. --> 117*4bfccde5SXin Li <xsd:element name="description" type="xsd:string" minOccurs="0" /> 118*4bfccde5SXin Li </xsd:all> 119*4bfccde5SXin Li </xsd:complexType> 120*4bfccde5SXin Li </xsd:element> 121*4bfccde5SXin Li </xsd:sequence> 122*4bfccde5SXin Li </xsd:complexType> 123*4bfccde5SXin Li </xsd:element> 124*4bfccde5SXin Li 125*4bfccde5SXin Li <!-- optional elements --> 126*4bfccde5SXin Li 127*4bfccde5SXin Li <!-- The optional license of this package. If present, users will have 128*4bfccde5SXin Li to agree to it before downloading. --> 129*4bfccde5SXin Li <xsd:element name="uses-license" type="sdk:usesLicenseType" minOccurs="0" /> 130*4bfccde5SXin Li <!-- The optional description of this package. --> 131*4bfccde5SXin Li <xsd:element name="description" type="xsd:string" minOccurs="0" /> 132*4bfccde5SXin Li <!-- The optional description URL of this package --> 133*4bfccde5SXin Li <xsd:element name="desc-url" type="xsd:token" minOccurs="0" /> 134*4bfccde5SXin Li <!-- The optional release note for this package. --> 135*4bfccde5SXin Li <xsd:element name="release-note" type="xsd:string" minOccurs="0" /> 136*4bfccde5SXin Li <!-- The optional release note URL of this package --> 137*4bfccde5SXin Li <xsd:element name="release-url" type="xsd:token" minOccurs="0" /> 138*4bfccde5SXin Li <!-- A list of file archives for this package. --> 139*4bfccde5SXin Li <xsd:element name="archives" type="sdk:archivesType" /> 140*4bfccde5SXin Li 141*4bfccde5SXin Li <!-- An optional element indicating the package is obsolete. 142*4bfccde5SXin Li The string content is however currently not defined and ignored. --> 143*4bfccde5SXin Li <xsd:element name="obsolete" type="xsd:string" minOccurs="0" /> 144*4bfccde5SXin Li 145*4bfccde5SXin Li <!-- Optional information on the layoutlib packaged in this platform. --> 146*4bfccde5SXin Li <xsd:element name="layoutlib" type="sdk:layoutlibType" minOccurs="0" /> 147*4bfccde5SXin Li </xsd:all> 148*4bfccde5SXin Li </xsd:complexType> 149*4bfccde5SXin Li 150*4bfccde5SXin Li 151*4bfccde5SXin Li <xsd:simpleType name="idType"> 152*4bfccde5SXin Li <xsd:annotation> 153*4bfccde5SXin Li <xsd:documentation> 154*4bfccde5SXin Li An ID string for an addon/extra name-id or vendor-id 155*4bfccde5SXin Li can only be simple alphanumeric string. 156*4bfccde5SXin Li </xsd:documentation> 157*4bfccde5SXin Li </xsd:annotation> 158*4bfccde5SXin Li <xsd:restriction base="xsd:token"> 159*4bfccde5SXin Li <xsd:pattern value="[a-zA-Z0-9_-]+"/> 160*4bfccde5SXin Li </xsd:restriction> 161*4bfccde5SXin Li </xsd:simpleType> 162*4bfccde5SXin Li 163*4bfccde5SXin Li 164*4bfccde5SXin Li <!-- The definition of a layout library used by an addon. --> 165*4bfccde5SXin Li 166*4bfccde5SXin Li <xsd:complexType name="layoutlibType" > 167*4bfccde5SXin Li <xsd:annotation> 168*4bfccde5SXin Li <xsd:documentation> 169*4bfccde5SXin Li Version information for a layoutlib included in an addon. 170*4bfccde5SXin Li .</xsd:documentation> 171*4bfccde5SXin Li </xsd:annotation> 172*4bfccde5SXin Li <xsd:all> 173*4bfccde5SXin Li <!-- The layoutlib API level, an int > 0, 174*4bfccde5SXin Li incremented with each new incompatible lib. --> 175*4bfccde5SXin Li <xsd:element name="api" type="xsd:positiveInteger" /> 176*4bfccde5SXin Li <!-- The incremental minor revision for that API, e.g. in case of bug fixes. 177*4bfccde5SXin Li Optional. An int >= 0, assumed to be 0 if the element is missing. --> 178*4bfccde5SXin Li <xsd:element name="revision" type="xsd:nonNegativeInteger" minOccurs="0" /> 179*4bfccde5SXin Li </xsd:all> 180*4bfccde5SXin Li </xsd:complexType> 181*4bfccde5SXin Li 182*4bfccde5SXin Li 183*4bfccde5SXin Li <!-- The definition of an SDK extra package. This kind of package is for 184*4bfccde5SXin Li "free" content. Such packages are installed in SDK/extras/vendor/path. 185*4bfccde5SXin Li --> 186*4bfccde5SXin Li 187*4bfccde5SXin Li <xsd:complexType name="extraType" > 188*4bfccde5SXin Li <xsd:annotation> 189*4bfccde5SXin Li <xsd:documentation> 190*4bfccde5SXin Li An SDK extra package. This kind of package is for "free" content. 191*4bfccde5SXin Li Such packages are installed in SDK/vendor/path. 192*4bfccde5SXin Li </xsd:documentation> 193*4bfccde5SXin Li </xsd:annotation> 194*4bfccde5SXin Li <xsd:all> 195*4bfccde5SXin Li <!-- The displayed name of the extra. --> 196*4bfccde5SXin Li <xsd:element name="name-display" type="xsd:normalizedString" /> 197*4bfccde5SXin Li 198*4bfccde5SXin Li <!-- The internal vendor id of the extra. Must be unique amongst vendors. --> 199*4bfccde5SXin Li <xsd:element name="vendor-id" type="sdk:idType" /> 200*4bfccde5SXin Li <!-- The displayed vendor name of the extra. --> 201*4bfccde5SXin Li <xsd:element name="vendor-display" type="xsd:normalizedString" /> 202*4bfccde5SXin Li 203*4bfccde5SXin Li <!-- The install path sub-folder name. It must not be empty. --> 204*4bfccde5SXin Li <xsd:element name="path" type="sdk:segmentType" /> 205*4bfccde5SXin Li 206*4bfccde5SXin Li <!-- A semi-colon separated list of "obsolete" path names which are equivalent 207*4bfccde5SXin Li to the current 'path' name. When a package is seen using an old-paths' name, 208*4bfccde5SXin Li the package manager will try to upgrade it to the new path. --> 209*4bfccde5SXin Li <xsd:element name="old-paths" type="sdk:segmentListType" minOccurs="0" /> 210*4bfccde5SXin Li 211*4bfccde5SXin Li <!-- The revision, an int > 0, incremented each time a new 212*4bfccde5SXin Li package is generated. --> 213*4bfccde5SXin Li <xsd:element name="revision" type="xsd:positiveInteger" /> 214*4bfccde5SXin Li 215*4bfccde5SXin Li <!-- A list of file archives for this package. --> 216*4bfccde5SXin Li <xsd:element name="archives" type="sdk:archivesType" /> 217*4bfccde5SXin Li 218*4bfccde5SXin Li <!-- optional elements --> 219*4bfccde5SXin Li 220*4bfccde5SXin Li <!-- The optional license of this package. If present, users will have 221*4bfccde5SXin Li to agree to it before downloading. --> 222*4bfccde5SXin Li <xsd:element name="uses-license" type="sdk:usesLicenseType" minOccurs="0" /> 223*4bfccde5SXin Li <!-- The optional description of this package. --> 224*4bfccde5SXin Li <xsd:element name="description" type="xsd:string" minOccurs="0" /> 225*4bfccde5SXin Li <!-- The optional description URL of this package --> 226*4bfccde5SXin Li <xsd:element name="desc-url" type="xsd:token" minOccurs="0" /> 227*4bfccde5SXin Li <!-- The optional release note for this package. --> 228*4bfccde5SXin Li <xsd:element name="release-note" type="xsd:string" minOccurs="0" /> 229*4bfccde5SXin Li <!-- The optional release note URL of this package --> 230*4bfccde5SXin Li <xsd:element name="release-url" type="xsd:token" minOccurs="0" /> 231*4bfccde5SXin Li <!-- The minimal revision of tools required by this package. 232*4bfccde5SXin Li Optional. If present, must be a revision element. --> 233*4bfccde5SXin Li <xsd:element name="min-tools-rev" type="sdk:revisionType" minOccurs="0" /> 234*4bfccde5SXin Li <!-- The minimal API level required by this package. 235*4bfccde5SXin Li Optional. If present, must be an int > 0. --> 236*4bfccde5SXin Li <xsd:element name="min-api-level" type="xsd:positiveInteger" minOccurs="0" /> 237*4bfccde5SXin Li 238*4bfccde5SXin Li <!-- An optional element indicating the package is obsolete. 239*4bfccde5SXin Li The string content is however currently not defined and ignored. --> 240*4bfccde5SXin Li <xsd:element name="obsolete" type="xsd:string" minOccurs="0" /> 241*4bfccde5SXin Li 242*4bfccde5SXin Li <!-- A list of project files contributed by this package. Optional. --> 243*4bfccde5SXin Li <xsd:element name="project-files" type="sdk:projectFilesType" minOccurs="0" /> 244*4bfccde5SXin Li </xsd:all> 245*4bfccde5SXin Li </xsd:complexType> 246*4bfccde5SXin Li 247*4bfccde5SXin Li 248*4bfccde5SXin Li <!-- A full revision, with a major.minor.micro and an optional preview number. 249*4bfccde5SXin Li The major number is mandatory, the other elements are optional. 250*4bfccde5SXin Li --> 251*4bfccde5SXin Li 252*4bfccde5SXin Li <xsd:complexType name="revisionType"> 253*4bfccde5SXin Li <xsd:annotation> 254*4bfccde5SXin Li <xsd:documentation> 255*4bfccde5SXin Li A full revision, with a major.minor.micro and an 256*4bfccde5SXin Li optional preview number. The major number is mandatory. 257*4bfccde5SXin Li </xsd:documentation> 258*4bfccde5SXin Li </xsd:annotation> 259*4bfccde5SXin Li <xsd:all> 260*4bfccde5SXin Li <!-- The major revision, an int > 0, incremented each time a new 261*4bfccde5SXin Li package is generated. --> 262*4bfccde5SXin Li <xsd:element name="major" type="xsd:positiveInteger" /> 263*4bfccde5SXin Li <!-- The minor revision, an int >= 0, incremented each time a new 264*4bfccde5SXin Li minor package is generated. Assumed to be 0 if missing. --> 265*4bfccde5SXin Li <xsd:element name="minor" type="xsd:nonNegativeInteger" minOccurs="0" /> 266*4bfccde5SXin Li <!-- The micro revision, an int >= 0, incremented each time a new 267*4bfccde5SXin Li buf fix is generated. Assumed to be 0 if missing. --> 268*4bfccde5SXin Li <xsd:element name="micro" type="xsd:nonNegativeInteger" minOccurs="0" /> 269*4bfccde5SXin Li <!-- The preview/release candidate revision, an int > 0, 270*4bfccde5SXin Li incremented each time a new preview is generated. 271*4bfccde5SXin Li Not present for final releases. --> 272*4bfccde5SXin Li <xsd:element name="preview" type="xsd:positiveInteger" minOccurs="0" /> 273*4bfccde5SXin Li </xsd:all> 274*4bfccde5SXin Li </xsd:complexType> 275*4bfccde5SXin Li 276*4bfccde5SXin Li 277*4bfccde5SXin Li <!-- The definition of a path segment used by the extra element. --> 278*4bfccde5SXin Li 279*4bfccde5SXin Li <xsd:simpleType name="segmentType"> 280*4bfccde5SXin Li <xsd:annotation> 281*4bfccde5SXin Li <xsd:documentation> 282*4bfccde5SXin Li One path segment for the install path of an extra element. 283*4bfccde5SXin Li It must be a single-segment path. It must not be empty. 284*4bfccde5SXin Li </xsd:documentation> 285*4bfccde5SXin Li </xsd:annotation> 286*4bfccde5SXin Li <xsd:restriction base="xsd:token"> 287*4bfccde5SXin Li <xsd:pattern value="[a-zA-Z0-9_]+"/> 288*4bfccde5SXin Li </xsd:restriction> 289*4bfccde5SXin Li </xsd:simpleType> 290*4bfccde5SXin Li 291*4bfccde5SXin Li <xsd:simpleType name="segmentListType"> 292*4bfccde5SXin Li <xsd:annotation> 293*4bfccde5SXin Li <xsd:documentation> 294*4bfccde5SXin Li A semi-colon separated list of a segmentTypes. 295*4bfccde5SXin Li </xsd:documentation> 296*4bfccde5SXin Li </xsd:annotation> 297*4bfccde5SXin Li <xsd:restriction base="xsd:token"> 298*4bfccde5SXin Li <xsd:pattern value="[a-zA-Z0-9_;]+"/> 299*4bfccde5SXin Li </xsd:restriction> 300*4bfccde5SXin Li </xsd:simpleType> 301*4bfccde5SXin Li 302*4bfccde5SXin Li 303*4bfccde5SXin Li <!-- The definition of a license to be referenced by the uses-license element. --> 304*4bfccde5SXin Li 305*4bfccde5SXin Li <xsd:complexType name="licenseType"> 306*4bfccde5SXin Li <xsd:annotation> 307*4bfccde5SXin Li <xsd:documentation> 308*4bfccde5SXin Li A license definition. Such a license must be used later as a reference 309*4bfccde5SXin Li using a uses-license element in one of the package elements. 310*4bfccde5SXin Li </xsd:documentation> 311*4bfccde5SXin Li </xsd:annotation> 312*4bfccde5SXin Li <xsd:simpleContent> 313*4bfccde5SXin Li <xsd:extension base="xsd:string"> 314*4bfccde5SXin Li <xsd:attribute name="id" type="xsd:ID" /> 315*4bfccde5SXin Li <xsd:attribute name="type" type="xsd:token" fixed="text" /> 316*4bfccde5SXin Li </xsd:extension> 317*4bfccde5SXin Li </xsd:simpleContent> 318*4bfccde5SXin Li </xsd:complexType> 319*4bfccde5SXin Li 320*4bfccde5SXin Li 321*4bfccde5SXin Li <!-- Type describing the license used by a package. 322*4bfccde5SXin Li The license MUST be defined using a license node and referenced 323*4bfccde5SXin Li using the ref attribute of the license element inside a package. 324*4bfccde5SXin Li --> 325*4bfccde5SXin Li 326*4bfccde5SXin Li <xsd:complexType name="usesLicenseType"> 327*4bfccde5SXin Li <xsd:annotation> 328*4bfccde5SXin Li <xsd:documentation> 329*4bfccde5SXin Li Describes the license used by a package. The license MUST be defined 330*4bfccde5SXin Li using a license node and referenced using the ref attribute of the 331*4bfccde5SXin Li license element inside a package. 332*4bfccde5SXin Li </xsd:documentation> 333*4bfccde5SXin Li </xsd:annotation> 334*4bfccde5SXin Li <xsd:attribute name="ref" type="xsd:IDREF" /> 335*4bfccde5SXin Li </xsd:complexType> 336*4bfccde5SXin Li 337*4bfccde5SXin Li 338*4bfccde5SXin Li <!-- A collection of files that can be downloaded for a given architecture. 339*4bfccde5SXin Li The <archives> node is mandatory in the repository elements and the 340*4bfccde5SXin Li collection must have at least one <archive> declared. 341*4bfccde5SXin Li Each archive is a zip file that will be unzipped in a location that depends 342*4bfccde5SXin Li on its package type. 343*4bfccde5SXin Li --> 344*4bfccde5SXin Li 345*4bfccde5SXin Li <xsd:complexType name="archivesType"> 346*4bfccde5SXin Li <xsd:annotation> 347*4bfccde5SXin Li <xsd:documentation> 348*4bfccde5SXin Li A collection of files that can be downloaded for a given architecture. 349*4bfccde5SXin Li The <archives> node is mandatory in the repository packages and the 350*4bfccde5SXin Li collection must have at least one <archive> declared. 351*4bfccde5SXin Li Each archive is a zip file that will be unzipped in a location that depends 352*4bfccde5SXin Li on its package type. 353*4bfccde5SXin Li </xsd:documentation> 354*4bfccde5SXin Li </xsd:annotation> 355*4bfccde5SXin Li <xsd:sequence minOccurs="1" maxOccurs="unbounded"> 356*4bfccde5SXin Li <!-- One archive file --> 357*4bfccde5SXin Li <xsd:element name="archive"> 358*4bfccde5SXin Li <xsd:complexType> 359*4bfccde5SXin Li <!-- Properties of the archive file --> 360*4bfccde5SXin Li <xsd:all> 361*4bfccde5SXin Li <!-- The size in bytes of the archive to download. --> 362*4bfccde5SXin Li <xsd:element name="size" type="xsd:positiveInteger" /> 363*4bfccde5SXin Li <!-- The checksum of the archive file. --> 364*4bfccde5SXin Li <xsd:element name="checksum" type="sdk:checksumType" /> 365*4bfccde5SXin Li <!-- The URL is an absolute URL if it starts with http://, https:// 366*4bfccde5SXin Li or ftp://. Otherwise it is relative to the parent directory that 367*4bfccde5SXin Li contains this repository.xml --> 368*4bfccde5SXin Li <xsd:element name="url" type="xsd:token" /> 369*4bfccde5SXin Li </xsd:all> 370*4bfccde5SXin Li 371*4bfccde5SXin Li <!-- Attributes that identify the OS and architecture --> 372*4bfccde5SXin Li <xsd:attribute name="os" use="required"> 373*4bfccde5SXin Li <xsd:simpleType> 374*4bfccde5SXin Li <xsd:restriction base="xsd:token"> 375*4bfccde5SXin Li <xsd:enumeration value="any" /> 376*4bfccde5SXin Li <xsd:enumeration value="linux" /> 377*4bfccde5SXin Li <xsd:enumeration value="macosx" /> 378*4bfccde5SXin Li <xsd:enumeration value="windows" /> 379*4bfccde5SXin Li </xsd:restriction> 380*4bfccde5SXin Li </xsd:simpleType> 381*4bfccde5SXin Li </xsd:attribute> 382*4bfccde5SXin Li <xsd:attribute name="arch" use="optional"> 383*4bfccde5SXin Li <xsd:simpleType> 384*4bfccde5SXin Li <xsd:restriction base="xsd:token"> 385*4bfccde5SXin Li <xsd:enumeration value="any" /> 386*4bfccde5SXin Li <xsd:enumeration value="ppc" /> 387*4bfccde5SXin Li <xsd:enumeration value="x86" /> 388*4bfccde5SXin Li <xsd:enumeration value="x86_64" /> 389*4bfccde5SXin Li </xsd:restriction> 390*4bfccde5SXin Li </xsd:simpleType> 391*4bfccde5SXin Li </xsd:attribute> 392*4bfccde5SXin Li </xsd:complexType> 393*4bfccde5SXin Li </xsd:element> 394*4bfccde5SXin Li </xsd:sequence> 395*4bfccde5SXin Li </xsd:complexType> 396*4bfccde5SXin Li 397*4bfccde5SXin Li 398*4bfccde5SXin Li <!-- A collection of file paths available in an <extra> package 399*4bfccde5SXin Li that can be installed in an Android project. 400*4bfccde5SXin Li If present, the <project-files> collection must contain at least one path. 401*4bfccde5SXin Li Each path is relative to the root directory of the package. 402*4bfccde5SXin Li --> 403*4bfccde5SXin Li 404*4bfccde5SXin Li <xsd:complexType name="projectFilesType"> 405*4bfccde5SXin Li <xsd:annotation> 406*4bfccde5SXin Li <xsd:documentation> 407*4bfccde5SXin Li A collection of file paths available in an <extra> package 408*4bfccde5SXin Li that can be installed in an Android project. 409*4bfccde5SXin Li If present, the <project-files> collection must contain at least one path. 410*4bfccde5SXin Li Each path is relative to the root directory of the package. 411*4bfccde5SXin Li </xsd:documentation> 412*4bfccde5SXin Li </xsd:annotation> 413*4bfccde5SXin Li <xsd:sequence minOccurs="1" maxOccurs="unbounded"> 414*4bfccde5SXin Li <!-- One JAR Path, relative to the root folder of the package. --> 415*4bfccde5SXin Li <xsd:element name="path" type="xsd:string" /> 416*4bfccde5SXin Li </xsd:sequence> 417*4bfccde5SXin Li </xsd:complexType> 418*4bfccde5SXin Li 419*4bfccde5SXin Li 420*4bfccde5SXin Li <!-- The definition of a file checksum --> 421*4bfccde5SXin Li 422*4bfccde5SXin Li <xsd:simpleType name="sha1Number"> 423*4bfccde5SXin Li <xsd:annotation> 424*4bfccde5SXin Li <xsd:documentation>A SHA1 checksum.</xsd:documentation> 425*4bfccde5SXin Li </xsd:annotation> 426*4bfccde5SXin Li <xsd:restriction base="xsd:string"> 427*4bfccde5SXin Li <xsd:pattern value="([0-9a-fA-F]){40}"/> 428*4bfccde5SXin Li </xsd:restriction> 429*4bfccde5SXin Li </xsd:simpleType> 430*4bfccde5SXin Li 431*4bfccde5SXin Li <xsd:complexType name="checksumType"> 432*4bfccde5SXin Li <xsd:annotation> 433*4bfccde5SXin Li <xsd:documentation>A file checksum, currently only SHA1.</xsd:documentation> 434*4bfccde5SXin Li </xsd:annotation> 435*4bfccde5SXin Li <xsd:simpleContent> 436*4bfccde5SXin Li <xsd:extension base="sdk:sha1Number"> 437*4bfccde5SXin Li <xsd:attribute name="type" type="xsd:token" fixed="sha1" /> 438*4bfccde5SXin Li </xsd:extension> 439*4bfccde5SXin Li </xsd:simpleContent> 440*4bfccde5SXin Li </xsd:complexType> 441*4bfccde5SXin Li 442*4bfccde5SXin Li</xsd:schema> 443