I've recently made a library for interacting with Discord's Rich Presence in pure Kotlin/Native, namely KPresence. Other Kotlin libraries were relying on JNI so I decided to make my own š.
Features:
⢠Cross-platform compatibility (Windows, Linux, macOS)
⢠Fast and user-friendly, featuring DSL support
⢠Independent of JVM, written entirely in pure Kotlin/Native
⢠Respects the ratelimit of one update per 15 seconds. The library will always send the newest presence update once the client is free to do so
⢠Validates the activity fields before sending them
https://github.com/reblast/KPresence (WIP)
I haven't got time to test it on platforms other than Windows, but it should work nonetheless.
šš¾ 1
K 5
š 2
s
Stefan Oltmann
03/24/2024, 1:06 PM
Love to see the ecosystem grow. JNI with al the native library unpacking at runtime is always a hassle. So in cases where it's not really needed for performance reasons (like skiko) it's better to do without. š