Gradle plugin for Android projects that helps with signing release APKs
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
gradle/wrapper
plugin
sample
.gitignore
CHANGELOG.md
LICENSE
README.md
build.gradle
gradle.properties
gradlew
gradlew.bat
settings.gradle

README.md

easyrelease

Gradle plugin for Android projects that helps with signing release APKs.

It does following in Project.afterEvaluate():

  • reads versionName and versionCode from build.gradle and if not defined there, then it's taken from AndroidManifest.xml
  • sets each build variant's output file name to project_name-${variant}-${versionName}-${versionCode}.apk
  • sets following release buildType properties:
    • zipAlignEnabled true
  • updates release signingConfig with proper certificate path, keystore password, key alias and key password defined in property file

Status

See the CHANGELOG. Plugin is in early stages. It is based on what we used in our applications and works well for us, but we are sure there are other use-cases or ways it can be improved. It is already available from Maven Central Repository.

Usage

Add to your_app/build.gradle:

buildscript {
    repositories {
        mavenCentral()
    }
    dependencies {
        classpath 'eu.inloop:easyrelease:0.2.2'
    }
}
apply plugin: 'easyrelease'

Create your_app/easyrelease.properties:

KEYSTORE_FILE=path/to/your.keystore
KEYSTORE_PASSWORD=your_keystore_password
KEY_ALIAS=your_key_alias
KEY_PASSWORD=your_key_password

It is recommended to add easyrelease.properties to .gitignore (or similar for your VCS).