Skip to content

Plugins conflict when there is no actual conflict #1423

@AhmedAyachi

Description

@AhmedAyachi

Bug Report

Plugins conflict when there is no actual conflict:

i created two plugins A and B
A: has a config-file tag that adds two activity tags to the application tag.
B: an edit-config that adds attributes to the application tag.

when i add B and then A no issue
when i add A and then B (i need this because i've created a cordova app starter that has the A plugin by default),
it says there's a conflict that actually doesn't exist but no problem i tried to force the command
the first activity tag added by the A Plugin is being removed which crushes the A plugin

What is expected to happen?

the B plugin should be added with no probs at all;
no need to force at all because there is no actual conflict.
or fix the conflict detection algo.
thank you

Version information

Cordova-android: 10.1.2
cordova-cli: 11.0.0
windows 10

Checklist

  • I searched for existing GitHub issues
  • I updated all Cordova tooling to most recent version
  • I included all the necessary information above
    Screenshot 2022-04-21 234020
    Screenshot 2022-04-21 234114

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions