• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 1.0 */
28     public static final int INITIAL_RELEASE = 1;
29 
30     /** Android 2.3. */
31     public static final int GINGERBREAD = 9;
32 
33     /** Android 3.0 */
34     public static final int HONEYCOMB = 11;
35 
36     /** Android 4.3. The revenge of the beans. */
37     public static final int JELLY_BEAN_MR2 = 18;
38 
39     /** Android 4.4. KitKat, another tasty treat. */
40     public static final int KITKAT = 19;
41 
42     /** Android 5.0. A flat one with beautiful shadows. But still tasty. */
43     public static final int LOLLIPOP = 21;
44 
45     /** Android 6.0. M is for Marshmallow! */
46     public static final int M = 23;
47 
48     /** Android 7.0. N is for Nougat. */
49     public static final int N = 24;
50 
51     /** Android O. */
52     public static final int O = 26;
53 
54     /** Android P. */
55     public static final int P = 28;
56 
57     /** Android Q. */
58     public static final int Q = 29;
59 
60     /** Android R. */
61     public static final int R = 30;
62 
63     /** Android S. */
64     public static final int S = 31;
65 
66     /** Android Sv2. */
67     public static final int Sv2 = 32;
68 
69     /** Android T. */
70     public static final int T = 33;
71 }
72