summaryrefslogtreecommitdiff
path: root/android/variable.go
diff options
context:
space:
mode:
author Cole Faust <colefaust@google.com> 2023-04-21 17:37:11 -0700
committer Cole Faust <colefaust@google.com> 2023-07-17 16:27:08 -0700
commitf8231dd0ea2aa0c2ba99e404a16d47db1322b223 (patch)
tree0e9579e2a1e4546581287ba02df243fb4e701d34 /android/variable.go
parentadb892c5393a6b1a3a40984fec14e3f51b102571 (diff)
Platform mapping-based product config
This allows us to set product variables as build settings instead of loading them from a target's provider, which further allows us to read product config variables in transitions. Bug: 287539062 Bug: 269577299 Test: Presubmits Change-Id: I8497703f706162572ceb3486240e1eb02a37f5f6
Diffstat (limited to 'android/variable.go')
-rw-r--r--android/variable.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/android/variable.go b/android/variable.go
index 4442a09eb..f5dddafd8 100644
--- a/android/variable.go
+++ b/android/variable.go
@@ -185,7 +185,7 @@ type variableProperties struct {
var defaultProductVariables interface{} = variableProperties{}
-type productVariables struct {
+type ProductVariables struct {
// Suffix to add to generated Makefiles
Make_suffix *string `json:",omitempty"`
@@ -489,8 +489,8 @@ func stringPtr(v string) *string {
return &v
}
-func (v *productVariables) SetDefaultConfig() {
- *v = productVariables{
+func (v *ProductVariables) SetDefaultConfig() {
+ *v = ProductVariables{
BuildNumberFile: stringPtr("build_number.txt"),
Platform_version_name: stringPtr("S"),