summaryrefslogtreecommitdiff
path: root/tools/aapt2/ResourceParser.h
diff options
context:
space:
mode:
author Jeremy Meyer <jakmcbane@google.com> 2024-09-03 16:31:54 -0700
committer Jeremy Meyer <jakmcbane@google.com> 2024-09-25 15:07:42 -0700
commit988be5d914334668ad25f8f993ec47442b3de33d (patch)
tree20e5f269b4f0eabc7938feaccc7a1fe85980ec5b /tools/aapt2/ResourceParser.h
parent3d8d4a18c2bd4d697692ea30471852c90e7a3775 (diff)
Add support for flag in resource directory names
This only applies it to the xml files with the top level element of resources. Other file support will be in a later CL. Test: Automated Bug: 329436914 Flag: EXEMPT Aconfig not supported on host tools Change-Id: I5e1e341e9de61073d05d9098b1b8b836025910b3
Diffstat (limited to 'tools/aapt2/ResourceParser.h')
-rw-r--r--tools/aapt2/ResourceParser.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/aapt2/ResourceParser.h b/tools/aapt2/ResourceParser.h
index a789d3e90770..4ad334c94518 100644
--- a/tools/aapt2/ResourceParser.h
+++ b/tools/aapt2/ResourceParser.h
@@ -57,6 +57,11 @@ struct ResourceParserOptions {
std::optional<Visibility::Level> visibility;
FeatureFlagValues feature_flag_values;
+
+ // The flag that should be applied to all resources parsed
+ std::optional<FeatureFlagAttribute> flag;
+
+ FlagStatus flag_status = FlagStatus::NoFlag;
};
struct FlattenedXmlSubTree {