apache / apache/cordova-android
config resource-file is copied to the wrong target
- Ngôn ngữ chính
- JavaScript
- Star
- 3.8k
- Fork
- 1.6k
- Merge trung bình
- 16 giờ 18 phút
- Pull request đã merge (30 ngày)
- 11
Mô tả
# Bug Report
## Problem
when defining a `` see [cordova documentation config.xml](https://cordova.apache.org/docs/en/11.x/config_ref/#resource-file) the src-file is not copied into the application-resources folder `/app/src/main/`, but instead to the ``. In contrast when defining the same `` in a plugin.xml, the file will be copied to the right destination see https://github.com/apache/cordova-android/blob/e61e271f5bbb517a9598078f7a1ad7585bfe5f9c/lib/pluginHandlers.js#L61
### What is expected to happen?
The defined src should be copied within the application-resource folder `/app/src/main/`
### What does actually happen?
The src-file will be copied to the ``
## Information
### Command or Code
### Environment, Platform, Device
### Version information
Cordova Packages:
cli: 12.0.0
common: 5.0.0
create: 5.0.0
lib: 12.0.1
common: 5.0.0
fetch: 4.0.0
serve: 4.0.1
Project Installed Platforms:
android: 12.0.1
Ionic:
Ionic CLI : 7.1.1
## Checklist
- [x] I searched for existing GitHub issues
- [x] I updated all Cordova tooling to most recent version
- [x] I included all the necessary information above
Hướng dẫn đóng góp
Hướng nghiên cứu
Reproduce the config.xml resource-file case described in the issue and compare its destination with the plugin.xml handling in lib/pluginHandlers.js at the referenced commit. Trace the platform-level resource-file handling and verify that the source ends up under /app/src/main/ rather than .
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- android, javascript
- Lĩnh vực
- build-system, mobile-dev
- Loại issue
- Lỗi
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 38/100