SDK setup for SDK libraries
This guide will walk you through registering your SDK library on the Kotzilla Platform and setting up the Kotzilla SDK. Follow these steps to get started!
Step 1 - Register your SDK library on Kotzilla
Follow Step 1 from the Android app setup guide to register your SDK app as an Android 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.
As an Android library, configure the versionName
property in the Kotzilla
plugin section:
kotzilla {
// Android Library version
versionName = "1.0.1"
}
Be sure to have your kotzilla.json
in your SDK App module.
Step 3 - Start the Kotzilla SDK in your SDK library
To set up the Kotzilla SDK in a Kotlin SDK library, add the following to your Koin configuration:
...
val instance = KotzillaCoreSDK()
.setup(context.apiKey(), context.getVersion())
.connect()
// Attach your Kotzilla SDK instance to your Koin configuration
startKoin {
analyticsLogger(sdkInstance = instance)
modules(...)
}
...
Step 4 Verify the Kotzilla SDK configuration
Now that the SDK is configured, you can build and run your application 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.