Skip to content

fix: support newest MLC on iOS, fix isAvailable check on Android#192

Merged
artus9033 merged 7 commits intomainfrom
fix/mlc-ios
Feb 9, 2026
Merged

fix: support newest MLC on iOS, fix isAvailable check on Android#192
artus9033 merged 7 commits intomainfrom
fix/mlc-ios

Conversation

@artus9033
Copy link
Contributor

@artus9033 artus9033 commented Feb 6, 2026

This PR adds support for newest MLC branch on iOS by downstreaming newest changes to the FFI engine, but also updates the MLCEngine to match the new API.
It also makes the Android MLC wrapper implementation use getFilesDir instead of getExternalFilesDir to check for model existence, to have a common JS logic for both platforms.

It also fixes an inconsistency in iOS model JSON config that included a different Qwen model than on Android, making it unusable in the demo app.

@artus9033 artus9033 requested a review from grabbou February 6, 2026 20:58
@artus9033 artus9033 self-assigned this Feb 6, 2026
@vercel
Copy link

vercel bot commented Feb 6, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
ai Ready Ready Preview, Comment Feb 7, 2026 2:13pm

Request Review

@artus9033 artus9033 marked this pull request as draft February 7, 2026 00:40
@grabbou
Copy link
Contributor

grabbou commented Feb 7, 2026

Nice improvements! Let me know when this is ready!

@grabbou grabbou marked this pull request as ready for review February 7, 2026 11:30
@artus9033
Copy link
Contributor Author

Absolutely! Finishing the last pieces, somehow this is crashing on iOS - I need to dive deeper into this

@artus9033
Copy link
Contributor Author

@grabbou it's R4R now!

@artus9033 artus9033 changed the title fix: support newest MLC on iOS fix: support newest MLC on iOS, fix isAvailable check on Android Feb 7, 2026
@artus9033 artus9033 merged commit c60587b into main Feb 9, 2026
5 checks passed
azizbecha pushed a commit to azizbecha/react-native-ai that referenced this pull request Feb 13, 2026
…lstackincubator#192)

* feat: support newest MLC on iOS

* fix: update MLCEngine.mm to properly handle responses & initialization of the JSONFFIEngine

* fix: mlcModelSetupAdapter isAvailable to work on iOS

* fix: revert change of model for iOS

* chore: sort imports

* fix: use getFilesDir on MLC Android
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.

2 participants