From 526093281276ae700ee4a0ccd182780034db8b40 Mon Sep 17 00:00:00 2001 From: Anton Hansson Date: Wed, 5 May 2021 10:36:05 +0100 Subject: [PATCH] Move stub providers to droidstubs.go They fit better there than in droiddoc.go. Test: m nothing Change-Id: I44588f1df2094f14881f920246bd19ffc6e1615c --- java/droiddoc.go | 17 ----------------- java/droidstubs.go | 17 +++++++++++++++++ 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/java/droiddoc.go b/java/droiddoc.go index 01c0f16ff..56e62473f 100644 --- a/java/droiddoc.go +++ b/java/droiddoc.go @@ -193,23 +193,6 @@ func apiCheckEnabled(ctx android.ModuleContext, apiToCheck ApiToCheck, apiVersio return false } -// Used by xsd_config -type ApiFilePath interface { - ApiFilePath() android.Path -} - -type ApiStubsSrcProvider interface { - StubsSrcJar() android.Path -} - -// Provider of information about API stubs, used by java_sdk_library. -type ApiStubsProvider interface { - ApiFilePath - RemovedApiFilePath() android.Path - - ApiStubsSrcProvider -} - // // Javadoc // diff --git a/java/droidstubs.go b/java/droidstubs.go index 2676f3d6c..3011250f7 100644 --- a/java/droidstubs.go +++ b/java/droidstubs.go @@ -146,6 +146,23 @@ type DroidstubsProperties struct { Write_sdk_values *bool } +// Used by xsd_config +type ApiFilePath interface { + ApiFilePath() android.Path +} + +type ApiStubsSrcProvider interface { + StubsSrcJar() android.Path +} + +// Provider of information about API stubs, used by java_sdk_library. +type ApiStubsProvider interface { + ApiFilePath + RemovedApiFilePath() android.Path + + ApiStubsSrcProvider +} + // droidstubs passes sources files through Metalava to generate stub .java files that only contain the API to be // documented, filtering out hidden classes and methods. The resulting .java files are intended to be passed to // a droiddoc module to generate documentation.