From 2db89e8fe993d86c5259d9f7ded7c61e9065c3c4 Mon Sep 17 00:00:00 2001 From: Raphael Date: Mon, 16 Nov 2009 18:00:59 -0800 Subject: [PATCH] SDK Manager: XML Schema for sdk-repository v2 v2 will be a full standalone schema, not reusing any parts of v1. Each package type is now defined using a named type, which means a v3 version would redifine the top element and could include some named types of v2. Unfortunately we cannot *extend* the top element from v1 because extension in XML Schema seems to imply a sequence (i.e. fixed order) whereas we use a "choice" mode to have 0..N of each types in any order. SDK BUG 2252825 Change-Id: I6809bd4486ef2d7f2473995ed5a0abb7fa377bdd --- .../sdklib/repository/sdk-repository-2.xsd | 405 ++++++++++++++++++ 1 file changed, 405 insertions(+) create mode 100755 tools/sdkmanager/libs/sdklib/src/com/android/sdklib/repository/sdk-repository-2.xsd diff --git a/tools/sdkmanager/libs/sdklib/src/com/android/sdklib/repository/sdk-repository-2.xsd b/tools/sdkmanager/libs/sdklib/src/com/android/sdklib/repository/sdk-repository-2.xsd new file mode 100755 index 000000000..79b762890 --- /dev/null +++ b/tools/sdkmanager/libs/sdklib/src/com/android/sdklib/repository/sdk-repository-2.xsd @@ -0,0 +1,405 @@ + + + + + + + + + + + + The repository contains collections of downloadable packages. + + + + + + + + + + + + + + + + + + An SDK platform package. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + An SDK add-on package. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + An SDK tool package. + + + + + + + + + + + + + + + + + + + + + + + + + An SDK doc package. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + An SDK extra package. This kind of package is for "free" + content and specifies in which fixed root directory it must be + installed. + The paths "add-ons", "platforms", "tools" and "docs" are + reserved and cannot be used. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + An SDK sample package. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + A license definition. Such a license must be used later as a reference + using a uses-license element in one of the package elements. + + + + + + + + + + + + + + + + Describes the license used by a package. The license MUST be defined + using a license node and referenced using the ref attribute of the + license element inside a package. + + + + + + + + + + + + A collection of files that can be downloaded for a given architecture. + The <archives> node is mandatory in the repository packages and the + collection must have at least one <archive> declared. + Each archive is a zip file that will be unzipped in a location that depends + on its package type. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + A SHA1 checksum. + + + + + + + + + A file checksum, currently only SHA1. + + + + + + + + + +