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: added expo plugin #22

Merged
merged 2 commits into from
Jan 22, 2024
Merged

feat: added expo plugin #22

merged 2 commits into from
Jan 22, 2024

Conversation

mfkrause
Copy link
Contributor

@mfkrause mfkrause commented Jan 20, 2024

This adds a config plugin for Expo which makes both of the necessary changes for the CoreML delegate on iOS:

  1. Adds $EnableCoreMLDelegate=true to the top of the Podfile
  2. Adds the CoreML framework to the Xcode project

I took the liberty of adopting the plugin prop enableCoreMLDelegate and its documentation from your draft PR (#18). If the user doesn't set this to true, the plugin effectively does nothing. Everything else, as in the changes to the Metro file, need to be done by the user himself and can't / shouldn't be done through the config plugin. Therefore, this plugin is only there for enabling the CoreML delegate.

Tested with a fresh project on Expo SDK 50.

Closes #6.

@mrousavy
Copy link
Owner

This is huge, nice work man & thanks for the PR! all looks good, LGTM 🚀

@mrousavy mrousavy merged commit be54141 into mrousavy:main Jan 22, 2024
3 checks passed
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.

How can I use this with expo?
2 participants