forked from guardianproject/lildebi
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcustom_rules.xml
More file actions
34 lines (30 loc) · 1.23 KB
/
custom_rules.xml
File metadata and controls
34 lines (30 loc) · 1.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?xml version="1.0" encoding="UTF-8"?>
<project>
<target name="rename-release-with-version-number">
<xmlproperty file="AndroidManifest.xml"
prefix="themanifest"
collapseAttributes="true"/>
<!-- see ${sdk.dir}/tools/ant/build.xml -set-release-mode -->
<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>
<target name="-pre-build">
<tstamp>
<format property="current.timestamp" pattern="yyyyMMddHHmm.ss" />
</tstamp>
<echo message="timestamp: ${current.timestamp}"></echo>
<apply executable="touch" parallel="true" verbose="true">
<arg value="-t"/>
<arg value="${current.timestamp}"/>
<fileset dir="assets" casesensitive="yes">
<include name="*"/>
</fileset>
</apply>
</target>
</project>