summaryrefslogtreecommitdiff
path: root/java/java.go
diff options
context:
space:
mode:
author Spandan Das <spandandas@google.com> 2023-11-01 17:31:58 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2023-11-01 17:31:58 +0000
commiteb852927d4b8579f1b395e5afb2cacf2c76a087e (patch)
tree91439b3aae84a9e5a509fb3cad7c52706d8d9205 /java/java.go
parent3996ffbc1333e5367fb936c8d8281105c733181b (diff)
parent2cc80ba1458c2c273fa495e20c3c9286a36373cc (diff)
Merge "Add the name of the sdk library to dynamically generated java modules" into main
Diffstat (limited to 'java/java.go')
-rw-r--r--java/java.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/java/java.go b/java/java.go
index 55efb5f17..dd0418894 100644
--- a/java/java.go
+++ b/java/java.go
@@ -1613,6 +1613,7 @@ func BinaryHostFactory() android.Module {
type JavaApiContribution struct {
android.ModuleBase
android.DefaultableModuleBase
+ embeddableInModuleAndImport
properties struct {
// name of the API surface
@@ -1628,6 +1629,7 @@ func ApiContributionFactory() android.Module {
android.InitAndroidModule(module)
android.InitDefaultableModule(module)
module.AddProperties(&module.properties)
+ module.initModuleAndImport(module)
return module
}
@@ -1656,6 +1658,7 @@ type ApiLibrary struct {
hiddenAPI
dexer
+ embeddableInModuleAndImport
properties JavaApiLibraryProperties
@@ -1714,6 +1717,7 @@ func ApiLibraryFactory() android.Module {
module := &ApiLibrary{}
android.InitAndroidArchModule(module, android.DeviceSupported, android.MultilibCommon)
module.AddProperties(&module.properties)
+ module.initModuleAndImport(module)
android.InitDefaultableModule(module)
return module
}
@@ -3513,6 +3517,7 @@ func ApiContributionImportFactory() android.Module {
android.InitDefaultableModule(module)
android.InitPrebuiltModule(module, &[]string{""})
module.AddProperties(&module.properties)
+ module.AddProperties(&module.sdkLibraryComponentProperties)
return module
}