Add ability to override resources in application #1875
Labels
enhancement
New features, or improvements to existing features.
not quite right
The idea or PR has been reviewed, but more work is needed.
What is the problem or limitation you are having?
Is there any way to add or override resource files?
This is extremely useful when managing resources. For example, I'd like my ic_launcher_background be defined in an xml, to support gradient colors.
Describe the solution you'd like
Either under the android specific section in pyproject.toml, or by modifying briefcase.toml.
For example, a project can store the overrides under a directory, with the exact same hierarchy.
And in pyproject.toml, user specifies this dir to override the resiurces under
[tool.briefcase.app.xdcheckin.android]
.The packaging process will first apply the common res dir in the project's
src/<name>/app/res
, then apply the overrides directly to the generated template's res dir.Describe alternatives you've considered
Modifying res in the result .apk can also work, but it's not convenient and universal for every briefcase projects.
Additional context
Thanks.
The text was updated successfully, but these errors were encountered: