i have made a library where i am using a refs.xml files in the values folder, which overrides a material resource file using tools:override to be able to rearrange the dialog buttons.
<resources xmlns:tools="http://schemas.android.com/tools">
<item name="mtrl_alert_dialog_actions" type="layout" tools:override="true">@layout/mtrl_alert_dialog_actions_custom</item>
</resources>
Using this library and building the app in debug mode without shrinking the resources, everything works properly. As soon as i enable resource shrinking, the refs.xml file is removed or not considered anymore.
When i place the refs.xml inside my app, the mtrl_alert_dialog_actions is overriden by mtrl_alert_dialog_actions_custom too.
But how can i achieve that i do not need to place the refs.xml file inside my app and tell the app to use the refs.xml file from the library when shrinkResources is enabled?
The build outputs do not mention anything that the refs.xml from the library is removed.