|
|
|
@ -214,6 +214,29 @@
|
|
|
|
|
replace="\1${custom.version.name}" />
|
|
|
|
|
<antcall target="release" />
|
|
|
|
|
|
|
|
|
|
<move file="AndroidManifest_old.xml" tofile="AndroidManifest.xml" />
|
|
|
|
|
</target>
|
|
|
|
|
|
|
|
|
|
<!-- build lite release package with updated version name -->
|
|
|
|
|
<target name="release-lite" depends="clean">
|
|
|
|
|
<fail message="need to set custom.version.name">
|
|
|
|
|
<condition>
|
|
|
|
|
<not>
|
|
|
|
|
<isset property="custom.version.name" />
|
|
|
|
|
</not>
|
|
|
|
|
</condition>
|
|
|
|
|
</fail>
|
|
|
|
|
<copy file="AndroidManifest.xml" tofile="AndroidManifest_old.xml" />
|
|
|
|
|
<replaceregexp file="AndroidManifest.xml"
|
|
|
|
|
match="(android:versionName="[^" ]*)[^"]*"
|
|
|
|
|
replace="\1${custom.version.name}" />
|
|
|
|
|
|
|
|
|
|
<replaceregexp file="${source.dir}/com/todoroo/astrid/utility/Constants.java"
|
|
|
|
|
match="ASTRID_LITE = .*"
|
|
|
|
|
replace="ASTRID_LITE = true;" />
|
|
|
|
|
|
|
|
|
|
<antcall target="release" />
|
|
|
|
|
|
|
|
|
|
<move file="AndroidManifest_old.xml" tofile="AndroidManifest.xml" />
|
|
|
|
|
</target>
|
|
|
|
|
|
|
|
|
|