- Recently, I added the following to my
config.xml to enable file sharing within my app.
<platform name="ios">
<config-file target="*-Info.plist" parent="UIFileSharingEnabled">
<true/>
</config-file>
</platform>
- This works fine. However, every time I build my app (
npm run prod), a related count item within platforms/ios/ios.json increments by 1. This appears to have no maximum value and will continue to grow as I build my app. I'm also not quite sure of its purpose.
- To note, other entries within this file also have a
count item, but they remain at 1.
{
"config_munge": {
"files": {
"*-Info.plist": {
"parents": {
"UIFileSharingEnabled": [
{
"xml": "<true />",
"count": 1 <-- 1, 2, 3... 999999999
}
]
}
}
}
}
}
- A bit of digging and I found the offending code, which led me to this repo. Any ideas why it might be doing this? Is it a bug or am I doing something wrong? Is it supposed to work like this? Any help would be much appreciated.
|
matchingSibling.count += element.count; |
config.xmlto enable file sharing within my app.npm run prod), a relatedcountitem withinplatforms/ios/ios.jsonincrements by1. This appears to have no maximum value and will continue to grow as I build my app. I'm also not quite sure of its purpose.countitem, but they remain at1.{ "config_munge": { "files": { "*-Info.plist": { "parents": { "UIFileSharingEnabled": [ { "xml": "<true />", "count": 1 <-- 1, 2, 3... 999999999 } ] } } } } }cordova-common/src/ConfigChanges/munge-util.js
Line 56 in 72aa215