devindi / diawi-upload

Gradle plugin to uploads android apps to diawi.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

diawi-upload

Download

Gradle plugin for publishing android builds on diawi.com.

Usage

Add the following to your build.gradle

buildscript {
    repositories{
	    jcenter()
    }
    dependencies{
        classpath 'com.devindi:diawi-upload:1.2'
    }
}

// Apply plugin after android application
apply plugin: 'diawi-upload'

Configuration

properties

Name Type Description Default value
diawi.token String, required diawi API access token. Token is required property. Create new token null
diawi.output.stream java.io.OutputStream, optional output stream in which result will be printed System.out
diawi.output.format String, optional output format {file} uploaded at {date}. Diawi hash: {hash}
diawi.comment String, optional additional information to your users on this build: the comment will be displayed on the installation page null
diawi.password String, optional protect your app with a password: it will be required to access the installation page null
diawi.callback.emails list of strings, optional the email addresses Diawi will send the result to empty list
diawi.callback.url String, optional the URL Diawi should call with the result null
diawi.wallOfApps boolean, optional allow Diawi to display the app's icon on the wall of apps null

Output placeholders

placeholder value
{date} Datetime of upload finish
{hash} Diawi file hash
{link} Diawi installation link
{file} Original file name
{badge_url} badge url
{badge_html} Diawi badge as HTML-code
{badge_md} Diawi badge as markdown-code

Example:

diawi {
  token = 'example_token'
  comment = 'New major version'
}

Check sample project for example

Hint

You can provide any parameter via arguments

diawi.password = diawiPswrd

And run task with argument like ./gradlew diawiPublishMockDebug -PdiawiPswrd='SECRET_STUFF'

Tasks

Plugin creates task for every build variant.

About

Gradle plugin to uploads android apps to diawi.com

License:Apache License 2.0


Languages

Language:Groovy 100.0%