RT Vermilion - шаблон joomla Скрипты

Welcome on MhzDev.com

Created by Michele Stefanelli

Android Gradle tips - Set apk build name Automatically

Gradle is a very powerful Build automation Tool, learning how to use, you will be surprised how many things it can do. 
This is a little trick that can save you precious time. With this line, gradle will automatically rename your build according to your appname and versionName!

Note: This was tested with Gradle 2.7 & Android Gradle plugin 1.3.0, may not work with older version.

Put this line in your build.gradle file of your app module:

setProperty("archivesBaseName", "AppName-$versionName")

Like in this script:

android {
compileSdkVersion 23
buildToolsVersion "22.0.1"

defaultConfig {
applicationId "com.mhzdev.apptemplate"
multiDexEnabled true
minSdkVersion 15
targetSdkVersion 23
versionCode 1
versionName "1.0"
setProperty("archivesBaseName", "AppName-$versionName")
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'

Note: In "AppName" remeber to put your real app name

I hope that helped you ;)

My Photography

I really like to take pictures and even see them, in fact, are now almost 8 years that I take photographs. I prefer to shoot mostly landscapes and macro, as you can see from my photos, but I also like the other kinds.

On my Flickr Photostream you can see my last shots, I not always find the time to practice this hobby, but when I can, it gives me lot of satisfactions :)

My FlickrPhotostream


Welcome on MhzDev.com

Welcome on my website, here I can share here my main information, all connections that i have on social and some other curiosity, along with some article ;)