You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In gdscript (godot’s scripting language), there is a yield method, which is basically a coroutine. So we implement it for godot-kotlin using kotlin’s couroutines (see here).
We managed to get it working on every platforms, except android, as we cannot find a native implementation for android here
What I understand is that on android you have to use a JVM implementation of coroutines, to access Dispatchers.Main, according to the readme.
I’d like to know if we understand well the problem, and if you have any workaround to bring yield on godot-kotlin for android ?
Thank you for your time.
The text was updated successfully, but these errors were encountered:
piiertho
changed the title
How to ? kotlinx.coroutines for android native. (Godot yield implementation)
How to ? kotlinx.coroutines on android native. (Godot yield implementation)
Feb 16, 2020
We don't currently ship pre-compiled versions of kotlinx.coroutines for AndroidNative targets. See #812 for the relevant issue.
The main problem is that we lack the infrastructure to test such integration. If you know now to set up the tests for Android/Native toolchain, then you are welcome to contribute. It should start with support for AndoidNative targets in atomicfu project. See Kotlin/kotlinx-atomicfu#122
Hi there !
This is more a question than an issue, I don't know if there's a better place to ask.
I am currently working with contributors on adapting Kotlin to godot’s GDNative, using kotlin cinterop: https://github.com/utopia-rise/godot-kotlin.
In gdscript (godot’s scripting language), there is a
yield
method, which is basically a coroutine. So we implement it for godot-kotlin using kotlin’s couroutines (see here).We managed to get it working on every platforms, except android, as we cannot find a native implementation for android here
What I understand is that on android you have to use a JVM implementation of coroutines, to access
Dispatchers.Main
, according to the readme.I’d like to know if we understand well the problem, and if you have any workaround to bring
yield
on godot-kotlin for android ?Thank you for your time.
The text was updated successfully, but these errors were encountered: