2014-11-14 14:48:12 -08:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2015 The Android Open Source Project
|
|
|
|
*
|
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
* you may not use this file except in compliance with the License.
|
|
|
|
* You may obtain a copy of the License at
|
|
|
|
*
|
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
*
|
|
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
* See the License for the specific language governing permissions and
|
|
|
|
* limitations under the License.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef AAPT_SDK_CONSTANTS_H
|
|
|
|
#define AAPT_SDK_CONSTANTS_H
|
|
|
|
|
|
|
|
#include "Resource.h"
|
|
|
|
|
2016-06-28 14:40:32 -07:00
|
|
|
#include <utility>
|
|
|
|
|
2014-11-14 14:48:12 -08:00
|
|
|
namespace aapt {
|
|
|
|
|
|
|
|
enum {
|
|
|
|
SDK_CUPCAKE = 3,
|
|
|
|
SDK_DONUT = 4,
|
|
|
|
SDK_ECLAIR = 5,
|
|
|
|
SDK_ECLAIR_0_1 = 6,
|
|
|
|
SDK_ECLAIR_MR1 = 7,
|
|
|
|
SDK_FROYO = 8,
|
|
|
|
SDK_GINGERBREAD = 9,
|
|
|
|
SDK_GINGERBREAD_MR1 = 10,
|
|
|
|
SDK_HONEYCOMB = 11,
|
|
|
|
SDK_HONEYCOMB_MR1 = 12,
|
|
|
|
SDK_HONEYCOMB_MR2 = 13,
|
|
|
|
SDK_ICE_CREAM_SANDWICH = 14,
|
|
|
|
SDK_ICE_CREAM_SANDWICH_MR1 = 15,
|
|
|
|
SDK_JELLY_BEAN = 16,
|
|
|
|
SDK_JELLY_BEAN_MR1 = 17,
|
|
|
|
SDK_JELLY_BEAN_MR2 = 18,
|
|
|
|
SDK_KITKAT = 19,
|
|
|
|
SDK_KITKAT_WATCH = 20,
|
|
|
|
SDK_LOLLIPOP = 21,
|
|
|
|
SDK_LOLLIPOP_MR1 = 22,
|
2015-11-03 16:16:17 -08:00
|
|
|
SDK_MARSHMALLOW = 23,
|
2014-11-14 14:48:12 -08:00
|
|
|
};
|
|
|
|
|
2016-08-10 14:15:30 -07:00
|
|
|
size_t findAttributeSdkLevel(const ResourceId& id);
|
2015-06-03 14:54:23 -07:00
|
|
|
size_t findAttributeSdkLevel(const ResourceName& name);
|
2016-07-08 15:00:32 -07:00
|
|
|
std::pair<StringPiece, int> getDevelopmentSdkCodeNameAndVersion();
|
2014-11-14 14:48:12 -08:00
|
|
|
|
|
|
|
} // namespace aapt
|
|
|
|
|
|
|
|
#endif // AAPT_SDK_CONSTANTS_H
|