Add commonSdkLibraryAndImportModule interface

The commonSdkLibraryAndImportModule defines the methods that a module
which embeds the commonToSdkLibraryAndImport struct need to provide.

Bug: 179354495
Test: m nothing
Change-Id: I7a469ae03ea5c19922200284da08a9ae38a46751
This commit is contained in:
Paul Duffin
2021-06-23 11:39:47 +01:00
parent e59cad2089
commit 71b33cca9d
3 changed files with 32 additions and 24 deletions

View File

@@ -260,8 +260,8 @@ type embeddableInModuleAndImport struct {
EmbeddableSdkLibraryComponent
}
func (e *embeddableInModuleAndImport) initModuleAndImport(moduleBase *android.ModuleBase) {
e.initSdkLibraryComponent(moduleBase)
func (e *embeddableInModuleAndImport) initModuleAndImport(module android.Module) {
e.initSdkLibraryComponent(module)
}
// Module/Import's DepIsInSameApex(...) delegates to this method.