blob: a6dba8b0cd2b1b2145acdf0329c425c8678c4412 [file] [log] [blame]
Adam Lesinski6f6ceb72014-11-14 14:48:12 -08001/*
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
20#include "Resource.h"
21
Adam Lesinskifb6312f2016-06-28 14:40:32 -070022#include <utility>
23
Adam Lesinski6f6ceb72014-11-14 14:48:12 -080024namespace aapt {
25
26enum {
27 SDK_CUPCAKE = 3,
28 SDK_DONUT = 4,
29 SDK_ECLAIR = 5,
30 SDK_ECLAIR_0_1 = 6,
31 SDK_ECLAIR_MR1 = 7,
32 SDK_FROYO = 8,
33 SDK_GINGERBREAD = 9,
34 SDK_GINGERBREAD_MR1 = 10,
35 SDK_HONEYCOMB = 11,
36 SDK_HONEYCOMB_MR1 = 12,
37 SDK_HONEYCOMB_MR2 = 13,
38 SDK_ICE_CREAM_SANDWICH = 14,
39 SDK_ICE_CREAM_SANDWICH_MR1 = 15,
40 SDK_JELLY_BEAN = 16,
41 SDK_JELLY_BEAN_MR1 = 17,
42 SDK_JELLY_BEAN_MR2 = 18,
43 SDK_KITKAT = 19,
44 SDK_KITKAT_WATCH = 20,
45 SDK_LOLLIPOP = 21,
46 SDK_LOLLIPOP_MR1 = 22,
Adam Lesinski64254972015-11-03 16:16:17 -080047 SDK_MARSHMALLOW = 23,
Adam Lesinski6f6ceb72014-11-14 14:48:12 -080048};
49
Adam Lesinski75f3a552015-06-03 14:54:23 -070050size_t findAttributeSdkLevel(ResourceId id);
51size_t findAttributeSdkLevel(const ResourceName& name);
Adam Lesinskifb6312f2016-06-28 14:40:32 -070052std::pair<StringPiece16, int> getDevelopmentSdkCodeNameAndVersion();
Adam Lesinski6f6ceb72014-11-14 14:48:12 -080053
54} // namespace aapt
55
56#endif // AAPT_SDK_CONSTANTS_H