diff options
author | Izabela Orlowska <imorlowska@google.com> | 2018-03-27 14:46:52 +0100 |
---|---|---|
committer | Izabela Orlowska <imorlowska@google.com> | 2018-03-27 18:29:36 +0100 |
commit | c7ac3a1f4dbdb79171e274661d1521c704f1e063 (patch) | |
tree | 0b1f1649d52455f4e5609d48e714ed9c35cce89d /tools/aapt2/ResourceParser.h | |
parent | 6d976f82b79c856051a80799cc3d547408a9c868 (diff) |
AAPT2: add flag for forcing visibility level
Test: manual
Bug: 72735798
Change-Id: I29480e66384dd2da27e17ab454ac1fe8a033ee3e
Diffstat (limited to 'tools/aapt2/ResourceParser.h')
-rw-r--r-- | tools/aapt2/ResourceParser.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/aapt2/ResourceParser.h b/tools/aapt2/ResourceParser.h index fb9dbd0cd0fd..68130c2512d3 100644 --- a/tools/aapt2/ResourceParser.h +++ b/tools/aapt2/ResourceParser.h @@ -45,6 +45,10 @@ struct ResourceParserOptions { * warnings. */ bool error_on_positional_arguments = true; + + // If visibility was forced, we need to use it when creating a new resource and also error if we + // try to parse the <public>, <public-group>, <java-symbol> or <symbol> tags. + Maybe<Visibility::Level> visibility; }; /* |