HockeyApp Setup

HockeyApp SDK Integration

    dependencies {
        compile 'net.hockeyapp.android:HockeySDK:3.5.0'
    }

HockeyApp SDK Integration

Gradle HockeyApp Plugin

Intergrate this plugin to automatically upload builds to HockeyApp

hockeyApiToken=[insert api token found on your application's hockey site ]
buildscript {
    repositories {
        mavenCentral()
    }
    dependencies {
        classpath 'de.felixschulze.gradle:gradle-hockeyapp-plugin:3.2'
    }
}

apply plugin: 'de.felixschulze.gradle.hockeyapp'
hockeyapp {
    apiToken = ${hockeyApiToken}
}
env:
    ORG_GRADLE_PROJECT_hockeyApiToken=$$hockeyApiToken

deploy:
    bash:
        script:
            - ./gradlew uploadDebugToHockeyApp
deploy:
    bash:
        script:
            - ./gradlew uploadLiveDebugToHockeyApp

NOTE: If you receive an error java.lang.NoSuchFieldError: INSTANCE move your com.android.tools.build:gradle:x.y.z plugin dependency to your app project, not the top level project.

For a more advanced setup and customisation check out the gradle-hockeyapp-plugin README

Gradle HockeyApp Plugin