You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "dpogue (via GitHub)" <gi...@apache.org> on 2024/08/30 08:09:01 UTC
[PR] [WIP] refactor!: Consistent app template/Xcode project name [cordova-ios]
dpogue opened a new pull request, #1485:
URL: https://github.com/apache/cordova-ios/pull/1485
### Platforms affected
iOS
### Motivation and Context
<!-- Why is this change required? What problem does it solve? -->
<!-- If it fixes an open issue, please link to the issue here. -->
Currently, the generated Xcode project uses the application name for both the project and the target name. This means that file paths in generated projects are not consistent and we have to do regex-based token replacements during project creation. It also makes modifying the template project a pain because opening the template project directly in Xcode causes a bunch of those tokens to break.
The deeper problem is that some tooling (notably Cocoapods) struggles with project and target names with non-ASCII characters.
Possibly closes GH-717.
Possibly closes GH-1150.
Possibly closes GH-1289.
Closes GH-1464.
### Description
<!-- Describe your changes in detail -->
Remaining work:
- [ ] Set the `PRODUCT_NAME` to the config.xml name value so that the resulting app/ipa file has the expected name
- [ ] See if we can set `PRODUCT_BUNDLE_IDENTIFIER` in a better way at create-time to avoid token replacement
- [ ] Test with https://github.com/apache/cordova-common/pull/212 to see if we can rename `App-Info.plist` to just `Info.plist`
- [ ] Test with Cocoapods to make sure they still work as expected
- [ ] Test with Cocoapods and non-ASCII project names to ensure everything works
### Testing
<!-- Please describe in detail how you tested your changes. -->
All unit tests pass.
Tested manually with mobilespec.
### 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
- [x] 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/))
--
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
Re: [PR] [WIP] refactor!: Consistent app template/Xcode project name [cordova-ios]
Posted by "codecov-commenter (via GitHub)" <gi...@apache.org>.
codecov-commenter commented on PR #1485:
URL: https://github.com/apache/cordova-ios/pull/1485#issuecomment-2320462351
## [Codecov](https://app.codecov.io/gh/apache/cordova-ios/pull/1485?dropdown=coverage&src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) Report
Attention: Patch coverage is `90.00000%` with `3 lines` in your changes missing coverage. Please review.
> Project coverage is 80.73%. Comparing base [(`98a3bcd`)](https://app.codecov.io/gh/apache/cordova-ios/commit/98a3bcd3ae5a05e0585467a328278ff2ffcf59bc?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) to head [(`7cbab2b`)](https://app.codecov.io/gh/apache/cordova-ios/commit/7cbab2bf841f7237ea6d2c216d926d3edde5c7db?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).
| [Files with missing lines](https://app.codecov.io/gh/apache/cordova-ios/pull/1485?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | Patch % | Lines |
|---|---|---|
| [lib/build.js](https://app.codecov.io/gh/apache/cordova-ios/pull/1485?src=pr&el=tree&filepath=lib%2Fbuild.js&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#diff-bGliL2J1aWxkLmpz) | 40.00% | [3 Missing :warning: ](https://app.codecov.io/gh/apache/cordova-ios/pull/1485?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
<details><summary>Additional details and impacted files</summary>
```diff
@@ Coverage Diff @@
## master #1485 +/- ##
==========================================
- Coverage 81.56% 80.73% -0.84%
==========================================
Files 16 16
Lines 1888 1858 -30
==========================================
- Hits 1540 1500 -40
- Misses 348 358 +10
```
</details>
[:umbrella: View full report in Codecov by Sentry](https://app.codecov.io/gh/apache/cordova-ios/pull/1485?dropdown=coverage&src=pr&el=continue&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).
:loudspeaker: Have feedback on the report? [Share it here](https://about.codecov.io/codecov-pr-comment-feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).
--
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