summaryrefslogtreecommitdiff
path: root/tools/hiddenapi/merge_csv.py
AgeCommit message (Collapse)Author
2021-02-09Move hiddenapi tools used by build/soong into build/soongPaul Duffin
Bug: 177317659 Test: m nothing build/soong/scripts/hiddenapi/generate_hiddenapi_lists_test.py Change-Id: I72386e5343215864cd3af9c102fff16a5715b2ca
2020-02-19Use argparse in merge_csv.py.Artur Satayev
- Allow passing list of explicit fieldnames, instead of sorting header names. - Allow passing a single zip file with all CSV files to merge. Bug: 145132366 Test: diff -w out/soong/hiddenapi/hiddenapi-greylist.csv Change-Id: I7c6db369069452293c15eec290c635fb3879275d
2020-01-29Use py3 features in merge_csv.py.Artur Satayev
- Use csv.QUOTE_MINIMAL strategy to only quote fields with special characters. - Open file as 'r', not 'rb'. - Use 'unix' dialect for '\n' as line terminator, instead of \r\n. Bug: 145132366 Test: diff -w out/soong/hiddenapi/hiddenapi-greylist.csv Change-Id: I888f3219beee5b83e53f05589a90a05f93399fe3
2018-10-16Merge hidden API metadata into a single CSV file.Mathew Inwood
Add a python script to merge the CSV files, dealing with the fact that the source columns may differ due to the annotation properties present in the source. Add this new file and the existing greylist.txt files as dependencies of the 'dist' target, so that they appear as artifacts on the build server. This allows them to be processed later by reading them from the build server. Test: m out/target/common/obj/PACKAGING/hiddenapi-greylist.csv Bug: 117314178 Change-Id: Ib9e5da90e4c32333a3f4f02ee7f159f77086ae5e