Closed kvenn closed 1 year ago
You may use YAML syntax to achieve this, it's not perfect, but still a bit better IMO
.my_custom_variables_arbitrary_key:
android_dev_arbitratry_key: &android_variables_dev
my_android_var:
type: "string"
value: "my-value-for-android"
ios_dev_arbitratry_key: &ios_variables_dev
MY_IOS_VAR:
value: "my-value-for-ios"
flavorizr:
flavors:
development:
app:
...
android:
...
resValues: *android_variables_dev
ios:
...
variables: *ios_variables_dev
I think this can also be written like this if you need to add more variables (but I haven't test it ;) )
flavorizr:
flavors:
development:
app:
ios:
variables:
<<: *ios_variables_dev
my_other_var:
value: "second"
I have 4 flavors appDev, appProd, app2Dev, app2Prod. appDev and appProd should have the same
resValues
but differentapplicationId
. app2Dev and app2Prod have everything different.Is there a way to assign resValues to a variable so I don't need to update both configs each time?