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

Commit 26ce228d authored by Joe Onorato's avatar Joe Onorato Committed by Automerger Merge Worker
Browse files

Merge "Add accessor function for bool product variables." into main am: 9390fb85

parents e4f28b5a 9390fb85
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -618,6 +618,14 @@ func (v *ProductVariables) SetDefaultConfig() {
	}
}

func (this *ProductVariables) GetBuildFlagBool(flag string) bool {
	val, ok := this.BuildFlags[flag]
	if !ok {
		return false
	}
	return val == "true"
}

// ProductConfigContext requires the access to the Module to get product config properties.
type ProductConfigContext interface {
	Module() Module