Added version plugin.

This commit is contained in:
Erik C. Thauvin 2015-04-15 12:33:08 -07:00
parent 58f7b14f6a
commit 12f3e84252
6 changed files with 14 additions and 4 deletions

3
.gitignore vendored
View file

@ -4,4 +4,5 @@
/.idea/workspace.xml /.idea/workspace.xml
/build /build
/captures /captures
/local.properties /local.properties
/versions.properties

2
.idea/vcs.xml generated
View file

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<project version="4"> <project version="4">
<component name="VcsDirectoryMappings"> <component name="VcsDirectoryMappings">
<mapping directory="" vcs="" /> <mapping directory="$PROJECT_DIR$" vcs="Git" />
</component> </component>
</project> </project>

View file

@ -84,7 +84,7 @@
<excludeFolder url="file://$MODULE_DIR$/build/outputs" /> <excludeFolder url="file://$MODULE_DIR$/build/outputs" />
<excludeFolder url="file://$MODULE_DIR$/build/tmp" /> <excludeFolder url="file://$MODULE_DIR$/build/tmp" />
</content> </content>
<orderEntry type="jdk" jdkName="Android API 13 Platform (1)" jdkType="Android SDK" /> <orderEntry type="jdk" jdkName="Android API 13 Platform (3)" jdkType="Android SDK" />
<orderEntry type="sourceFolder" forTests="false" /> <orderEntry type="sourceFolder" forTests="false" />
</component> </component>
</module> </module>

View file

@ -1,4 +1,5 @@
apply plugin: 'com.android.application' apply plugin: 'com.android.application'
apply plugin: 'versionPlugin'
android { android {
compileSdkVersion 13 compileSdkVersion 13
@ -16,4 +17,11 @@ android {
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt' proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
} }
} }
versionPlugin {
buildTypesMatcher = 'release'
supportBuildNumber = false
fileNameFormat = '$projectName'
}
} }

View file

@ -12,7 +12,7 @@
android:allowBackup="true"> android:allowBackup="true">
<activity <activity
android:name=".AvionActivity" android:name=".AvionActivity"
android:label="@string/app_name" > android:label="@string/app_name">
<intent-filter> <intent-filter>
<action android:name="android.intent.action.MAIN" /> <action android:name="android.intent.action.MAIN" />

View file

@ -5,6 +5,7 @@ buildscript {
} }
dependencies { dependencies {
classpath 'com.android.tools.build:gradle:1.1.0' classpath 'com.android.tools.build:gradle:1.1.0'
classpath 'com.github.hamsterksu:android-appversion-gradle-plugin:1.2.+'
} }
} }