summaryrefslogtreecommitdiff
path: root/api
diff options
context:
space:
mode:
authorAnton Hansson <hansson@google.com>2020-11-05 20:21:08 +0000
committerAnton Hansson <hansson@google.com>2020-11-10 07:53:14 +0000
commitd75144f25c509f5c9ff90d2bb96fcb8e14bc5a53 (patch)
treec1d3a3762266e69aafce4c33a7363869ce3db9bc /api
parent32f5d14ceff7f4650cf2882380bd2f9e6845912a (diff)
Re-submit "Add genrule for combined srcjar of modules"
The sources of the stubs are shipped as part of the public SDK. Currently the SDK depends on the output of the monolithic metalava run, but it can be assembled by merging the srcjars of the individual runs. There is a diff -- module stub sources contain javadoc comments. I don't think has any negative impact. Also package-info.html files are included, which probably is fine. Bug: 169034951 Test: diff new output with existing monolith Test: TARGET_BUILD_APPS=foo m nothing Change-Id: I851ff8e87476b8e22abdcfe1d75da5d82030f302 Merged-In: I851ff8e87476b8e22abdcfe1d75da5d82030f302 (cherry picked from commit 89c74dc41c8ab156c82df30f867e66e970058677)
Diffstat (limited to 'api')
-rw-r--r--api/Android.bp19
1 files changed, 19 insertions, 0 deletions
diff --git a/api/Android.bp b/api/Android.bp
index ae0d59635e8f..471b9930eddb 100644
--- a/api/Android.bp
+++ b/api/Android.bp
@@ -57,6 +57,25 @@ genrule {
}
genrule {
+ name: "frameworks-base-api-current.srcjar",
+ srcs: [
+ ":api-stubs-docs-non-updatable",
+ ":conscrypt.module.public.api{.public.stubs.source}",
+ ":framework-media{.public.stubs.source}",
+ ":framework-mediaprovider{.public.stubs.source}",
+ ":framework-permission{.public.stubs.source}",
+ ":framework-sdkextensions{.public.stubs.source}",
+ ":framework-statsd{.public.stubs.source}",
+ ":framework-tethering{.public.stubs.source}",
+ ":framework-wifi{.public.stubs.source}",
+ ],
+ out: ["current.srcjar"],
+ tools: ["merge_zips"],
+ cmd: "$(location merge_zips) $(out) $(in)",
+ visibility: ["//visibility:private"], // Used by make module in //development, mind.
+}
+
+genrule {
name: "frameworks-base-api-removed.txt",
srcs: [
":conscrypt.module.public.api{.public.removed-api.txt}",