Make unsupportedappusage_index.csv a build artifact.

Add the output of unsupportedappusage-annotation-processor as a build artifact to make it available for the hiddenapi ayeaye analyzer.

Test: build artifact appears in treehuger, found by ayeaye.
Bug: 135601059
Change-Id: If3ef7bde96e008127694a8b0aa25bf19767faf1c
This commit is contained in:
Anna Trostanetski
2019-06-26 14:47:58 +01:00
committed by atrost
parent 73b4106d7e
commit 97088e9909

View File

@@ -756,6 +756,7 @@ java_library {
java_library {
name: "framework-annotation-proc",
defaults: ["framework-defaults"],
installable: false,
// Use UsedByApps annotation processor
plugins: ["unsupportedappusage-annotation-processor"],
}
@@ -1715,3 +1716,13 @@ aidl_mapping {
srcs: [":framework-defaults"],
output: "framework-aidl-mappings.txt",
}
genrule {
name: "framework-annotation-proc-index",
srcs: [":framework-annotation-proc"],
cmd: "unzip -qp $(in) unsupportedappusage/unsupportedappusage_index.csv > $(out)",
out: ["unsupportedappusage_index.csv"],
dist: {
targets: ["droidcore"],
},
}