An open API service indexing awesome lists of open source software.

https://github.com/inloop/easyrelease

Gradle plugin for Android projects that helps with signing release APKs
https://github.com/inloop/easyrelease

Last synced: 10 months ago
JSON representation

Gradle plugin for Android projects that helps with signing release APKs

Awesome Lists containing this project

README

          

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](CHANGELOG.md). 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).