TylerBreau opened a new pull request, #179: URL: https://github.com/apache/cordova-common/pull/179
<!-- Please make sure the checklist boxes are all checked before submitting the PR. The checklist is intended as a quick reference, for complete details please see our Contributor Guidelines: http://cordova.apache.org/contribute/contribute_guidelines.html Thanks! --> ### Platforms affected iOS ### Motivation and Context <!-- Why is this change required? What problem does it solve? --> Currently, the framework tag does not support both linking and embedding a framework. Comments in the code suggest this was a limitation in Apple's code. This limitation no longer exists. The current default behaviour of XCode (version 14) when dragging and dropping an XCFramework into General -> "Frameworks, Libraries, and Embedded Content" is to both embed and link the XCFramework. I have only tested this with XCFramework but I assume other kinds of frameworks are the same. This change supports reading a new attribute, "link" from the framework tags. The cordova-ios platform will then be able to use the new link attribute to support both linking and embedding a XCFramework. cordova-ios pr: https://github.com/apache/cordova-ios/pull/1266 <!-- If it fixes an open issue, please link to the issue here. --> ### Description <!-- Describe your changes in detail --> Updated PluginInfo to read the property "link" from framework attributes. If link is explicitly set to expected values "true" or "false", then convert the value to a boolean. If link is not explicitly set, then set link to null. Link is set to null when it is not explicitly set to support backwards compatibility. If link is null, platforms should fallback to the behaviour they were doing before thes changes. ### Testing <!-- Please describe in detail how you tested your changes. --> I've ran npm test. Tested various combinations of framework tag's embed and link attributes by installing a plugin using these attributes. I would observe how the XCFramework is added to the the XCode project with the following focuses: -Is the XCFramework embedded (or not embedded) in Build Phrases? -Is the XCFramework linked (or not linked) in Build Phrases? -Is the XCFramework set to "Embed and Sign" in General? I have ran my company's app using these changes. ### Checklist - [x] I've run the tests to see all new and existing tests pass - [ ] I added automated test coverage as appropriate for this change - [ ] Commit is prefixed with `(platform)` if this change only applies to one platform (e.g. `(android)`) - [ ] 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](https://help.github.com/articles/closing-issues-using-keywords/)) - [ ] I've updated the documentation if necessary -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
