You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2022/10/13 20:30:44 UTC

[GitHub] [cordova-common] TylerBreau opened a new pull request, #179: Added link attribute support to the framework tag.

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: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-common] TylerBreau commented on pull request #179: Added link attribute support to the framework tag.

Posted by GitBox <gi...@apache.org>.
TylerBreau commented on PR #179:
URL: https://github.com/apache/cordova-common/pull/179#issuecomment-1284412060

   The link attribute PRs for cordova-common, cordova-lib, and cordova-cli is being closed in favour of https://github.com/apache/cordova-common/pull/181.
   
   The link attribute PRs for cordova-ios and cordova-docs is still active.


-- 
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: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-common] TylerBreau closed pull request #179: Added link attribute support to the framework tag.

Posted by GitBox <gi...@apache.org>.
TylerBreau closed pull request #179: Added link attribute support to the framework tag.
URL: https://github.com/apache/cordova-common/pull/179


-- 
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: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-common] codecov-commenter commented on pull request #179: Added link attribute support to the framework tag.

Posted by GitBox <gi...@apache.org>.
codecov-commenter commented on PR #179:
URL: https://github.com/apache/cordova-common/pull/179#issuecomment-1278152842

   # [Codecov](https://codecov.io/gh/apache/cordova-common/pull/179?src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) Report
   > Merging [#179](https://codecov.io/gh/apache/cordova-common/pull/179?src=pr&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) (3491ae1) into [master](https://codecov.io/gh/apache/cordova-common/commit/4d8475dfd5e57265f87ff50420286a8ce88e3466?el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) (4d8475d) will **not change** coverage.
   > The diff coverage is `n/a`.
   
   ```diff
   @@           Coverage Diff           @@
   ##           master     #179   +/-   ##
   =======================================
     Coverage   87.79%   87.79%           
   =======================================
     Files          20       20           
     Lines        1131     1131           
   =======================================
     Hits          993      993           
     Misses        138      138           
   ```
   
   
   | [Impacted Files](https://codecov.io/gh/apache/cordova-common/pull/179?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) | Coverage Δ | |
   |---|---|---|
   | [src/PluginInfo/PluginInfo.js](https://codecov.io/gh/apache/cordova-common/pull/179/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-c3JjL1BsdWdpbkluZm8vUGx1Z2luSW5mby5qcw==) | `81.57% <ø> (ø)` | |
   
   :mega: We’re building smart automated test selection to slash your CI/CD build times. [Learn more](https://about.codecov.io/iterative-testing/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation)
   


-- 
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: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-common] TylerBreau commented on pull request #179: Added link attribute support to the framework tag.

Posted by GitBox <gi...@apache.org>.
TylerBreau commented on PR #179:
URL: https://github.com/apache/cordova-common/pull/179#issuecomment-1279218367

   This change spans across 5 repositories. These are the 5 PRs:
   
   - https://github.com/apache/cordova-common/pull/179
   - https://github.com/apache/cordova-lib/pull/898
   - https://github.com/apache/cordova-cli/pull/584
   - https://github.com/apache/cordova-ios/pull/1266
   - https://github.com/apache/cordova-docs/pull/1267


-- 
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: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org