apache / apache/cordova-android

Plugins conflict when there is no actual conflict

Open
#1,423 2 comments 2 reactions 0 assignees View on GitHub
bug
Dominant language
JavaScript
Stars
3.8k
Forks
1.6k
Avg merge
16h 18m
Merged PRs (30d)
11

Description

# 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

- [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
![Screenshot 2022-04-21 234020](https://user-images.githubusercontent.com/60969587/164563111-3867a130-ebc9-4897-82f4-48d5792654e9.png)
![Screenshot 2022-04-21 234114](https://user-images.githubusercontent.com/60969587/164563118-9c2a5f73-643e-40fc-af71-0ba1802f2114.png)

Contributor guide

Open the contributing guide

Research direction

The report provides no repository file, test, or entry point to start from. Reproduce the plugin order described with Cordova Android 10.1.2 and CLI 11.0.0, then trace conflict detection and forced plugin application; done means adding B after A reports no conflict and preserves both activity tags.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, javascript
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.