summaryrefslogtreecommitdiff
path: root/sdk/java_sdk_test.go
diff options
context:
space:
mode:
authorPaul Duffin <paulduffin@google.com>2020-07-20 18:04:44 +0100
committerPaul Duffin <paulduffin@google.com>2020-07-20 20:51:25 +0100
commit15f34ef811e537513c8e95ce3d2709a772a9f17b (patch)
tree000aa1a0b040372c5f96d1b7e77ab7617cf870b2 /sdk/java_sdk_test.go
parentf70ceecc4c73fc265255a51ab2f81331d16fe285 (diff)
Generate module lib API and scope together
Previously, due to limitations in metalava the module lib API and stubs source were generated separately. That limitation has since been removed so this change optimizes the generating code. Changes: * Add an annotation field to apiScope to contain the annotation that identifies the scope. * Rename droidstubArgs to extraArgs to better reflect that they are not passed to droidstubs. * Rename droidstubsArgsForGeneratingStubsSource to droidstubsArgs. * Remove droidstubsArgsForGeneratingApi and createStubsSourceAndApiTogether fields along with code that supports generating stubs source and the API separately. * Fix the module lib test. Test: m checkapi Bug: 161364853 Change-Id: I821886bb68645addf5ae9c96ed2f4f3649151d1a
Diffstat (limited to 'sdk/java_sdk_test.go')
-rw-r--r--sdk/java_sdk_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/sdk/java_sdk_test.go b/sdk/java_sdk_test.go
index aee04a163..6fefc2875 100644
--- a/sdk/java_sdk_test.go
+++ b/sdk/java_sdk_test.go
@@ -1424,8 +1424,8 @@ sdk_snapshot {
.intermediates/myjavalib.stubs.source.system/android_common/myjavalib.stubs.source.system_api.txt -> sdk_library/system/myjavalib.txt
.intermediates/myjavalib.stubs.source.system/android_common/myjavalib.stubs.source.system_removed.txt -> sdk_library/system/myjavalib-removed.txt
.intermediates/myjavalib.stubs.module_lib/android_common/javac/myjavalib.stubs.module_lib.jar -> sdk_library/module-lib/myjavalib-stubs.jar
-.intermediates/myjavalib.api.module_lib/android_common/myjavalib.api.module_lib_api.txt -> sdk_library/module-lib/myjavalib.txt
-.intermediates/myjavalib.api.module_lib/android_common/myjavalib.api.module_lib_removed.txt -> sdk_library/module-lib/myjavalib-removed.txt
+.intermediates/myjavalib.stubs.source.module_lib/android_common/myjavalib.stubs.source.module_lib_api.txt -> sdk_library/module-lib/myjavalib.txt
+.intermediates/myjavalib.stubs.source.module_lib/android_common/myjavalib.stubs.source.module_lib_removed.txt -> sdk_library/module-lib/myjavalib-removed.txt
`),
checkMergeZips(
".intermediates/mysdk/common_os/tmp/sdk_library/public/myjavalib_stub_sources.zip",