Something went wrong while setting issue due date.
handling current datatypes when rewriting YAML metadata
About the YAML format, I'm wondering how to best support things like _buildjni and gradle, which can be both boolean or lists. In YAML, yes/no/true/false are keywords that make booleans. So this would be a boolean:
buildjni: yes
vs these, which are both strings:
buildjni: "yes"
buildjni: "ndk-build CUSTOM_VAR=foo"
though with YAML, this would also be a string:
buildjni: ndk-build CUSTOM_VAR=foo
Looking at all of the gradle=
lines in fdroiddata, I think the YAML input can support TYPE_LIST fields as boolean, string, or list of strings. The question is whether rewritemeta should always output a list of strings, or whether the simplest data type should be the canonical:
-
"yes"
would always be rewritten as a boolean -
forFDroid
would always rewritten as a string -
"noMaps,noAnalytics,forFDroid"
would always be written as a list of strings