summaryrefslogtreecommitdiff
path: root/apex/apex_singleton.go
diff options
context:
space:
mode:
author Jooyung Han <jooyung@google.com> 2023-04-25 16:39:59 +0900
committer Jooyung Han <jooyung@google.com> 2023-04-27 09:56:04 +0900
commit4495f84f684cb6dad137ce4f3c9926ac79768f74 (patch)
treec8c6e917b9b5a3403d3f5090ff0fd5dc59f667dd /apex/apex_singleton.go
parentdfd4c8b8a43cabf4b2a5d7048f714ef202315774 (diff)
Add allowed-deps tests
These tests capture - track updatable apexes - do not track apex-only modules - track transitive deps - track external deps (with mark) Bug: 274041915 Test: m nothing Change-Id: I629015f5aa4a1a7627d0ba6d92fd42bb99c96287
Diffstat (limited to 'apex/apex_singleton.go')
-rw-r--r--apex/apex_singleton.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/apex/apex_singleton.go b/apex/apex_singleton.go
index 158194937..ebc35cf5c 100644
--- a/apex/apex_singleton.go
+++ b/apex/apex_singleton.go
@@ -23,7 +23,11 @@ import (
)
func init() {
- android.RegisterSingletonType("apex_depsinfo_singleton", apexDepsInfoSingletonFactory)
+ registerApexDepsInfoComponents(android.InitRegistrationContext)
+}
+
+func registerApexDepsInfoComponents(ctx android.RegistrationContext) {
+ ctx.RegisterSingletonType("apex_depsinfo_singleton", apexDepsInfoSingletonFactory)
}
type apexDepsInfoSingleton struct {