Skip to main content

Mapping files for production builds

To enable Kotzilla SDK to effectively handle obfuscated builds in production, it’s required to upload your mapping files. This guide explains how to set up and run the upload task for mapping files.

Prerequisites

To upload mapping files, ensure that the Kotzilla Gradle plugin is configured in your project. For more information on setting up the plugin, refer to the section called Update Gradle files in the get started guide.

Uploading mapping files using Gradle

  1. Run the upload task from the main application module in your project. The task can be executed for a specific build flavor by running the following command:

    ./gradlew uploadMappingFile<Flavour>
  2. Example: To upload the mapping file for the release build flavour, use:

    ./gradlew uploadMappingFileRelease

Important notes

  • Manual execution: This task is not automatically triggered. Be sure to set up this task for your production builds to ensure Kotzilla can correctly interpret your stack traces.

  • Check available tasks: To view available upload tasks, run:

    ./gradlew tasks