Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e62432fe authored by Paul Duffin's avatar Paul Duffin
Browse files

Add DefaultsModule interface

Changes the InitDefaultsModule method from taking a DefaultableModule
to taking a DefaultsModule in preparation for adding visibility support
to defaults modules.

Bug: 130796911
Test: m nothing
Change-Id: I1d459da1017ae7f2654e7eb275cb424e52d85730
parent 7df7fb0d
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -107,6 +107,11 @@ func (d *DefaultsModuleBase) isDefaults() bool {
	return true
}

type DefaultsModule interface {
	Module
	Defaults
}

func (d *DefaultsModuleBase) properties() []interface{} {
	return d.defaultableProperties
}
@@ -114,7 +119,7 @@ func (d *DefaultsModuleBase) properties() []interface{} {
func (d *DefaultsModuleBase) GenerateAndroidBuildActions(ctx ModuleContext) {
}

func InitDefaultsModule(module DefaultableModule) {
func InitDefaultsModule(module DefaultsModule) {
	module.AddProperties(
		&hostAndDeviceProperties{},
		&commonProperties{},