breautek commented on issue #1551:
URL: 
https://github.com/apache/cordova-android/issues/1551#issuecomment-1406645314

   I'm unable to reproduce this with the Cordova CLI.
   
   Given your config, `<resource-file 
src="custom-resources/android/res/values/colors.xml" 
target="app/src/main/res/values/colors.xml" />` will cause a build to fail 
because `resource-file` provides and overwrites files, and cordova` will want 
to have the following XML:
   
   ```
   <?xml version='1.0' encoding='utf-8'?>
   <resources xmlns:tools="http://schemas.android.com/tools";>
       <color name="cdv_splashscreen_background">#FFFFFF</color>
   </resources>
   ```
   
   I used dummy files for my testing but purely what I was looking for is 
whether files "disappears" or gets removed, which doesn't appear to be the case 
when using the Cordova CLI.
   
   `cordova prepare` and `cordova build` will copy the resources files. 
`cordova clean` will clean some custom resource files (so I was mistaken in my 
past posts).
   
   Even if you ran the `cordova clean` command, running `cordova build` 
implicitly does a `cordova prepare` which reconfigures those source files.
   
   I've conducted my test using cordova-android@11.
   
   I do not know what vue cli is doing behind the scenes, but the Cordova CLI 
appears to be working as intended.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to