All apps
Kotlin SDK
Maven CentralCoroutines & Flow client for Android, JVM, and Multiplatform
Gallery
About
Modern Kotlin Multiplatform client engineered for Android applications and backend JVM microservices. Packed with Coroutines, Flow-based streams, and R8 rules.
Features
- Idiomatic Kotlin Coroutines suspend functions and Flow pagination
- Kotlin Multiplatform support across Android and JVM targets
- Sealed class typed hierarchy for expressive error handling
- Consumer ProGuard / R8 keep rules packaged inside the AAR
Code Quickstart
ShafDemo.ktkotlin
import is.shaf.ShafClient
import kotlinx.coroutines.runBlocking
fun main() = runBlocking {
val client = ShafClient(apiKey = "your-api-key")
val link = client.createLink(
url = "https://dash.shaf.app",
alias = "portal"
)
println("Short link: ${link.shortUrl}")
}
