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

feat(ios): explicitly import headers #927

Merged
merged 1 commit into from
Nov 3, 2023
Merged

Conversation

alekop
Copy link
Contributor

@alekop alekop commented Jan 8, 2022

dependencies, instead of relying on PCH files. This is important in Swift projects, where you cannot use prefix headers.

Platforms affected

iOS

Motivation and Context

Cannot add plugin to Swift-based project with embedded WKWebView, because it relies on prefix header, which is not supported in Swift projects.

Description

Explicitly import needed files, so we don't need to rely on PCH files.

Testing

Built successfully in ObjC and Swift based projects.

Checklist

  • 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)
  • I've updated the documentation if necessary

… is important in Swift projects, where you cannot use prefix headers.
@alekop alekop changed the title Explicitly import dependencies, instead of relying on PCH files. This… (iOS) Explicitly import dependencies, instead of relying on PCH files. This… Jan 10, 2022
@NiklasMerz NiklasMerz added this to the 5.next milestone Nov 11, 2022
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.

Seems OK to me.

@erisu erisu changed the title (iOS) Explicitly import dependencies, instead of relying on PCH files. This… feat(ios): explicitly import headers Nov 11, 2022
@NiklasMerz NiklasMerz merged commit 31860cf into apache:master Nov 3, 2023
NiklasMerz added a commit that referenced this pull request Nov 3, 2023
…H files. This is important in Swift projects, where you cannot use prefix headers. (#927)"

This reverts commit 31860cf.
pesi-hgc pushed a commit to pesi-hgc/cordova-plugin-inappbrowser-transparent that referenced this pull request Nov 3, 2023
… This is important in Swift projects, where you cannot use prefix headers. (apache#927)

Co-authored-by: Aleko Petkov <[email protected]>
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.

4 participants