Hello,
I am developing multiple apps with the SDK, mainly for personal use but one of them is also public with 100+ downloads.
My app supports 6 product variants (fenix7x,venusq2,fenix7xpro, fenix7xpronowifi,venu2,venu3,venusq2) and is currently available in 2 language versions (German and English).
I have the following resource folders:
resources/
resources-fenix7x/
resources-fenix7xpro/
resources-fenix7xpronowifi/
resources-deu/
resources-fenix7x-deu/
resources-fenix7xpro-deu/
resources-fenix7xpronowifi-deu/
Inside each of these, there is the full structure with:
drawables (icons, drawables.xml)
layout (layout.xml)
settings (settings.xml, properties.xml)
strings (strings.xml)
For translations of the strings in the Glance and the main View, I have a custom solution so that I don't have to maintain all the strings.xml files in each resource folder for each variant and language (there is only the app name in there now), so those are not an issue.
But I would really like to simplify updating the settings (properties.xml → can be the same for every model and language, settings.xml → all German variants should have the same and all English variants should have the same) and the layout (both languages should have the same layout.xml per device ID, as the layout is updated with the correct language at runtime anyway).
Is there a way to achieve a configuration where:
- settings.xml is shared between all resource folders with the same language (those with "-deu" and those without each have different settings names)
- properties.xml is shared between all resource folders
- layout.xml is shared between both resource folders with the same device ID, regardless of language
I am developing with VSCode under Linux Mint, if that matters.
Thanks in advance
Aaron