platform_build_soong/scripts/hiddenapi
Paul Duffin 2aae98f029 Maintain header order in merge_csv
Previously, if the --header property was not specified then merge_csv
would use a header constructed by sorting all the fields in the input
files. That required that any use of merge_csv which did not already
have headers in the required order would have to explicitly specify the
headers. That made it harder to use merge_csv as a generic tool as each
invocation needed to be aware of what headers were exported in the
output.

This change causes merge_csv to simply use the headers in the order in
which they are encountered in the input files. That removes the need to
specify the --header option when generating the index files.

Bug: 179354495
Test: m out/soong/hiddenapi/hiddenapi-index.csv out/soong/hiddenapi/hiddenapi-unsupported.csv
      - make sure that they are not changed by this change.
Merged-In: I420b7d07aea85af6372cd7580a8be5e2cc82a513
Change-Id: I420b7d07aea85af6372cd7580a8be5e2cc82a513
(cherry picked from commit 84c1cdf31f8f888ee9c0beb201d35ad9d293c341)
2021-06-16 03:06:33 +01:00
..
Android.bp Validate monolithic and modular hidden API flags are consistent 2021-05-14 01:49:19 +01:00
generate_hiddenapi_lists.py Allow generate_hiddenapi_lists.py to work with no custom flag files 2021-04-21 17:15:25 +01:00
generate_hiddenapi_lists_test.py Move hiddenapi tools used by build/soong from frameworks/base 2021-02-09 10:46:36 +00:00
merge_csv.py Maintain header order in merge_csv 2021-06-16 03:06:33 +01:00
verify_overlaps.py Validate monolithic and modular hidden API flags are consistent 2021-05-14 01:49:19 +01:00