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

Mobile Support #12

Open
zicklag opened this issue Jun 8, 2021 · 3 comments
Open

Mobile Support #12

zicklag opened this issue Jun 8, 2021 · 3 comments

Comments

@zicklag
Copy link
Contributor

zicklag commented Jun 8, 2021

I know the point of nativeshell is to support desktop applications, but would it be possible to build nativeshell for iOS and Android, too, so that we could still use Rust to write mobile apps as well?

@knopp
Copy link
Contributor

knopp commented Jun 8, 2021

I think it would be possible to make a stripped down version of nativeshell for mobile which would contain things like interfacing with platform channels, so that it would be possible to write platform channel handlers in rust.

However unlike on desktop, I think that on mobile the way flutter build normally works (where xcode / android studio builds the project) actually makes sense, so the rust code would probably need to be integrated as a library to existing xcode / android projects.

This all should be doable, but it's not really on my radar right now.

@zicklag
Copy link
Contributor Author

zicklag commented Jun 8, 2021

OK, cool. I don't think it's something worth focusing on at the moment, but if it's not an anti-goal then at least if I ever want to do that it's something I might be able to contribute.

It would be amazing to create a way to do Desktop, Mobile, and even Web if possible with the smae codebase like is mostly only accomplished using web technologies now-a-days, which is not my favorite if I can get away from it.

@timfish
Copy link

timfish commented Jun 9, 2021

It's also possible to write flutter plugins in Rust and I assume you could then use that on both desktop and mobile.

I've realised that it's even simpler than the above linked blog post since Dart has bindgen tools to automatically generate bindings from header files.

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

No branches or pull requests

3 participants