summaryrefslogtreecommitdiff
path: root/java/sdk_library.go
diff options
context:
space:
mode:
author Ulyana Trafimovich <skvadrik@google.com> 2020-12-22 10:14:41 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2020-12-22 10:14:41 +0000
commitb630c37d61c5308c1309ff4433c08ef701116170 (patch)
tree34dc6fc986cd23ad0172397e9aa6241c8f8575fb /java/sdk_library.go
parentd8065c606cf35226d9f766db7f0d383935e09ee8 (diff)
parent88bb6f63425e9686b6cb45e0fd3e7b2be52e4d40 (diff)
Merge changes I6a512209,I56437f26
* changes: Unify addition of class loader subcontext from dependencies. Move ClassLoaderContexts() method to UsesLibraryDependency interface.
Diffstat (limited to 'java/sdk_library.go')
-rw-r--r--java/sdk_library.go10
1 files changed, 8 insertions, 2 deletions
diff --git a/java/sdk_library.go b/java/sdk_library.go
index 2e10f9c71..92b554bd9 100644
--- a/java/sdk_library.go
+++ b/java/sdk_library.go
@@ -28,6 +28,7 @@ import (
"github.com/google/blueprint/proptools"
"android/soong/android"
+ "android/soong/dexpreopt"
)
const (
@@ -2020,7 +2021,7 @@ func (module *SdkLibraryImport) SdkImplementationJars(ctx android.BaseModuleCont
return module.sdkJars(ctx, sdkVersion, false)
}
-// to satisfy SdkLibraryDependency interface
+// to satisfy UsesLibraryDependency interface
func (module *SdkLibraryImport) DexJarBuildPath() android.Path {
if module.implLibraryModule == nil {
return nil
@@ -2029,7 +2030,7 @@ func (module *SdkLibraryImport) DexJarBuildPath() android.Path {
}
}
-// to satisfy SdkLibraryDependency interface
+// to satisfy UsesLibraryDependency interface
func (module *SdkLibraryImport) DexJarInstallPath() android.Path {
if module.implLibraryModule == nil {
return nil
@@ -2038,6 +2039,11 @@ func (module *SdkLibraryImport) DexJarInstallPath() android.Path {
}
}
+// to satisfy UsesLibraryDependency interface
+func (module *SdkLibraryImport) ClassLoaderContexts() dexpreopt.ClassLoaderContextMap {
+ return nil
+}
+
// to satisfy apex.javaDependency interface
func (module *SdkLibraryImport) JacocoReportClassesFile() android.Path {
if module.implLibraryModule == nil {