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
- Host: GitHub
- URL: https://github.com/inloop/easyrelease
- Owner: inloop
- License: apache-2.0
- Created: 2014-06-26T16:41:06.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-11-03T15:56:49.000Z (about 10 years ago)
- Last Synced: 2024-04-16T11:40:47.408Z (almost 2 years ago)
- Language: Groovy
- Size: 429 KB
- Stars: 58
- Watchers: 10
- Forks: 8
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
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).