Modify XML files before / after mergeResources task In my Android Studio project, I’m trying to minify XML files in the release / debug package only.