1 <?xml version="1.0" encoding="UTF-8"?>
2 <project name="Main" default="help">
4 <!-- The local.properties file is created and updated by the 'android'
6 It contains the path to the SDK. It should *NOT* be checked in in
7 Version Control Systems. -->
8 <property file="local.properties" />
11 <property file="export.properties" />
13 <!-- Custom Android task to deal with the project target, and import the proper rules.
14 This requires ant 1.6.0 or above. -->
15 <path id="android.antlibs">
16 <pathelement path="${sdk.dir}/tools/lib/anttasks.jar" />
17 <pathelement path="${sdk.dir}/tools/lib/sdklib.jar" />
18 <pathelement path="${sdk.dir}/tools/lib/androidprefs.jar" />
19 <pathelement path="${sdk.dir}/tools/lib/apkbuilder.jar" />
20 <pathelement path="${sdk.dir}/tools/lib/jarutils.jar" />
23 <taskdef name="android-export"
24 classname="com.android.ant.MultiApkExportTask"
25 classpathref="android.antlibs" />
27 <property name="out.dir" value="bin" />
28 <property name="out.absolute.dir" location="${out.dir}" />
31 <echo>Creating output directories if needed...</echo>
32 <mkdir dir="${out.absolute.dir}" />
35 <target name="release" depends="-dirs">
36 <android-export target="release" />
40 <delete dir="${out.absolute.dir}" verbose="${verbose}" />
41 <android-export target="clean"/>
45 <!-- displays starts at col 13
47 <echo>Android Ant Build. Available targets:</echo>
48 <echo> help: Displays this help.</echo>
49 <echo> clean: Removes output files created by other targets.</echo>
50 <echo> release: Builds the application. The generated apk file must be</echo>
51 <echo> signed before it is published.</echo>