From b871f04bebf6e644fb1066ae2118ef134033f12a Mon Sep 17 00:00:00 2001 From: Fredrik Fornwall Date: Wed, 29 May 2019 23:30:23 +0200 Subject: [PATCH] Add a versionName gradle task --- app/build.gradle | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/build.gradle b/app/build.gradle index 2aefd44..26e6e4e 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -27,3 +27,9 @@ android { dependencies { implementation 'com.android.support:design:28.0.0' } + +task versionName { + doLast { + print android.defaultConfig.versionName + } +}