Bug Report
Problem
ConfigChanges.prototype.add_config_changes crashes if you have any config-file elements in your config.xml.
What is expected to happen?
It handles it properly.
What does actually happen?
It crashes with an error saying that a path was null.
Information
Command or Code
<config-file target="AndroidManifest.xml" mode="merge" parent="/manifest/application/activity"
xmlns:android="http://schemas.android.com/apk/res/android" platform="android">
<intent-filter>
<action android:name="android.media.action.IMAGE_CAPTURE"/>
</intent-filter>
</config-file>
and cordova build android crashes
Environment, Platform, Device
Windows 10 or 11 (not sure), compiling for Android.
Version information
cordova-common 5.0.0
Checklist
Misc notes:
This did not occur on 4.0.2, for unclear reasons.
To fix this, the best way of changing this is to edit ConfigChanges.prototype._is_conflicting to deal with the way that config-file entries use target - basically, they use target where edit-config uses file and parent where edit-config uses target.
Bug Report
Problem
ConfigChanges.prototype.add_config_changescrashes if you have anyconfig-fileelements in yourconfig.xml.What is expected to happen?
It handles it properly.
What does actually happen?
It crashes with an error saying that a path was null.
Information
Command or Code
and
cordova build androidcrashesEnvironment, Platform, Device
Windows 10 or 11 (not sure), compiling for Android.
Version information
cordova-common 5.0.0
Checklist
Misc notes:
This did not occur on 4.0.2, for unclear reasons.
To fix this, the best way of changing this is to edit
ConfigChanges.prototype._is_conflictingto deal with the way thatconfig-fileentries usetarget- basically, they usetargetwhereedit-configusesfileandparentwhereedit-configusestarget.