Integrate Luciq on KMP
Add the Luciq KMP library to your Kotlin Multiplatform project for Android and iOS, either with an AI coding agent or by wiring the dependency by hand.
Get started in seconds
Option 1 — Set up with an AI coding agent (recommended)
Set up Luciq SDK in this project in one shot!
1. Install the Luciq agent skills: `npx luciq-skills install`
2. Setup and authenticate Luciq MCP server to this project
3. Add the Luciq SDK to this projectOption 2 — Install manually
2
Initialize the SDK
Import Luciq in your code
import ai.luciq.kmp.modules.LuciqKmp
import ai.luciq.kmp.utils.InvocationEvents
object LuciqDefaults {
const val APP_TOKEN = "APP_TOKEN"
val invocationEvents = listOf(InvocationEvents.FloatingButton)
val logLevel = LogLevel.Debug
val appVariant:String? = null
}
fun initializeLuciq(configuration: LuciqConfiguration) {
LuciqKmp.init(configuration)
}val configuration = LuciqConfiguration(
androidApplication = application,
token = LuciqDefaults.APP_TOKEN,
invocationEvents = LuciqDefaults.invocationEvents,
logLevel = LuciqDefaults.logLevel,
appVariant = LuciqDefaults.appVariant
)
Shared.initializeLuciq(configuration)val configuration = LuciqConfiguration(
token: LuciqDefaults.shared.APP_TOKEN,
invocationEvents: LuciqDefaults.shared.invocationEvents,
logLevel: LuciqDefaults.shared.logLevel,
appVariant: LuciqDefaults.shared.appVariant
)
Shared.initializeLuciq(configuration)Configuration options
Parameter
Android
iOS
Description
Managing permissions
Jetpack Compose (Android)
SwiftUI (iOS)
Last updated