Skip to main content

Legacy Gradle SDK setup

This page shows how to setup the Kotzilla SDK for projects not using Version Catalog.

info
  • Initial app registration (downloading kotzilla.json) and starting the SDK (calling analytics() in your Koin configuration, etc.) 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 "1.2.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.

Android

plugins {
id("io.kotzilla.kotzilla-plugin")
}

dependencies {
implementation("io.kotzilla:kotzilla-sdk:1.2.2")
// If using Ktor 3:
// implementation("io.kotzilla:kotzilla-sdk-ktor3:1.2.2")
}

Android with Compose

plugins {
id("io.kotzilla.kotzilla-plugin")
}

dependencies {
implementation("io.kotzilla:kotzilla-sdk-compose:1.2.2")
}

Kotzilla {
composeInstrumentation = true
}

Kotlin Multiplatform (KMP)

plugins {
id("io.kotzilla.kotzilla-plugin")
}

dependencies {
implementation("io.kotzilla:kotzilla-sdk:1.2.2")
// If using Ktor 3:
// implementation("io.kotzilla:kotzilla-sdk-ktor3:1.2.2")
}

Compose Multiplatform (CMP)

plugins {
id("io.kotzilla.kotzilla-plugin")
}

dependencies {
implementation("io.kotzilla:kotzilla-sdk-compose:1.2.2")
}

Kotzilla {
versionName = "yourAppVersion" // replace with your app version name
keyGeneration = KotzillaKeyGeneration.COMPOSE
composeInstrumentation = true
}

SDK Library for Android

plugins {
id("io.kotzilla.kotzilla-plugin")
}

dependencies {
implementation("io.kotzilla:kotzilla-sdk:1.2.2")
// If using Ktor 3:
// implementation("io.kotzilla:kotzilla-sdk-ktor3:1.2.2")
}
info

The latest version of the kotzilla-sdk is: Maven Central