diff options
author | 2024-01-08 08:56:20 +0000 | |
---|---|---|
committer | 2024-01-12 01:50:19 +0000 | |
commit | f55a5f7b3732b79ad28a0ad7403fda5938e75db6 (patch) | |
tree | 28a2ef14279cfac5ce0d7bc97fd9f40a59171fe5 /java/droidstubs.go | |
parent | bd093457e2606e9525de0efa98e3c06eafe523af (diff) |
Copy exportable artifacts to module sdk snapshot
This change modifies the copy rules of the sdk_library when generating
the module sdk snapshots so that the exportable artifacts (annotations
zip, api file, removed api file, srcjar file) are copied instead of the
everything artifacts.
In order to satisfy the prebuilts compatibility, this feature is flag
guarded by the build flag "RELEASE_HIDDEN_API_EXPORTABLE_STUBS"
Test: m --no-skip-soong-tests
Bug: 315027929
Change-Id: I8bf5bb1f196aa9b5db78ba4677caa5f4337e3021
Diffstat (limited to 'java/droidstubs.go')
-rw-r--r-- | java/droidstubs.go | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/java/droidstubs.go b/java/droidstubs.go index bdbaf9281..ef1398894 100644 --- a/java/droidstubs.go +++ b/java/droidstubs.go @@ -196,6 +196,10 @@ type ApiStubsSrcProvider interface { StubsSrcJar() android.Path } +type ExportableApiStubsSrcProvider interface { + ExportableStubsSrcJar() android.Path +} + // Provider of information about API stubs, used by java_sdk_library. type ApiStubsProvider interface { AnnotationsZip() android.Path @@ -205,6 +209,14 @@ type ApiStubsProvider interface { ApiStubsSrcProvider } +type ExportableApiStubsProvider interface { + ExportableAnnotationsZip() android.Path + ExportableApiFilePath() android.Path + ExportableRemovedApiFilePath() android.Path + + ExportableApiStubsSrcProvider +} + type currentApiTimestampProvider interface { CurrentApiTimestamp() android.Path } |