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

Skija on iOS #44

Open
sgopi93 opened this issue Nov 8, 2020 · 4 comments
Open

Skija on iOS #44

sgopi93 opened this issue Nov 8, 2020 · 4 comments

Comments

@sgopi93
Copy link

sgopi93 commented Nov 8, 2020

Hi, I am trying to write a word processor using skija/skiko as an abstraction on Desktops and mobiles, but I wonder how will skija run on iOS as it uses JNI(Kotlin multiplatform must use stdlib). Is there any roadmap for targeting iOS?

@tonsky
Copy link
Collaborator

tonsky commented Nov 8, 2020

What’s JVM story on iOS? I think you are better off with Skiko + Kotlin Native (I don’t think if it’s there yet, but the have plans to go there, as far as I know)

@sgopi93
Copy link
Author

sgopi93 commented Nov 8, 2020

I think you are better off with Skiko + Kotlin

I am assuming Skiko uses Skija underneath, which means Skija has to be targeted to iOS as well?.
If Skiko used cinterop directly to wrap Skia, wouldn't that be a better route for targeting multiplatform?

@joelewis
Copy link

joelewis commented Nov 8, 2020

I have the same question. I understand Skija route will help Java projects to easily integrate Skia on top of being useful for Skiko/Jetbrains Compose project as well. But directly wrapping Skia C++ APIs with Kotlin would have been a better direction to target more platforms, especially iOS?

Would like to know the actual motivation of the project and what's in line for platforms that doesn't do well with JVM.

@tonsky
Copy link
Collaborator

tonsky commented Nov 8, 2020

Skija is JVM bindings for Skia. It doesn’t add anything on top. If some platform does not support JVM, maybe using Skia via C++/C bindings directly is a better approach?

Re: iOS, Skia has first-class support for iOS, as far as I know. Chrome and Flutter use it.

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