diff options
Diffstat (limited to 'java/testing.go')
-rw-r--r-- | java/testing.go | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/java/testing.go b/java/testing.go index 63d7dba69..0764d264a 100644 --- a/java/testing.go +++ b/java/testing.go @@ -368,6 +368,7 @@ func gatherRequiredDepsForTest() string { "core.current.stubs", "legacy.core.platform.api.stubs", "stable.core.platform.api.stubs", + "kotlin-stdlib", "kotlin-stdlib-jdk7", "kotlin-stdlib-jdk8", @@ -387,6 +388,27 @@ func gatherRequiredDepsForTest() string { `, extra) } + extraApiLibraryModules := map[string]string{ + "android_stubs_current.from-text": "api/current.txt", + "android_system_stubs_current.from-text": "api/system-current.txt", + "android_test_stubs_current.from-text": "api/test-current.txt", + "android_module_lib_stubs_current.from-text": "api/module-lib-current.txt", + "android_system_server_stubs_current.from-text": "api/system-server-current.txt", + "core.current.stubs.from-text": "api/current.txt", + "legacy.core.platform.api.stubs.from-text": "api/current.txt", + "stable.core.platform.api.stubs.from-text": "api/current.txt", + "core-lambda-stubs.from-text": "api/current.txt", + } + + for libName, apiFile := range extraApiLibraryModules { + bp += fmt.Sprintf(` + java_api_library { + name: "%s", + api_files: ["%s"], + } + `, libName, apiFile) + } + bp += ` java_library { name: "framework", @@ -409,6 +431,10 @@ func gatherRequiredDepsForTest() string { "core-module-lib-stubs-system-modules", "legacy-core-platform-api-stubs-system-modules", "stable-core-platform-api-stubs-system-modules", + "core-public-stubs-system-modules.from-text", + "core-module-lib-stubs-system-modules.from-text", + "legacy-core-platform-api-stubs-system-modules.from-text", + "stable-core-platform-api-stubs-system-modules.from-text", } for _, extra := range systemModules { |