aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Gultsch <daniel@gultsch.de>2014-03-15 16:42:04 +0100
committerDaniel Gultsch <daniel@gultsch.de>2014-03-15 16:42:04 +0100
commit0b3b0da2e8db96f68ddfe35d6f9294ee58c9323e (patch)
treed6ec5136c63936af719a4f199342928b1ce3565d
parent8cd59bb944ed9373eb04420a32f3b7cfce0a8956 (diff)
prepared release0.1-rc1
-rw-r--r--AndroidManifest.xml4
-rw-r--r--custom_rules.xml28
2 files changed, 30 insertions, 2 deletions
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index e248145d..6a13ae92 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -2,7 +2,7 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="eu.siacs.conversations"
android:versionCode="1"
- android:versionName="1.0" >
+ android:versionName="0.1-rc1" >
<uses-sdk
android:minSdkVersion="14"
@@ -89,4 +89,4 @@
</activity>
</application>
-</manifest> \ No newline at end of file
+</manifest>
diff --git a/custom_rules.xml b/custom_rules.xml
new file mode 100644
index 00000000..f7b0378a
--- /dev/null
+++ b/custom_rules.xml
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project>
+
+ <target name="rename-release-with-version-number" >
+
+ <xmlproperty
+ collapseAttributes="true"
+ file="AndroidManifest.xml"
+ prefix="themanifest" />
+
+ <property
+ name="out.packaged.file"
+ location="${out.absolute.dir}/${ant.project.name}-${themanifest.manifest.android:versionName}-unsigned.apk" />
+
+ <property
+ name="out.final.file"
+ location="${out.absolute.dir}/${ant.project.name}-${themanifest.manifest.android:versionName}.apk" />
+ </target>
+
+ <target
+ name="-set-release-mode"
+ depends="rename-release-with-version-number,android_rules.-set-release-mode" >
+
+ <echo message="target: ${build.target}" >
+ </echo>
+ </target>
+
+</project> \ No newline at end of file