Hello! Has there been any experiments in bringing ...
# compose-android
l
Hello! Has there been any experiments in bringing Compose runtime, and kotlinx.coroutines, to the androidNative targets (NDK)? I was thinking it could be interesting to try some things in the NDK with compose runtime, be it for game development, or not.
๐Ÿ‘€ 2
j
Coroutines already supports it
For Compose it just takes a quick PR that you can make
๐Ÿ‘๐Ÿผ 1
๐Ÿ‘๐Ÿพ 1
I just added Linux ARM the other day to Compose runtime
๐Ÿ‘๐Ÿผ 1
๐Ÿ‘๐Ÿพ 1
l
kotlinx.coroutines don't have
Dispatchers.Main
for android native though
j
For a game you're probably on a dedicated thread for GL
Main is still probably useful to eventually have for calling up into managed code, but it's not blocking (heh)
๐Ÿ˜„ 1
l
I just added Linux ARM the other day to Compose runtime
Can you link it? Didn't find the linuxArm64 target on GitHub nor cs.android.com for Compose runtime
I think the main thread for android native is the same as for android, but you don't have the same APIs to dispatch to it, right?
l
Wait, there's Compose runtime for watchOS!
That's cool, even though I don't have immediate plans for anything watchOS
j
We've been pushing for all targets for quite some time. The ones that are there now (with the exception of linux arm that I just added) were the ones supported by old coroutines. Now, however, coroutines has all targets available, and so Compose can too. Someone just has to send the PR
K 5