GitToTheHub opened a new issue, #1753:
URL: https://github.com/apache/cordova-android/issues/1753

   # Bug Report
   I want to copy resources to the `res` directory of the android app.
   
   ## Problem
   I followed the documentation for the 
[resource-file](https://cordova.apache.org/docs/en/12.x/config_ref/#resource-file)
 tag of the `config.xml`, where it shows an example to copy a resource file to 
`res/values/` for Android:
   ```xml
   <resource-file src="FooPluginStrings.xml" 
target="res/values/FooPluginStrings.xml" />
   ```
   When I use this code, the resource file gets copied to 
`platforms/android/res/values`, but the correct folder would be 
`platforms/android/app/src/main/res/values`.
   
   When I do the same for iOS with
   
   ```xml
   <platform name="ios">
       <resource-file src="FooPluginStrings.xml" target="FooPluginStrings.xml" 
/>
   </platform>
   ```
   
   It gets correctly copied to `platforms/iOS/[AppName]/Resources` (using 
cordova-ios 7.1.1).
   
   Should there be not a similar behavior for Android? Must the documentation 
be updated to the correct path, or is this an issue in the Cordova-cli?
   
   ### What is expected to happen?
   The resource file should be put in the correct folder like the documentation 
says.
   
   ### What does actually happen?
   The resource file is copied in the wrong place.
   
   ## Information
   
   ### Command or Code
   
   ### Environment, Platform, Device
   
   ### Version information
   <!-- 
   What are relevant versions you are using?
   For example:
   Cordova: Cordova CLI, Cordova Platforms, Cordova Plugins 
   Other Frameworks: Ionic Framework and CLI version
   Operating System, Android Studio, Xcode etc.
   -->
   - macOS 15.2
   - MacBook Pro 2019 13"
   - cordova-cli 12.0.0 (cordova-lib@12.0.2)
   
   ## Checklist
   <!-- Please check the boxes by putting an x in the [ ] like so: [x] -->
   
   - [ ] I searched for existing GitHub issues
   - [ ] I updated all Cordova tooling to most recent version
   - [ ] 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: issues-unsubscr...@cordova.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org

Reply via email to