Skip to content
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

fix(create): Copy config.xml data during creation #1502

Merged
merged 1 commit into from
Nov 11, 2024

Conversation

dpogue
Copy link
Member

@dpogue dpogue commented Nov 11, 2024

Platforms affected

iOS

Motivation and Context

This ensures that by the time plugin installation happens, the preferences from the root application config.xml can be read as expected.

Closes GH-1422.

Description

Merge the app's config.xml into the defaults.xml at creation time for the platform config.xml.

Also removed comments about the link option since that's no longer relevant (with CordovaLib consumed as a Swift package, it is always linked).

Testing

Existing tests pass, and added a new unit test to verify new behaviour.

Checklist

  • I've run the tests to see all new and existing tests pass
  • I added automated test coverage as appropriate for this change
  • If this Pull Request resolves an issue, I linked to the issue in the text above (and used the correct keyword to close issues using keywords)

@dpogue dpogue added this to the 8.0.0 milestone Nov 11, 2024
@codecov-commenter
Copy link

codecov-commenter commented Nov 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 80.97%. Comparing base (18a80d2) to head (dc2587b).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1502      +/-   ##
==========================================
+ Coverage   80.86%   80.97%   +0.10%     
==========================================
  Files          16       16              
  Lines        1840     1850      +10     
==========================================
+ Hits         1488     1498      +10     
  Misses        352      352              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

This ensures that by the time plugin installation happens, the
preferences from the root application config.xml can be read as
expected.

Closes apacheGH-1422.
Copy link
Member

@erisu erisu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code LGTM

@dpogue dpogue merged commit fc0d1a2 into apache:master Nov 11, 2024
10 checks passed
@dpogue dpogue deleted the create-config branch November 11, 2024 09:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Copy deployment-target from root config.xml to platform-specific config.xml before usage in Podfile
3 participants