Skip to content

Commit

Permalink
Add exported-to-kati namespaces to root namespace
Browse files Browse the repository at this point in the history
This lets us use boot jar modules that are hidden behind
soong_namespace.

Change-Id: If0068387efdeca5458b5b97ce6b993b10a268bd2
  • Loading branch information
luk1337 authored and mikeNG committed Dec 10, 2023
1 parent eb2d9ac commit a2b4241
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions android/namespace.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,9 @@ func (r *NameResolver) addNamespace(namespace *Namespace) (err error) {
return fmt.Errorf("a namespace must be the first module in the file")
}
}
if (namespace.exportToKati) {
r.rootNamespace.visibleNamespaces = append(r.rootNamespace.visibleNamespaces, namespace)
}
r.sortedNamespaces.add(namespace)

r.namespacesByDir.Store(namespace.Path, namespace)
Expand Down

0 comments on commit a2b4241

Please sign in to comment.