diff options
author | 2023-04-03 16:37:53 +0000 | |
---|---|---|
committer | 2023-04-03 16:37:53 +0000 | |
commit | 77e3278c50efce9ca2faf94883954864ebdee73c (patch) | |
tree | ee5e879072cdbbd624e8c61a57ddbc35d412f7bc /java/sdk.go | |
parent | 2173e6545a45819c1e276b17ad6145d85940f217 (diff) | |
parent | e339a2d9a3674c0577e87d2004c6327e56e0f00f (diff) |
Merge "Rename core stubs to .txt stubs if applicable"
Diffstat (limited to 'java/sdk.go')
-rw-r--r-- | java/sdk.go | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/java/sdk.go b/java/sdk.go index 72a50067c..1b18ba40a 100644 --- a/java/sdk.go +++ b/java/sdk.go @@ -148,10 +148,11 @@ func decodeSdkDep(ctx android.EarlyModuleContext, sdkContext android.SdkContext) toModule := func(module string, aidl android.Path) sdkDep { // Select the kind of system modules needed for the sdk version. systemModulesKind := systemModuleKind(sdkVersion.Kind, android.FutureApiLevel) + systemModules := android.JavaApiLibraryName(ctx.Config(), fmt.Sprintf("core-%s-stubs-system-modules", systemModulesKind)) return sdkDep{ useModule: true, bootclasspath: []string{module, config.DefaultLambdaStubsLibrary}, - systemModules: fmt.Sprintf("core-%s-stubs-system-modules", systemModulesKind), + systemModules: systemModules, java9Classpath: []string{module}, frameworkResModule: "framework-res", aidl: android.OptionalPathForPath(aidl), @@ -196,8 +197,8 @@ func decodeSdkDep(ctx android.EarlyModuleContext, sdkContext android.SdkContext) case android.SdkCore: return sdkDep{ useModule: true, - bootclasspath: []string{"core.current.stubs", config.DefaultLambdaStubsLibrary}, - systemModules: "core-public-stubs-system-modules", + bootclasspath: []string{android.SdkCore.JavaLibraryName(ctx.Config()), config.DefaultLambdaStubsLibrary}, + systemModules: android.JavaApiLibraryName(ctx.Config(), "core-public-stubs-system-modules"), noFrameworksLibs: true, } case android.SdkModule: |