Improved generateContactsXml task in gradle

This commit is contained in:
Sylvain Berfini 2020-06-17 16:31:49 +02:00
parent 01b3162392
commit f7c7fe2595

View file

@ -177,6 +177,7 @@ if (firebaseEnabled()) {
task generateContactsXml(type: Copy) {
from 'contacts.xml'
into "src/main/res/xml/"
outputs.upToDateWhen { file('src/main/res/xml/contacts.xml').exists() }
filter {
line -> line
.replaceAll('%%AUTO_GENERATED%%', 'This file has been automatically generated, do not edit or commit !')