Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2082e695 authored by Paul Duffin's avatar Paul Duffin
Browse files

Allow generate_hiddenapi_lists.py to work with no custom flag files

Previously, if generate_hiddenapi_lists.py was invoked without any
custom flag files, e.g. hiddenapi-unsupported.txt, then it would fail.
This change allows it to be used for generating the hiddenapi lists
for modules that do not have any custom flag files,
e.g. framework-sdkextensions

Bug: 179354495
Test: verified that the monolithic out/soong/hiddenapi/... files are
      unchanged by this change
Change-Id: I455d453024c9f06ed59cbc1e9838234f8b7c7317
parent 9a26f8cf
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -332,7 +332,7 @@ def parse_ordered_flags(ordered_flags):
def main(argv):
    # Parse arguments.
    args = vars(get_args())
    flagfiles = parse_ordered_flags(args['ordered_flags'])
    flagfiles = parse_ordered_flags(args['ordered_flags'] or [])

    # Initialize API->flags dictionary.
    flags = FlagsDict()