diff --git a/.gitignore b/.gitignore
index ec870c9..2e2a23f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -5,3 +5,4 @@
.DS_Store
/build
/captures
+/versions.properties
diff --git a/.idea/codeStyleSettings.xml b/.idea/codeStyleSettings.xml
index 4c5388c..f968d48 100644
--- a/.idea/codeStyleSettings.xml
+++ b/.idea/codeStyleSettings.xml
@@ -196,6 +196,6 @@
-
+
\ No newline at end of file
diff --git a/app/app.iml b/app/app.iml
index c183349..ef68a70 100644
--- a/app/app.iml
+++ b/app/app.iml
@@ -84,7 +84,7 @@
-
+
diff --git a/app/build.gradle b/app/build.gradle
index 04e4147..7d6e307 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -1,4 +1,5 @@
apply plugin: 'com.android.application'
+apply plugin: 'versionPlugin'
android {
compileSdkVersion 22
@@ -11,6 +12,7 @@ android {
versionCode 2
versionName "1.1b10"
}
+
buildTypes {
release {
minifyEnabled true
@@ -23,6 +25,13 @@ android {
exclude 'META-INF/NOTICE'
exclude 'META-INF/ASL2.0'
}
+
+ versionPlugin {
+ buildTypesMatcher = 'release'
+ supportBuildNumber = false
+
+ fileNameFormat = '$projectName'
+ }
}
dependencies {
diff --git a/build.gradle b/build.gradle
index d3ff69d..525aa14 100644
--- a/build.gradle
+++ b/build.gradle
@@ -6,6 +6,7 @@ buildscript {
}
dependencies {
classpath 'com.android.tools.build:gradle:1.1.0'
+ classpath 'com.github.hamsterksu:android-appversion-gradle-plugin:1.2.+'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files