figranium artifact (and optionally figranium-appfunctions) to your Gradle build.
Requirements
- Kotlin 2.2 or newer.
- Gradle build with Kotlin 1.9 or Android Gradle Plugin 9.x.
- Android minSdk 23 (or a plain JVM project).
- A running Figranium server that the client can reach. Local installs default to
http://localhost:11345.
Add the dependency
Kotlin DSL
Addfigranium to your dependencies block. The SDK types are suspend functions that you call inside a coroutine scope.
build.gradle.kts
Groovy DSL
build.gradle
Block dependencies
Optional: Android AppFunctions
Add thefigranium-appfunctions artifact and the KSP plugin with the appfunctions-compiler processor. AppFunctions require Android 16 (API 36+).
build.gradle.kts
Import
Import the SDK package in any Kotlin file that uses the client.Verify the install
Callhealth.check() to confirm the SDK can reach your Figranium server.
verify.kt
HealthStatus with status equal to "ok".
Next steps
Quickstart
Save and run your first task with the SDK.
Client configuration
Configure
baseUrl, timeouts, custom OkHttpClient, and default headers.