|
|
@ -304,6 +304,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
<replace dir="res" token="com.timsu.astrid" value="com.todoroo.astridlite"/>
|
|
|
|
<replace dir="res" token="com.timsu.astrid" value="com.todoroo.astridlite"/>
|
|
|
|
<replace dir="${source.dir}" token="com.timsu.astrid" value="com.todoroo.astridlite"/>
|
|
|
|
<replace dir="${source.dir}" token="com.timsu.astrid" value="com.todoroo.astridlite"/>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<replaceregexp match=">(.*\s)task(.*)"
|
|
|
|
|
|
|
|
replace=">\1to-do\2"
|
|
|
|
|
|
|
|
flags="g">
|
|
|
|
|
|
|
|
<fileset dir="res/values">
|
|
|
|
|
|
|
|
<include name="strings-*.xml"/>
|
|
|
|
|
|
|
|
</fileset>
|
|
|
|
|
|
|
|
</replaceregexp>
|
|
|
|
|
|
|
|
<replaceregexp match=">(.*)Task(.*)"
|
|
|
|
|
|
|
|
replace=">\1To-do\2"
|
|
|
|
|
|
|
|
flags="g">
|
|
|
|
|
|
|
|
<fileset dir="res/values">
|
|
|
|
|
|
|
|
<include name="strings-*.xml"/>
|
|
|
|
|
|
|
|
</fileset>
|
|
|
|
|
|
|
|
</replaceregexp>
|
|
|
|
|
|
|
|
|
|
|
|
<replaceregexp file="res/values/strings-core.xml"
|
|
|
|
<replaceregexp file="res/values/strings-core.xml"
|
|
|
|
match="app_name">.*<"
|
|
|
|
match="app_name">.*<"
|
|
|
|
replace="app_name">Simple\\\\nTo-do<"
|
|
|
|
replace="app_name">Simple\\\\nTo-do<"
|
|
|
@ -318,6 +334,7 @@
|
|
|
|
<target name="teardown-lite" if="lite.enabled">
|
|
|
|
<target name="teardown-lite" if="lite.enabled">
|
|
|
|
<delete dir="res" />
|
|
|
|
<delete dir="res" />
|
|
|
|
<move file="res_old" tofile="res"/>
|
|
|
|
<move file="res_old" tofile="res"/>
|
|
|
|
|
|
|
|
<move file="AndroidManifest_old.xml" tofile="AndroidManifest.xml" />
|
|
|
|
<subant target="teardown-lite">
|
|
|
|
<subant target="teardown-lite">
|
|
|
|
<fileset file="../api/build.xml"/>
|
|
|
|
<fileset file="../api/build.xml"/>
|
|
|
|
</subant>
|
|
|
|
</subant>
|
|
|
@ -424,8 +441,21 @@
|
|
|
|
<!-- Zip aligns the APK -->
|
|
|
|
<!-- Zip aligns the APK -->
|
|
|
|
<mkdir dir="../release" />
|
|
|
|
<mkdir dir="../release" />
|
|
|
|
<property name="out.final.file" location="${out.absolute.dir}/${ant.project.name}-release.apk" />
|
|
|
|
<property name="out.final.file" location="${out.absolute.dir}/${ant.project.name}-release.apk" />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<if>
|
|
|
|
|
|
|
|
<condition>
|
|
|
|
|
|
|
|
<isset property="lite.enabled"/>
|
|
|
|
|
|
|
|
</condition>
|
|
|
|
|
|
|
|
<then>
|
|
|
|
|
|
|
|
<property name="out.release.file"
|
|
|
|
|
|
|
|
location="../release/${ant.project.name}-${manifest.version.code}-${manifest.version.name}-release-lite.apk" />
|
|
|
|
|
|
|
|
</then>
|
|
|
|
|
|
|
|
<else>
|
|
|
|
<property name="out.release.file"
|
|
|
|
<property name="out.release.file"
|
|
|
|
location="../release/${ant.project.name}-${manifest.version.code}-${manifest.version.name}-release.apk" />
|
|
|
|
location="../release/${ant.project.name}-${manifest.version.code}-${manifest.version.name}-release.apk" />
|
|
|
|
|
|
|
|
</else>
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
|
|
|
|
<zipalign-helper in.package="${out.unaligned.file}"
|
|
|
|
<zipalign-helper in.package="${out.unaligned.file}"
|
|
|
|
out.package="${out.final.file}" />
|
|
|
|
out.package="${out.final.file}" />
|
|
|
|
<copy file="${out.final.file}" tofile="${out.release.file}" />
|
|
|
|
<copy file="${out.final.file}" tofile="${out.release.file}" />
|
|
|
|