diff options
author | 2020-10-07 09:18:02 +0000 | |
---|---|---|
committer | 2020-10-07 09:18:02 +0000 | |
commit | 9f701fa348964b6863a83589957cc32e7f99657e (patch) | |
tree | cc4e64e02dc680c65e6c9597ddcc24eb297753bb /java/sdk_library.go | |
parent | 3c72ce8696d83466d7ef815a5cdd18df4fd1a59a (diff) | |
parent | a54d33be7712a357914ea6b6d19327c2355f9c8a (diff) |
Merge changes from topic "uses-libs-24"
* changes:
Fail the build if dexpreopt cannot find path to a <uses-library>.
Add dependency on implementation <uses-library> for modules that depend on component libraries.
Diffstat (limited to 'java/sdk_library.go')
-rw-r--r-- | java/sdk_library.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/java/sdk_library.go b/java/sdk_library.go index 60924a662..9caa97a0a 100644 --- a/java/sdk_library.go +++ b/java/sdk_library.go @@ -870,6 +870,12 @@ func (e *EmbeddableSdkLibraryComponent) OptionalImplicitSdkLibrary() *string { return e.sdkLibraryComponentProperties.SdkLibraryToImplicitlyTrack } +// to satisfy SdkLibraryComponentDependency +func (e *EmbeddableSdkLibraryComponent) OptionalSdkLibraryImplementation() *string { + // Currently implementation library name is the same as the SDK library name. + return e.sdkLibraryComponentProperties.SdkLibraryToImplicitlyTrack +} + // Implemented by modules that are (or possibly could be) a component of a java_sdk_library // (including the java_sdk_library) itself. type SdkLibraryComponentDependency interface { @@ -880,6 +886,9 @@ type SdkLibraryComponentDependency interface { // // Returns the name of the optional implicit SDK library or nil, if there isn't one. OptionalImplicitSdkLibrary() *string + + // The name of the implementation library for the optional SDK library or nil, if there isn't one. + OptionalSdkLibraryImplementation() *string } // Make sure that all the module types that are components of java_sdk_library/_import |