|
|
|
@ -227,25 +227,17 @@
|
|
|
|
|
</target>
|
|
|
|
|
|
|
|
|
|
<target name="setup-lite" if="lite.enabled">
|
|
|
|
|
<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;" />
|
|
|
|
|
|
|
|
|
|
<replaceregexp file="AndroidManifest.xml"
|
|
|
|
|
match="package=".*""
|
|
|
|
|
replace="package="com.astrid.astridlite"" />
|
|
|
|
|
<replaceregexp file="AndroidManifest.xml"
|
|
|
|
|
match="authorities="(.*)""
|
|
|
|
|
replace="authorities="\1.lite""
|
|
|
|
|
flags="g"/>
|
|
|
|
|
|
|
|
|
|
<copy todir="res_old">
|
|
|
|
|
<fileset dir="res"/>
|
|
|
|
|