From 00e1e61bfb4da600e4c719b549cfbeda0fd067c9 Mon Sep 17 00:00:00 2001 From: Steven Moreland Date: Wed, 11 Jul 2018 15:24:31 -0700 Subject: [PATCH] Export: phonyFactory -> PhonyFactory When adding aidl_interface, the intention is to have module name 'foo' create modules 'foo-cpp' and 'foo-java' for consistency. I'm using a phony module to reserve 'foo' as a name for future use and also for sanity. Bug: 111117220 Test: create a phony module using the factory and use it to build Change-Id: Ib3214acb9b4bf48aa60a1a3c20b5d12129d1c3a6 --- phony/phony.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/phony/phony.go b/phony/phony.go index a39b5d51e..0c62e8a01 100644 --- a/phony/phony.go +++ b/phony/phony.go @@ -23,7 +23,7 @@ import ( ) func init() { - android.RegisterModuleType("phony", phonyFactory) + android.RegisterModuleType("phony", PhonyFactory) } type phony struct { @@ -31,7 +31,7 @@ type phony struct { requiredModuleNames []string } -func phonyFactory() android.Module { +func PhonyFactory() android.Module { module := &phony{} android.InitAndroidModule(module)