summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Treehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com> 2024-07-16 19:08:10 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2024-07-16 19:08:10 +0000
commitaa5128a379954668b3f28bfd802e80b36d2c20a4 (patch)
treeb91a9e4bd38572a263270d0d319f41d0ecfde7b0
parent3a93b970d79f5851ee7460de9c7ec4eee4020236 (diff)
parent7571c0bbe3b07a2e7e41bd2844716179503a6e27 (diff)
Merge "[aapt2] Update the array of the attributes per release" into main
-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),