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/addons-list/2" 19*4bfccde5SXin Li xmlns:xsd="http://www.w3.org/2001/XMLSchema" 20*4bfccde5SXin Li xmlns:sa1="http://schemas.android.com/sdk/android/addons-list/2" 21*4bfccde5SXin Li elementFormDefault="qualified" 22*4bfccde5SXin Li attributeFormDefault="unqualified" 23*4bfccde5SXin Li version="1"> 24*4bfccde5SXin Li 25*4bfccde5SXin Li <!-- 26*4bfccde5SXin Li A simple list of add-ons sites that is loaded by default by the SDK Manager. 27*4bfccde5SXin Li 28*4bfccde5SXin Li - v1: Defines <addon-site> 29*4bfccde5SXin Li - v2: Adds support for <sys-img-site> 30*4bfccde5SXin Li --> 31*4bfccde5SXin Li 32*4bfccde5SXin Li <xsd:element name="sdk-addons-list" type="sa1:addonsListType" /> 33*4bfccde5SXin Li 34*4bfccde5SXin Li <xsd:complexType name="addonsListType"> 35*4bfccde5SXin Li <xsd:annotation> 36*4bfccde5SXin Li <xsd:documentation> 37*4bfccde5SXin Li A simple list of add-ons site. 38*4bfccde5SXin Li </xsd:documentation> 39*4bfccde5SXin Li </xsd:annotation> 40*4bfccde5SXin Li <xsd:choice minOccurs="0" maxOccurs="unbounded"> 41*4bfccde5SXin Li <xsd:element name="addon-site" type="sa1:addonSiteType" /> 42*4bfccde5SXin Li <xsd:element name="sys-img-site" type="sa1:sysImgSiteType" /> 43*4bfccde5SXin Li </xsd:choice> 44*4bfccde5SXin Li </xsd:complexType> 45*4bfccde5SXin Li 46*4bfccde5SXin Li <!-- The definition of an Add-on Site. --> 47*4bfccde5SXin Li 48*4bfccde5SXin Li <xsd:complexType name="addonSiteType"> 49*4bfccde5SXin Li <xsd:annotation> 50*4bfccde5SXin Li <xsd:documentation>An SDK add-on site.</xsd:documentation> 51*4bfccde5SXin Li </xsd:annotation> 52*4bfccde5SXin Li <xsd:all> 53*4bfccde5SXin Li <!-- The URL of the site. 54*4bfccde5SXin Li 55*4bfccde5SXin Li This can be either the exact URL of the an XML resource conforming 56*4bfccde5SXin Li to the latest sdk-addon-N.xsd schema, or it can be the URL of a 57*4bfccde5SXin Li 'directory', in which case the manager will look for a resource 58*4bfccde5SXin Li named 'addon.xml' at this location. 59*4bfccde5SXin Li 60*4bfccde5SXin Li Examples: 61*4bfccde5SXin Li http://www.example.com/android/my_addons.xml 62*4bfccde5SXin Li or 63*4bfccde5SXin Li http://www.example.com/android/ 64*4bfccde5SXin Li 65*4bfccde5SXin Li In the second example, the manager will actually look for: 66*4bfccde5SXin Li http://www.example.com/android/addon.xml 67*4bfccde5SXin Li --> 68*4bfccde5SXin Li <xsd:element name="url" type="xsd:token" /> 69*4bfccde5SXin Li 70*4bfccde5SXin Li <!-- The UI-visible name of the add-on site. --> 71*4bfccde5SXin Li <xsd:element name="name" type="xsd:normalizedString" /> 72*4bfccde5SXin Li 73*4bfccde5SXin Li </xsd:all> 74*4bfccde5SXin Li </xsd:complexType> 75*4bfccde5SXin Li 76*4bfccde5SXin Li <!-- The definition of an Sys-Img Site. --> 77*4bfccde5SXin Li 78*4bfccde5SXin Li <xsd:complexType name="sysImgSiteType"> 79*4bfccde5SXin Li <xsd:annotation> 80*4bfccde5SXin Li <xsd:documentation>An SDK sys-img site.</xsd:documentation> 81*4bfccde5SXin Li </xsd:annotation> 82*4bfccde5SXin Li <xsd:all> 83*4bfccde5SXin Li <!-- The URL of the site. 84*4bfccde5SXin Li 85*4bfccde5SXin Li This can be either the exact URL of the an XML resource conforming 86*4bfccde5SXin Li to the latest sdk-sys-img-N.xsd schema, or it can be the URL of a 87*4bfccde5SXin Li 'directory', in which case the manager will look for a resource 88*4bfccde5SXin Li named 'sysimg.xml' at this location. 89*4bfccde5SXin Li 90*4bfccde5SXin Li Examples: 91*4bfccde5SXin Li http://www.example.com/android/my_sys_img.xml 92*4bfccde5SXin Li or 93*4bfccde5SXin Li http://www.example.com/android/ 94*4bfccde5SXin Li 95*4bfccde5SXin Li In the second example, the manager will actually look for: 96*4bfccde5SXin Li http://www.example.com/android/sysimg.xml 97*4bfccde5SXin Li --> 98*4bfccde5SXin Li <xsd:element name="url" type="xsd:token" /> 99*4bfccde5SXin Li 100*4bfccde5SXin Li <!-- The UI-visible name of the sys-img site. --> 101*4bfccde5SXin Li <xsd:element name="name" type="xsd:normalizedString" /> 102*4bfccde5SXin Li 103*4bfccde5SXin Li </xsd:all> 104*4bfccde5SXin Li </xsd:complexType> 105*4bfccde5SXin Li 106*4bfccde5SXin Li</xsd:schema> 107