cordova-android icon indicating copy to clipboard operation
cordova-android copied to clipboard

Automatically check AndroidManifest.xml on the Android platform Duplicate definitions and automatic merging.

Open xinyugit opened this issue 11 months ago • 2 comments

Feature Request

Motivation Behind Feature

Automatically check AndroidManifest.xml on the Android platform Duplicate definitions and automatic merging.

Feature Description

Unable to compile due to conflicting duplicate definitions in different plugin. xml files.

Alternatives or Workarounds

Check for duplicate definitions in platforms\android\app\src\main and merge them to increase fault tolerance.

xinyugit avatar Jan 07 '25 13:01 xinyugit

We already have a system in place to do this, assuming the plugins are using <edit-config> directives, however in many cases merges aren't automatically resolvable. I'm not saying the <edit-config> directive is perfect, I do think it has many issues, but I don't think there are any easy solutions out there.

If two plugins are using <config-file>, the that directive adds a new node in which case it is working as intended. Some directives might make sense to have duplicate nodes while other directives it may be illegal. We can't blindly "merge" them in this situation.

The apache plugins has started to not use <config-file>/<edit-config> and instead document that the user might require it depending on their needs, and I would encourage plugin authors to probably follow that pattern to remain flexible, unless if their usage is really domain-specific that will very unlikely break when used with other plugins.

breautek avatar Oct 29 '25 02:10 breautek

这是来自QQ邮箱的假期自动回复邮件。   您好,我最近正在休假中,无法亲自回复您的邮件。我将在假期结束后,尽快给您回复。

xinyugit avatar Oct 29 '25 02:10 xinyugit