From 86d67df8d57b9537666f9b54a9ca563779a2288b Mon Sep 17 00:00:00 2001 From: Adam Lesinski Date: Tue, 31 Jan 2017 13:47:27 -0800 Subject: AAPT2: Support CtsContentTestCases build - Add to ManifestFixer. - Support in - Add support for and type="configVarying". Some CTS tests use this old notation, we need to support it (even though configVarying isn't anything supported by the framework convention). Change-Id: I6946fa633ce513ea8437c1496db883cf27dcf6de Test: make aapt2_tests --- tools/aapt2/Resource.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tools/aapt2/Resource.cpp') diff --git a/tools/aapt2/Resource.cpp b/tools/aapt2/Resource.cpp index fdabce17433c..35971e7bd99b 100644 --- a/tools/aapt2/Resource.cpp +++ b/tools/aapt2/Resource.cpp @@ -39,6 +39,8 @@ StringPiece ToString(ResourceType type) { return "bool"; case ResourceType::kColor: return "color"; + case ResourceType::kConfigVarying: + return "configVarying"; case ResourceType::kDimen: return "dimen"; case ResourceType::kDrawable: @@ -85,6 +87,7 @@ static const std::map sResourceTypeMap{ {"^attr-private", ResourceType::kAttrPrivate}, {"bool", ResourceType::kBool}, {"color", ResourceType::kColor}, + {"configVarying", ResourceType::kConfigVarying}, {"dimen", ResourceType::kDimen}, {"drawable", ResourceType::kDrawable}, {"font", ResourceType::kFont}, -- cgit v1.2.3-59-g8ed1b