Merge "Move stub providers to droidstubs.go" am: 93e8f79577 am: 6e2cb706a9

Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1697050

Change-Id: I4ba9fb69d07b6ce5c7d7bed21b0d2a10e20b019c
This commit is contained in:
Anton Hansson 2021-05-05 14:07:10 +00:00 committed by Automerger Merge Worker
commit 1c7a3af8e9
2 changed files with 17 additions and 17 deletions

View File

@ -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
//

View File

@ -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.