OSDN Git Service

AAPT2: Treat non-AAPT attributes as Attributes with no format specified.
authorAdam Lesinski <adamlesinski@google.com>
Wed, 28 Dec 2016 17:25:46 +0000 (12:25 -0500)
committerAdam Lesinski <adamlesinski@google.com>
Wed, 28 Dec 2016 17:40:35 +0000 (12:40 -0500)
commit38665547bb10f65f72d3358fb16cdc63d5febf15
tree6a8053ce0d89d81546ed966c0c6fed082d7ff4a9
parentdb10a2094c7e12ea0f30972a91ed892e085c836f
AAPT2: Treat non-AAPT attributes as Attributes with no format specified.

Attributes in XML like "class" should be treated as attributes with no
format specified. That means that something like 'version="1"' will
be interpreted as an Integer value instead of as a string.

This is more in line with the old AAPT behaviour.
Bug: 30763349
Test: make libaapt2_tests

Change-Id: I02fe41617e3c62c354714056198ef480d62afee7
tools/aapt2/link/XmlReferenceLinker.cpp
tools/aapt2/link/XmlReferenceLinker_test.cpp