aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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