Skip to content

devindi/diawi-upload

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.