Set up the platform
This section will guide you through the process of registering your application in the Kotzilla Platform and setting up the Kotzilla SDK in your NowInAndroid app.
1. Register your application in Kotzilla
- Log in to your Kotzilla account
- Register your application
- Click on the Register Your Application button on the homepage. This will start a wizard that will guide you through the different steps.
- Define your application details
- Application Name: Enter “NowInAndroid”
- Android Package Name: Use “com.google.samples.apps.nowinandroid.demo.debug”
- App type: Select the default “Debug” value
If you choose the Production type, you'll need to provide the corresponding mapping file for your release build.
Now that the NowInAndroid app is registered, we will proceed to set up the Kotzilla SDK.
2. Set up the Kotzilla SDK
2.1 Create a Kotzilla project configuration File
Download the Kotzilla.json file that has been automatically generated. This is the configuration file of your project.
Add the Kotzilla.json file into the app-level module of your Android Studio project (nowinandroid/app directory)
Module (app-level) Gradle file ( <project>/<app-module>
)
2.2 Update Gradle files
Kotzilla SDK is available on both Maven Central and the Kotzilla public repository. More information on how to configure access to the Kotzilla repository is available here
In your project root folder, add the plugin and Kotzilla SDK to the build.gradle.kts
:
Project (root-level) Gradle file (NowInAndroid/build.gradle.kts
):
// --- Plugins ---
plugins {
// ...
// Add the Kotzilla Gradle plugin
id("io.kotzilla.kotzilla-plugin") version "0.13.2" apply false
}
In your app module add the plugin and Kotzilla SDK dependency to the build.gradle.kts
file within the module directory:
Module (app-level) Gradle file (NowInAndroid/app/build.gradle.kts
):
// --- Plugins ---
plugins {
// Add the Kotzilla Gradle plugin
id("io.kotzilla.kotzilla-plugin")
}
// --- Dependencies ---
dependencies {
// The Kotzilla SDK library dependency
implementation("io.kotzilla:kotzilla-sdk:0.13.2")
}
2.3 Sync your project
Once installed, sync your NowInAndroid project with the updated Gradle files to apply the changes.
3. Start the Kotzilla SDK in your NowInAndroid App
In your Application
class:
- Start the Kotzilla SDK using
KotzillaSDK.setup(this)
import io.kotzilla.sdk.KotzillaSDK
class MainApplication : Application() {
override fun onCreate() {
super.onCreate()
// Start Kotzilla SDK
KotzillaSDK.setup(this)
...
}
}
Final steps
The registration wizard will then prompt you to go to the Kotzilla Platform dashboard:
Congratulations! The installation is now complete, and you’re all set to start debugging your app.