summaryrefslogtreecommitdiff
path: root/tools/aapt2/SdkConstants.h
diff options
context:
space:
mode:
authorAdam Lesinski <adamlesinski@google.com>2015-06-03 14:54:23 -0700
committerAdam Lesinski <adamlesinski@google.com>2015-06-04 11:37:05 -0700
commit75f3a55cc569a9b61f540a85d9828e91bdca5047 (patch)
tree1055d807109f55e29da595938348d87b6ea43326 /tools/aapt2/SdkConstants.h
parent4573dddcce3f232d2eeb20bfe0e204e15a9416e9 (diff)
AAPT2: Change xml file parsing to DOM based
We modify the XML of layouts and AndroidManifest enough that it warrants we operate on the tree in memory. These files are never very large so this should be fine. Change-Id: I5d597abdb3fca2a203cf7c0b40fcd926aecb3137
Diffstat (limited to 'tools/aapt2/SdkConstants.h')
-rw-r--r--tools/aapt2/SdkConstants.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/tools/aapt2/SdkConstants.h b/tools/aapt2/SdkConstants.h
index 469c355ff640..803da03743c5 100644
--- a/tools/aapt2/SdkConstants.h
+++ b/tools/aapt2/SdkConstants.h
@@ -19,8 +19,6 @@
#include "Resource.h"
-#include <string>
-
namespace aapt {
enum {
@@ -46,7 +44,8 @@ enum {
SDK_LOLLIPOP_MR1 = 22,
};
-size_t findAttributeSdkLevel(const std::u16string& name);
+size_t findAttributeSdkLevel(ResourceId id);
+size_t findAttributeSdkLevel(const ResourceName& name);
} // namespace aapt