Skip to content

Instantly share code, notes, and snippets.

@thinkpozzitive
thinkpozzitive / publish.gradle
Created October 26, 2016 06:44 — forked from lifuzu/publish.gradle
Copying APK file in Android Gradle project
def releasePath = file("${rootDir}/archive/${project.name}")
def releaseTask = tasks.create(name: 'release') {
group 'Build'
description "Assembles and archives all Release builds"
}
android.applicationVariants.all { variant ->
if (variant.buildType.name == 'release') {
def build = variant.name.capitalize()