summaryrefslogtreecommitdiff
path: root/tools/aapt2/SdkConstants.cpp
diff options
context:
space:
mode:
author Yurii Zubrytskyi <zyy@google.com> 2024-07-11 15:35:02 -0700
committer Yurii Zubrytskyi <zyy@google.com> 2024-07-11 15:35:02 -0700
commit7571c0bbe3b07a2e7e41bd2844716179503a6e27 (patch)
tree0f2d8e62a9e5957448ced4bf2ee0219de1e488a3 /tools/aapt2/SdkConstants.cpp
parentc0ff9ea69bba7abb2318e67f670b8735955748ae (diff)
[aapt2] Update the array of the attributes per release
Well, not really update but at least record the values in a comment for now Test: builds Flag: EXEMPT comment-only change Change-Id: Ib9f06bd2ba6773c76cfb11cc9583e8f76de5c01d
Diffstat (limited to 'tools/aapt2/SdkConstants.cpp')
-rw-r--r--tools/aapt2/SdkConstants.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/aapt2/SdkConstants.cpp b/tools/aapt2/SdkConstants.cpp
index 83f2eb31aa57..37b1687fd3f1 100644
--- a/tools/aapt2/SdkConstants.cpp
+++ b/tools/aapt2/SdkConstants.cpp
@@ -64,6 +64,12 @@ static constexpr std::pair<uint16_t, ApiVersion> sAttrIdMap[] = {
{0x0616, SDK_R},
{0x064b, SDK_S},
{0x064c, SDK_S_V2},
+ // TODO(zyy): add these when we need more rules for converting new attributes to the
+ // older ones, but don't bother for now as this would increase the array size for no
+ // real benefit
+ // {0x0672, SDK_TIRAMISU},
+ // {0x0687, SDK_UPSIDE_DOWN_CAKE},
+ // {0x06a3, SDK_VANILLA_ICE_CREAM},
};
static_assert(std::is_sorted(std::begin(sAttrIdMap), std::end(sAttrIdMap),