New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CB-14108: fix incorrect count in config_munge in ios.json and android.json #24
Conversation
Codecov Report
@@ Coverage Diff @@
## master #24 +/- ##
=========================================
+ Coverage 85.51% 87.1% +1.58%
=========================================
Files 19 19
Lines 1761 1830 +69
Branches 371 384 +13
=========================================
+ Hits 1506 1594 +88
+ Misses 255 236 -19
Continue to review full report at Codecov.
|
Thanks for the pull request! I'm not especially familiar with the config munging code, but I know it has been a source of edge case bugs and particular around multiple plugin.xml/config.xml wanting to make conflicting changes. There are a few open issues in JIRA (CB-13474, CB-13486, and CB-13514 in particular) related to those edge cases, and I wanted to check if you thought your changes will have any impact (positive or negative) on those. |
Thanks, @dpogue. I try to check the issues CB-13474, CB-13486 and CB-13514. |
Sorry, CB-13474, CB-13486 and CB-13514 are the issues in which multiple config-files and/or edit-configs compete each other. (I.e. xml conflicting) |
@knight9999 Could you please summarize your changes in the PR title? Thanks. |
@janpio I see. I have updated the title. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't like adding package-lock.json
as a by product. Or has this actually something to do with this PR?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like there are some linting errors. Sorry for spotting them just now.
@knight9999 The changes here (specifically around |
@knight9999 and @dpogue |
No update from me, I have absolutely no time to work on Cordova stuff these days. |
* Revert "CB-14108: fix incorrect count in config_munge in ios.json and android.json" This reverts commit ce3801a. * chore: eslint object-curly-spacing fix * add CordovaError spec * chore: fix eslint warnings for CordovaError spec * fix CordovaError spec test * chore: added additional AS project path check
Platforms affected
All Platforms
What does this PR do?
This PR affects the cordova prepare command as follows.
Futrher, adding related test codes. (ConfigError.spec.js, ConfigChanges.spec.js)
What testing has been done on this change?
Before this PR, if we use config.file like
, then
cordova prepare
makes platforms/ios/ios.jsonnote that count is 1. Again doing
cordova prepare
makes platforms/ios/ios.jsonwhere the count is 2.
Further if we remove config-file tag in config.xml,
cordova prepare
does not remove anything from platforms/ios/ios.json.This unnatural behavior is fixed by this PR.
Checklist