A Gradle plugin for uploading iOS and Android Apps to HockeyApp.
Add to your build.gradle
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'de.felixschulze.gradle:gradle-hockeyapp-plugin:2.4+'
}
}
apply plugin: 'hockeyApp'
hockeyapp {
apiToken = "YOURHOCKEYAPPTOKEN"
}Add to your build.gradle
hockeyapp {
apiToken = "YOURHOCKEYAPPTOKEN"
releaseType = 2 // alpha
notify = 0
status = 2
notesType = 1
notes = "Some notes."
variantToApplicationId = [
BuildVariantA: "applicationIdA",
BuildVariantB: "applicationIdB",
]
}
apiToken: Your API Token from HockeyApp
variantToApiToken: Optional:[variantName: "YOURHOCKEYAPPTOKEN", variantName2: "YOUROTHERHOCKEYAPPTOKEN"]map between your variants and api tokensreleaseType:0beta,1live,2alphavariantToReleaseType: Optional:[variantName: "0", variantName2: "1"]map between your variants and releaseTypenotify:0not notify testers,1notify all testers that can install this appstatus:1not allow users to download the version,2make the version available for downloadvariantToStatus: Optional:[variantName: "1", variantName2: "2"]map between your variants and statusnotes: Release notes as Textile or MarkdownvariantToNotes: Optional:[variantName: "some notes", variantName2: "some other Notes"]map between your variants and notesnotesType:0Textile,1MarkdownvariantToNotesType: Optional:[variantName: "0", variantName2: "1"]map between your variants and notesTypemandatory:0not mandatory,1mandatoryvariantToMandatory: Optional:[variantName: "0", variantName2: "1"]map between your variants and mandatorymappingFileNameRegex: Optional:mappingFileNameRegex="mapping.txt"Should contain the filename or a regex for the proguardmapping.txtmapping file (Android) ordSYMfile (iOS). Standard ismapping.txtvariantToApplicationId: Optional (Android):[variantName: "appId", variantName2: "appId2"]map between your variants and application IDssymbolsDirectory: Only needed for iOS or if you don't use the android gradle plugin:file("directory")Directory which contains theRordSYMfileappFileNameRegex: Only needed for iOS or if you don't use the android gradle plugin `appFileNameRegex = ".*.ipa"outputDirectory: Only needed for iOS:file("directory")tags: Optional: restrict download to comma-separated list of tagscommitSha: Optional: commit SHA for this buildbuildServerUrl: Optional: the URL of the build job on your build serverrepositoryUrl: Optional: your source repository URLteamCityLog:trueAdd features for TeamCity
If you use a top-level-project and got the error java.lang.NoSuchFieldError: INSTANCE move the dependency to this plugin to your root build.gradle file (see #30)
gradle-hockeyapp-plugin is available under the MIT license. See the LICENSE file for more info.
