feat: add Expo package generator #25
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Creates a package generator, similar to the existing Node one, that creates an Expo plugin that automates the moving of the binaries to the correct location for an Expo app
Why merge it?
I've building my project using your sync extension and the installation instructions clearly seemed geared towards building native Swift and Android apps over React Native/Expo. I did see this https://github.com/sqliteai/sqlite-extensions-guide?tab=readme-ov-file and obviously your todo example within the repo, but it seemed pretty simple to just generate the expo package in a similar way to how the node one is done, so thought I'd raise a PR to add it, rather than just using my own internal Expo package
How to test
To test locally:
Next steps
Would be great to get a review on this and see if I'm missing anything. Someone on your end would need to setup the next package in npm under your account, presuming you don't want the name changed.
Cheers!