blob: 829c14cadff1b833056d152db0bab3ec5a4aeda9 [file] [log] [blame]
satayev075d07c2021-05-10 12:31:50 +01001/*
2 * Copyright (C) 2021 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
19enum Classpath {
20 UNKNOWN = 0;
21 BOOTCLASSPATH = 1;
22 SYSTEMSERVERCLASSPATH = 2;
23 DEX2OATBOOTCLASSPATH = 3;
24}
25
26// Individual entry in a classpath variable.
27message Jar {
28
satayev4239d7b2021-05-18 19:32:02 +010029 // Path on the filesystem for the jar.
30 string path = 1;
satayev075d07c2021-05-10 12:31:50 +010031
32 // Environ classpath variable this jar belongs to.
33 // Must be set to a known classpath.
34 Classpath classpath = 2;
35
36 // Minimum API level required for the jar to be included on the classpath.
37 // If the system's API level is lower than the value specified in this
38 // attribute, the jar will not be included in the classpath.
satayev94b14302021-11-09 14:41:18 +000039 // Not setting this attribute implies the jar can be used on all API levels.
40 string min_sdk_version = 3;
satayev075d07c2021-05-10 12:31:50 +010041
42 // Maximum API level that the jar file supports.
satayev4239d7b2021-05-18 19:32:02 +010043 // If the system's API level is higher than the value specified in this
satayev075d07c2021-05-10 12:31:50 +010044 // attribute, the jar will not be included in the classpath.
satayev94b14302021-11-09 14:41:18 +000045 // Not setting this attribute implies unbound maximum.
46 string max_sdk_version = 4;
satayev075d07c2021-05-10 12:31:50 +010047}
48
49// Jars exported by a single partition.
50message ExportedClasspathsJars {
51
52 // All jars that are exported as part of any classpath environ variable
53 // (according to API level restrictions).
54 // The relative order of the jars is preserved upon final merging.
55 repeated Jar jars = 1;
56
57}