summaryrefslogtreecommitdiff
path: root/java/sdk.go
diff options
context:
space:
mode:
author Mark White <anothermark@google.com> 2023-08-10 00:07:03 +0000
committer Anton Hansson <hansson@google.com> 2023-10-23 15:25:55 +0000
commit9421c4ceb912ffb27df86d3a9cb0c8e5609e0384 (patch)
tree94cc44ecff206cc2904b2fb3657cee8f15daaa05 /java/sdk.go
parentc70be4b986b0d2ec52c6a899b3c6d7fb0015b9bf (diff)
SdkTestCore for non-updatable modules
Provides SdkTestCore/test_core_current sdk_version for non-updatable modules that have their test scope dependent on test apis from framework-minus-apex. Ignore-AOSP-First: Change in topic with internal-first projects Bug: 289776578 Test: m checkapi | go test ./java Merged-In: Iba3213e8c34ea75ac9dd8532a95ef62fb5455e6c Change-Id: Iba3213e8c34ea75ac9dd8532a95ef62fb5455e6c
Diffstat (limited to 'java/sdk.go')
-rw-r--r--java/sdk.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/java/sdk.go b/java/sdk.go
index 7c702c405..ddd99bb33 100644
--- a/java/sdk.go
+++ b/java/sdk.go
@@ -76,7 +76,8 @@ func systemModuleKind(sdkKind android.SdkKind, apiLevel android.ApiLevel) androi
// Core is by definition what is included in the system module for the public API so should
// just use its system modules.
systemModuleKind = android.SdkPublic
- } else if systemModuleKind == android.SdkSystem || systemModuleKind == android.SdkTest {
+ } else if systemModuleKind == android.SdkSystem || systemModuleKind == android.SdkTest ||
+ systemModuleKind == android.SdkTestFrameworksCore {
// The core system and test APIs are currently the same as the public API so they should use
// its system modules.
systemModuleKind = android.SdkPublic
@@ -192,7 +193,7 @@ func decodeSdkDep(ctx android.EarlyModuleContext, sdkContext android.SdkContext)
bootclasspath: corePlatformBootclasspathLibraries(ctx),
noFrameworksLibs: true,
}
- case android.SdkPublic, android.SdkSystem, android.SdkTest:
+ case android.SdkPublic, android.SdkSystem, android.SdkTest, android.SdkTestFrameworksCore:
return toModule(sdkVersion.Kind.DefaultJavaLibraryName(), sdkFrameworkAidlPath(ctx))
case android.SdkCore:
return sdkDep{