SDK setup for KMP apps
This guide will help you register your KMP app on the Kotzilla Platform and set up the Kotzilla SDK. Follow these steps to get started!
Step 1 - Register your application on Kotzilla
Follow Step 1 from the Android app setup guide to register your app on the Kotzilla Platform.
Step 2 - Set up the Kotzilla SDK
Refer to Step 2 in the Android app setup guide to download the configuration file and update your Gradle files with the Kotzilla SDK dependency.
Step 3 - Start the Kotzilla SDK in Your KMP App
To start the Kotzilla SDK in a Kotlin Multiplatform (KMP) app, add the following to your shared code configuration for Koin (i.e, Koin.kt in commonMain):
...
startKoin {
appDeclaration()
// Kotzilla SDK setup for KMP apps
analytics {
setApiKey("YourAPIKey") // Available in the kotzilla.json file
setVersion("AppVersion")
}
}
...
Step 4 Verify the Kotzilla SDK configuration
Now that the SDK is configured, you can build and run your app to start capturing data from a first user session.
Once you've stopped the app:
- Click Check your data to confirm everything is being collected correctly.
- Then click Go to Dashboard to view your app’s performance and configuration insights.