4lyn opened a new issue, #1553:
URL: https://github.com/apache/cordova-android/issues/1553

   # Bug Report
   
   ## Problem
   
   All files listed in `resource-file` tag in `config.xml` are purged after 
`cordova clean android`
   ```
   <resource-file src="res/native/android/res/values/colors.xml" 
target="app/src/main/res/values/colors-custom.xml" />
   <resource-file src="res/native/android/res/values/styles.xml" 
target="app/src/main/res/values/styles.xml" />
   <resource-file src="res/native/android/res/values-v21/styles.xml" 
target="app/src/main/res/values-v21/styles.xml" />
   ```
   They are still some resources files like `colors.xml` / `strings.xml` / 
`themes.xml`
   But all custom files from the config disappear. It also happens to the files 
in the `res/native/android/res/values-v21` directory
   
   ### What is expected to happen?
   
   `cordova clean android` should not clean resource files
   As explained in this 
https://github.com/apache/cordova-android/issues/1551#issuecomment-1405441651 
by @breautek
   
   ### What does actually happen?
   After `cordova prepare android` these files are present, but if I run 
`cordova clean android` they disappear
   And changing the target as explained in this 
https://github.com/apache/cordova-android/issues/1461#issuecomment-1407561254  
by @erisu doesn't help
   
   ## Information
   
   Reproduce without any plugins in Cordova CLI 11.1.0 / Cordova Android 11.0.0
   But also in Cordova CLI 10.0.0 / Cordova Android 10.1.1
   
   So it might be linked to the other upgrade I had to make
   - Java 8 ==>> 11
   - Gradle 7.3.3 ==>> 7.4.2
   
   Everything was fine before.
   
   ### Command or Code
   ```
   rm -rf platforms/* plugins/ node_modules/
   npm install
   cordova prepare android
   ==>> Files exist in platforms/android/app/src/main/res/values/
   cordova clean android
   ==>> Files have been deleted in 
platforms/android/app/src/main/res/values/colors.xml
   ```
   
   ### Environment, Platform, Device
   Linux mint 19.3 (Ubuntu 18.04)
   
   ### Version information
   Java JDK: installed 11.0.18
   Android SDK: installed true
   Android target: installed 
android-33,android-32,android-31,android-30,android-23
   Gradle: installed /opt/gradle/gradle-7.4.2/bin/gradle
   
   ## Checklist
   - [x] I searched for existing GitHub issues
     - #1551 have both being closed
     - #1461 seems to focus on `colors.xml` file
   - [x] I updated all Cordova tooling to most recent version
   - [x] I included all the necessary information above
   


-- 
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