diff options
Diffstat (limited to 'tools/aapt2/SdkConstants.h')
-rw-r--r-- | tools/aapt2/SdkConstants.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/tools/aapt2/SdkConstants.h b/tools/aapt2/SdkConstants.h index c2ee2524c5e8..e3745e8ce0da 100644 --- a/tools/aapt2/SdkConstants.h +++ b/tools/aapt2/SdkConstants.h @@ -25,7 +25,9 @@ namespace aapt { -enum : int { +using ApiVersion = int; + +enum : ApiVersion { SDK_CUPCAKE = 3, SDK_DONUT = 4, SDK_ECLAIR = 5, @@ -49,12 +51,12 @@ enum : int { SDK_MARSHMALLOW = 23, SDK_NOUGAT = 24, SDK_NOUGAT_MR1 = 25, - SDK_O = 26, // STOPSHIP Replace with real version + SDK_O = 26, }; -size_t FindAttributeSdkLevel(const ResourceId& id); -size_t FindAttributeSdkLevel(const ResourceName& name); -std::pair<android::StringPiece, int> GetDevelopmentSdkCodeNameAndVersion(); +ApiVersion FindAttributeSdkLevel(const ResourceId& id); +ApiVersion FindAttributeSdkLevel(const ResourceName& name); +std::pair<android::StringPiece, ApiVersion> GetDevelopmentSdkCodeNameAndVersion(); } // namespace aapt |