| Adam Lesinski | 6f6ceb7 | 2014-11-14 14:48:12 -0800 | [diff] [blame] | 1 | /* | 
 | 2 |  * Copyright (C) 2015 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 | #ifndef AAPT_SDK_CONSTANTS_H | 
 | 18 | #define AAPT_SDK_CONSTANTS_H | 
 | 19 |  | 
| Adam Lesinski | fb6312f | 2016-06-28 14:40:32 -0700 | [diff] [blame] | 20 | #include <utility> | 
 | 21 |  | 
| Adam Lesinski | d5083f6 | 2017-01-16 15:07:21 -0800 | [diff] [blame] | 22 | #include "androidfw/StringPiece.h" | 
 | 23 |  | 
| Adam Lesinski | ce5e56e | 2016-10-21 17:56:45 -0700 | [diff] [blame] | 24 | #include "Resource.h" | 
 | 25 |  | 
| Adam Lesinski | 6f6ceb7 | 2014-11-14 14:48:12 -0800 | [diff] [blame] | 26 | namespace aapt { | 
 | 27 |  | 
| Adam Lesinski | c744ae8 | 2017-05-17 19:28:38 -0700 | [diff] [blame] | 28 | using ApiVersion = int; | 
 | 29 |  | 
 | 30 | enum : ApiVersion { | 
| Adam Lesinski | cacb28f | 2016-10-19 12:18:14 -0700 | [diff] [blame] | 31 |   SDK_CUPCAKE = 3, | 
 | 32 |   SDK_DONUT = 4, | 
 | 33 |   SDK_ECLAIR = 5, | 
 | 34 |   SDK_ECLAIR_0_1 = 6, | 
 | 35 |   SDK_ECLAIR_MR1 = 7, | 
 | 36 |   SDK_FROYO = 8, | 
 | 37 |   SDK_GINGERBREAD = 9, | 
 | 38 |   SDK_GINGERBREAD_MR1 = 10, | 
 | 39 |   SDK_HONEYCOMB = 11, | 
 | 40 |   SDK_HONEYCOMB_MR1 = 12, | 
 | 41 |   SDK_HONEYCOMB_MR2 = 13, | 
 | 42 |   SDK_ICE_CREAM_SANDWICH = 14, | 
 | 43 |   SDK_ICE_CREAM_SANDWICH_MR1 = 15, | 
 | 44 |   SDK_JELLY_BEAN = 16, | 
 | 45 |   SDK_JELLY_BEAN_MR1 = 17, | 
 | 46 |   SDK_JELLY_BEAN_MR2 = 18, | 
 | 47 |   SDK_KITKAT = 19, | 
 | 48 |   SDK_KITKAT_WATCH = 20, | 
 | 49 |   SDK_LOLLIPOP = 21, | 
 | 50 |   SDK_LOLLIPOP_MR1 = 22, | 
 | 51 |   SDK_MARSHMALLOW = 23, | 
| Zak Cohen | 1a6acdb | 2016-12-12 15:21:21 -0800 | [diff] [blame] | 52 |   SDK_NOUGAT = 24, | 
 | 53 |   SDK_NOUGAT_MR1 = 25, | 
| Adam Lesinski | c744ae8 | 2017-05-17 19:28:38 -0700 | [diff] [blame] | 54 |   SDK_O = 26, | 
| Michael Wright | eec01ac | 2017-08-23 13:49:14 -0700 | [diff] [blame] | 55 |   SDK_O_MR1 = 27, | 
| Wale Ogunwale | 3da5f3b | 2018-04-11 15:12:31 -0700 | [diff] [blame] | 56 |   SDK_P = 28, | 
| Ian Pedowitz | 1912a57 | 2019-05-12 19:44:42 +0000 | [diff] [blame] | 57 |   SDK_Q = 29, | 
| Svet Ganov | 87ccbfa | 2020-04-15 15:10:14 -0700 | [diff] [blame] | 58 |   SDK_R = 30, | 
| Adam Lesinski | 6f6ceb7 | 2014-11-14 14:48:12 -0800 | [diff] [blame] | 59 | }; | 
 | 60 |  | 
| Adam Lesinski | c744ae8 | 2017-05-17 19:28:38 -0700 | [diff] [blame] | 61 | ApiVersion FindAttributeSdkLevel(const ResourceId& id); | 
| Ryan Mitchell | 48002f6 | 2019-04-11 14:29:25 -0700 | [diff] [blame] | 62 | Maybe<ApiVersion> GetDevelopmentSdkCodeNameVersion(const android::StringPiece& code_name); | 
| Adam Lesinski | 6f6ceb7 | 2014-11-14 14:48:12 -0800 | [diff] [blame] | 63 |  | 
| Adam Lesinski | cacb28f | 2016-10-19 12:18:14 -0700 | [diff] [blame] | 64 | }  // namespace aapt | 
| Adam Lesinski | 6f6ceb7 | 2014-11-14 14:48:12 -0800 | [diff] [blame] | 65 |  | 
| Adam Lesinski | cacb28f | 2016-10-19 12:18:14 -0700 | [diff] [blame] | 66 | #endif  // AAPT_SDK_CONSTANTS_H |