forked from onyxbits/TextFiction
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcustom_rules.xml
More file actions
21 lines (18 loc) · 833 Bytes
/
custom_rules.xml
File metadata and controls
21 lines (18 loc) · 833 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<!--
Customize the build process: create an assets/build.properties file that can
be checked at runtime for build options and give the APK a more verbose
name.
-->
<project name="Bundle Helper for enabling app store specific features">
<target name="-pre-build">
<!-- Extract version information from AndroidManifest.xml -->
<xpath input="${manifest.abs.file}" expression="/manifest/@android:versionName" output="dist.version.name" default="unknown"/>
<xpath input="${manifest.abs.file}" expression="/manifest/@android:versionCode" output="dist.version.code" default="-1"/>
</target>
<target name="-post-build">
<copy
overwrite="true"
file="${out.final.file}"
tofile="${out.absolute.dir}/${ant.project.name}-${build.target}-${dist.version.name}.apk" />
</target>
</project>