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