How to add/override platform files during AppFlow build?


I need to add/override few files under android platform during AppFlow build (i.e add google-services.json file to /platforms/android/app/)

I suppose I need to include “copy files script” anywhere… any suggestions how to achieve it?

Many thanks,

Well, I’ve found a good way achieving it through config.xml file.

Under the relevant platform (Android in my case) I’ve added a directive per file which did the work:

<resource-file src="resources/google-services.json" target="app/google-services.json" />
<resource-file src="resources/" target="" />
<resource-file src="resources/" target="" />
<source-file src="resources/" target-dir="app/src/main/java/org/cordova/mediacapture" />