summaryrefslogtreecommitdiff
path: root/android/team.go
diff options
context:
space:
mode:
Diffstat (limited to 'android/team.go')
-rw-r--r--android/team.go12
1 files changed, 11 insertions, 1 deletions
diff --git a/android/team.go b/android/team.go
index c273dc647..ad37f28c9 100644
--- a/android/team.go
+++ b/android/team.go
@@ -32,6 +32,12 @@ type teamProperties struct {
Trendy_team_id *string `json:"trendy_team_id"`
}
+type TeamInfo struct {
+ Properties teamProperties
+}
+
+var TeamInfoProvider = blueprint.NewProvider[TeamInfo]()
+
type teamModule struct {
ModuleBase
DefaultableModuleBase
@@ -48,7 +54,11 @@ var TestOnlyProviderKey = blueprint.NewProvider[TestModuleInformation]()
// Real work is done for the module that depends on us.
// If needed, the team can serialize the config to json/proto file as well.
-func (t *teamModule) GenerateAndroidBuildActions(ctx ModuleContext) {}
+func (t *teamModule) GenerateAndroidBuildActions(ctx ModuleContext) {
+ SetProvider(ctx, TeamInfoProvider, TeamInfo{
+ Properties: t.properties,
+ })
+}
func (t *teamModule) TrendyTeamId(ctx ModuleContext) string {
return *t.properties.Trendy_team_id