1<?xml version="1.0" encoding="utf-8"?>
2<!--
3  ~ Copyright (C) 2020 The Android Open Source Project
4  ~
5  ~ Licensed under the Apache License, Version 2.0 (the "License");
6  ~ you may not use this file except in compliance with the License.
7  ~ You may obtain a copy of the License at
8  ~
9  ~      http://www.apache.org/licenses/LICENSE-2.0
10  ~
11  ~ Unless required by applicable law or agreed to in writing, software
12  ~ distributed under the License is distributed on an "AS IS" BASIS,
13  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  ~ See the License for the specific language governing permissions and
15  ~ limitations under the License.
16  -->
17<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
18  <xs:element name="apex-info-list">
19    <xs:complexType>
20      <xs:sequence>
21        <xs:element ref="apex-info" minOccurs="1" maxOccurs="unbounded"/>
22      </xs:sequence>
23    </xs:complexType>
24  </xs:element>
25
26  <xs:element name="apex-info">
27    <xs:complexType>
28      <xs:attribute name="moduleName" type="xs:string" use="required"/>
29      <xs:attribute name="modulePath" type="xs:string" use="required"/>
30      <xs:attribute name="preinstalledModulePath" type="xs:string"/>
31      <xs:attribute name="versionCode" type="xs:long" use="required"/>
32      <xs:attribute name="versionName" type="xs:string" use="required"/>
33      <xs:attribute name="isFactory" type="xs:boolean" use="required"/>
34      <xs:attribute name="isActive" type="xs:boolean" use="required"/>
35    </xs:complexType>
36  </xs:element>
37</xs:schema>
38