Skip to main content
The Figranium Kotlin SDK is published to Maven Central. It requires Kotlin 2.2 or newer, a JVM toolchain of 17, and Android minSdk 23 if you target Android. Add the 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

Add figranium 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 the figranium-appfunctions artifact and the KSP plugin with the appfunctions-compiler processor. AppFunctions require Android 16 (API 36+).
build.gradle.kts
figranium-appfunctions re-exports the core SDK so you only need to declare the AppFunctions artifact if you use it.

Import

Import the SDK package in any Kotlin file that uses the client.
For AppFunctions, also import the appfunctions package.

Verify the install

Call health.check() to confirm the SDK can reach your Figranium server.
verify.kt
A healthy Figranium instance returns a 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.