1 /*
2  * Copyright (C) 2016 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 
17 package com.android.apksig.internal.util;
18 
19 /**
20  * Android SDK version / API Level constants.
21  */
22 public abstract class AndroidSdkVersion {
23 
24     /** Hidden constructor to prevent instantiation. */
AndroidSdkVersion()25     private AndroidSdkVersion() {}
26 
27     /** Android 2.3. */
28     public static final int GINGERBREAD = 9;
29 
30     /** Android 4.3. The revenge of the beans. */
31     public static final int JELLY_BEAN_MR2 = 18;
32 
33     /** Android 4.4. KitKat, another tasty treat. */
34     public static final int KITKAT = 19;
35 
36     /** Android 5.0. A flat one with beautiful shadows. But still tasty. */
37     public static final int LOLLIPOP = 21;
38 
39     /** Android 6.0. M is for Marshmallow! */
40     public static final int M = 23;
41 
42     /** Android 7.0. N is for Nougat. */
43     public static final int N = 24;
44 
45     /** Android O. */
46     public static final int O = 26;
47 
48     /** Android P. */
49     public static final int P = 28;
50 
51     /** Android R. */
52     public static final int R = 30;
53 }
54