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 your Kotlin Multiplatform (KMP) app, use the following code:
- Run the Kotzilla SDK default instance with
KotzillaCoreSDK
- Setup Kotzilla platform with given App api Token and version name
setup()
- Detect current Koin instance logger
attachKoinLogger()
- Connect to Kotzilla platform
connect()
// Setup & connect Kotzilla SDK
val instance = KotzillaCoreSDK
.setup("Your-ApiToken", "1.0")
.attachKoinLogger()
.connect()
Start your Koin application with analytics enabled:
// Start Koin
startKoin {
analyticsLogger()
modules(...)
}
Congratulations! The installation is now complete, and you’re all set to start debugging your app.