Skip to content

Commit

Permalink
Update AAPT for S V2.
Browse files Browse the repository at this point in the history
Bug: 204295952
Test: N/A
Change-Id: I14f5d90ae913248e0c9f5776963fa5f66c4f6a7a
Merged-In: I14f5d90ae913248e0c9f5776963fa5f66c4f6a7a
  • Loading branch information
Michael Wright committed Nov 5, 2021
1 parent 7c1c6a6 commit 6aa3b2c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions tools/aapt/SdkConstants.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ enum {
SDK_Q = 29,
SDK_R = 30,
SDK_S = 31,
SDK_S_V2 = 32,
};

#endif // H_AAPT_SDK_CONSTANTS
1 change: 1 addition & 0 deletions tools/aapt2/SdkConstants.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ static const std::vector<std::pair<uint16_t, ApiVersion>> sAttrIdMap = {
{0x0606, SDK_Q},
{0x0616, SDK_R},
{0x064b, SDK_S},
{0x064c, SDK_S_V2},
};

static bool less_entry_id(const std::pair<uint16_t, ApiVersion>& p, uint16_t entryId) {
Expand Down
1 change: 1 addition & 0 deletions tools/aapt2/SdkConstants.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ enum : ApiVersion {
SDK_Q = 29,
SDK_R = 30,
SDK_S = 31,
SDK_S_V2 = 32,
};

ApiVersion FindAttributeSdkLevel(const ResourceId& id);
Expand Down

0 comments on commit 6aa3b2c

Please sign in to comment.