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

refactor: Move common Swift and Lua into OpoLuaCore #361

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

jbmorley
Copy link
Collaborator

This change introduces a new OpoLuaCore Swift package which contains the common Lua code and relevant Swift wrappers which were previously in 'swift'.

It's not at all clear to me if this is the correct approach, but it's here for discussion---this would make it easier to slowly pull common (non-AppKit/UIKit) code into a core package and allow us to incrementally move towards code that could be shared between native iOS and macOS apps. What I don't like about this change is that it moves the potentially very cross-platform Lua code firmly into a Swift package, potentially making it more fiddly to add other !Apple platforms in the future. Unfortunately, excepting symlinks, I can't think of a way to include the Lua 'src' directory in the OpoLuaCore package.

This change introduces a new OpoLuaCore Swift package which contains the common Lua code and relevant Swift wrappers which were previously in 'swift'.

It's not at all clear to me if this is the correct approach, but it's here for discussion---this would make it easier to slowly pull common (non-AppKit/UIKit) code into a core package and allow us to incrementally move towards code that could be shared between native iOS and macOS apps. What I don't like about this change is that it moves the potentially very cross-platform Lua code firmly into a Swift package, potentially making it more fiddly to add other !Apple platforms in the future. Unfortunately, excepting symlinks, I can't think of a way to include the Lua 'src' directory in the OpoLuaCore package.
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.

1 participant