• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright (C) 2019 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 *      http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17syntax = "proto3";
18
19// The version of a single module.
20message SdkVersion {
21  int32 version = 1;
22}
23
24// All the modules that can be used for version requirements.
25enum SdkModule {
26  UNKNOWN = 0;
27
28  // R modules
29  CONSCRYPT = 10;
30  IPSEC = 1;
31  MEDIA = 2;
32  MEDIA_PROVIDER = 3;
33  PERMISSIONS = 4;
34  SDK_EXTENSIONS = 5;
35  STATSD = 6;
36  TETHERING = 7;
37
38  // S modules
39  ART = 8;
40  SCHEDULING = 9;
41}
42
43// A single extension version.
44message ExtensionVersion {
45  message ModuleRequirement {
46    SdkModule module = 1;
47    SdkVersion version = 2;
48  }
49
50  // The extension version.
51  int32 version = 1;
52
53  // The modules required for this extension version.
54  repeated ModuleRequirement requirements = 2;
55}
56
57// All the defined extension versions.
58message ExtensionDatabase {
59  repeated ExtensionVersion versions = 1;
60}
61