Legacy Gradle SDK setup
This page shows how to setup the Kotzilla SDK for projects not using Version Catalog.
- Initial app registration (downloading
kotzilla.json) and starting the SDK (callingmonitoring()in your Koin configuration) remain exactly the same as in the app-type specific setup guides. - Only the Gradle configuration snippets differ.
- Use this page only if your project is not using Version Catalog.
1. Root Project Gradle File
In your root-level build.gradle.kts file, apply the Kotzilla plugin:
plugins {
id("io.kotzilla.kotzilla-plugin") version "2.0.2" apply false
}
This step is the same for all app types.
2. Module-Level Gradle File
Choose the snippet that matches your app type and add it to your module-level build.gradle.kts.
The plugin automatically adds SDK dependencies. No manual implementation line needed.
For manual control, set kotzilla { autoAddDependencies = false } and add the dependency explicitly.
Android
plugins {
id("io.kotzilla.kotzilla-plugin")
}
Manual fallback: implementation("io.kotzilla:kotzilla-sdk:2.0.2")
Android with Compose
plugins {
id("io.kotzilla.kotzilla-plugin")
}
Manual fallback: implementation("io.kotzilla:kotzilla-sdk-compose:2.0.2")
Compose navigation instrumentation is enabled by default in SDK 2.0.x.
Kotlin Multiplatform (KMP)
plugins {
id("io.kotzilla.kotzilla-plugin")
}
Manual fallback: implementation("io.kotzilla:kotzilla-sdk:2.0.2") in commonMain.dependencies
Compose Multiplatform (CMP)
plugins {
id("io.kotzilla.kotzilla-plugin")
}
kotzilla {
versionName = "1.0.0" // Your app version
}
Manual fallback: implementation("io.kotzilla:kotzilla-sdk-compose:2.0.2") in commonMain.dependencies
Compose navigation instrumentation is enabled by default in SDK 2.0.x.
SDK Library for Android
plugins {
id("io.kotzilla.kotzilla-plugin")
}
Manual fallback: implementation("io.kotzilla:kotzilla-sdk:2.0.2")
3. Kotzilla DSL Reference
The kotzilla {} block options apply to both Version Catalog and legacy Gradle setups. See the dedicated Kotzilla Gradle plugin configuration page for the full DSL reference and the build report.