-
Notifications
You must be signed in to change notification settings - Fork 229
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
Adds SWIFT_PACKAGE preprocessor definition #221
Conversation
@lukewakeford, I agree that it is a good idea to support the previous |
@lucdion glad you like it 👍🏻
Because adding a flag is still required when installing the package in to an Xcode project - and I actually think using the custom The only bit I wasn't sure about were the target settings in
|
The release https://github.com/layoutBox/FlexLayout/releases/tag/1.3.30 includes your change. Thanks |
Excellent thanks 🚀 |
Hi @lukewakeford , someone has open a story that revert your changes: #226 To be honest, I am not sure what to think You can comment directly on this new PR. Thanks |
Thanks @lucdion i'll take another look. hopefully there is a way that both routes can still work. |
Yes, thanks for checking that. |
Adds
SWIFT_PACKAGE
flag for resolving correct path to yoga imports.Fixes issue #219 where including FlexLayout as a dependency of another swift package would fail to build - because it isn't possible to set the preprocessor definition
FLEXLAYOUT_SWIFT_PACKAGE=1
without an Xcode project.From the SPM Documentation:
edit: I have update this PR to avoid breaking changes. It now avoids removing the
FLEXLAYOUT_SWIFT_PACKAGE
flag that people are already using.