- Published: Friday, 25 September 2015 00:00
- Written by MhzDev
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:
Like in this script:
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
Note: In "AppName" remeber to put your real app name
I hope that helped you ;)