Kite Core
Runtime utilities for Kotlin Multiplatform, for the pieces that commonMain does not have.
KiteCore has four platform primitives (ioDispatcher, asyncWithProgress, WeakRef and Platform), a portable String.format, and a short list of coroutine and Flow helpers. Its only dependency is kotlinx-coroutines-core. It runs on Android, the JVM, iOS, macOS, JS and Wasm.
| You want to | Use |
|---|---|
| Run blocking calls in common code | ioDispatcher |
| Show the progress of a long operation | asyncWithProgress |
| Point to an object without keeping it alive | WeakRef |
| Know the OS and device | Platform.current |
| Format text with Java's syntax | String.format |
| Retry, run in parallel, share work | the coroutines package |
Throttle a flow, derive a StateFlow | the flow package |