https://kotlinlang.org logo
#compose-desktop
Title
# compose-desktop
m

Mikołaj Kąkol

07/10/2022, 8:33 PM
hello, is it possible to create Linux only compose application that would include a Kotlin Native library that would handle communication via USB (or similar low level api)?
b

Big Chungus

07/10/2022, 8:48 PM
Yes, via jni
👍🏻 1
No direct compose/kotlin-native comms though
c

corneil

07/10/2022, 10:10 PM
Compose Desktop uses Java APIs.
m

Mikołaj Kąkol

07/11/2022, 5:44 AM
thank you 🙂
d

Dragos Rachieru

07/14/2022, 12:43 PM
I did something similar with linuxcnc using JNI
b

Big Chungus

07/14/2022, 12:45 PM
Here's my sample setup to use K/N via JNI in CfD app
m

Mikołaj Kąkol

07/14/2022, 12:52 PM
wow, this is huge, thank you. I’m checking this out!
b

Big Chungus

07/14/2022, 12:53 PM
Best part about it is that you don;t have to preinstall any native build dependencies! Took me a while to figure out, but quite happy with how it turned out. Previously I was using gradle cpp plugin which was a pain to setup on a fresh machine
7 Views