Automatic mapping file upload with Android Studio

Using our Tracepot Gradle Plugin you can automatically upload ProGuard mapping file, application name and icon after each build.

Installation
A typical installation takes less than 20 seconds. Installation consists of adding the following to your build.gradle file:
  1. Add the Tracepot Maven repository:
    maven { url 'http://www.tracepot.com/maven' }
  2. Add plugin dependency:
    classpath 'com.tracepot.plugins.gradle:tracepot:1.+' 
  3. Apply plugin:
    apply plugin: 'tracepot' 

Configure your Tracepot Group API key and build flavors by adding this to your "android" section: (You can find your API key in the group settings)
tracepotConfig {
    apiGroupKey "1234567890abcdef"
    enabledFor "release"
}

This will enable the plugin for the release build variant. If you have multiple flavors you can separate build variants by comma:

enabledFor "freeRelease", "proRelease"


Complete Example
For convenience, here is a snippet of a complete build.gradle file, including the additions above.
buildscript {
    repositories {
        jcenter()
        maven { url 'http://www.tracepot.com/maven' }
    }

    dependencies {
        classpath 'com.android.tools.build:gradle:1.0.0'
        classpath 'com.tracepot.plugins.gradle:tracepot:1.+'
    }
}

apply plugin: 'com.android.application'
apply plugin: 'tracepot'

android {
    tracepotConfig {
        apiGroupKey "1234567890abcdef"
        enabledFor "release"
    }
}


Usage
This plugin will run automatically for each build variant you have enabled in the config above.

If the application does not exist on Tracepot it will be automatically added.

If you are using applicationIdSuffix '.debug' in your config, Tracepot will strip the .debug part when adding the application.


Using a Web Proxy
Behind a firewall at work? Tracepot Gradle Plugin supports HTTP proxy via "http.proxyHost" system property. Please refer to the Accessing The Web Via a Proxy section in the Gradle user guide document.


You can always use manual mapping file upload if you want.


Feedback and Knowledge Base