|
|
|
@ -220,10 +220,14 @@
|
|
|
|
</target>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- build lite release package with updated version name -->
|
|
|
|
<!-- build lite release package with updated version name -->
|
|
|
|
<target name="release-lite" depends="clean, set-release-lite, release" />
|
|
|
|
<target name="release-lite" depends="clean, set-lite-property, release" />
|
|
|
|
|
|
|
|
<target name="debug-lite" depends="clean, set-lite-property, debug" />
|
|
|
|
|
|
|
|
|
|
|
|
<target name="set-release-lite">
|
|
|
|
<target name="set-lite-property">
|
|
|
|
<property name="lite.enabled" value="true" />
|
|
|
|
<property name="lite.enabled" value="true" />
|
|
|
|
|
|
|
|
<subant target="setup-lite">
|
|
|
|
|
|
|
|
<fileset file="../api/build.xml"/>
|
|
|
|
|
|
|
|
</subant>
|
|
|
|
</target>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
|
|
|
|
<target name="setup-lite" if="lite.enabled">
|
|
|
|
<target name="setup-lite" if="lite.enabled">
|
|
|
|
@ -238,6 +242,26 @@
|
|
|
|
match="authorities="(.*)""
|
|
|
|
match="authorities="(.*)""
|
|
|
|
replace="authorities="\1.lite""
|
|
|
|
replace="authorities="\1.lite""
|
|
|
|
flags="g"/>
|
|
|
|
flags="g"/>
|
|
|
|
|
|
|
|
<replaceregexp file="AndroidManifest.xml"
|
|
|
|
|
|
|
|
match="action android:name="com.todoroo.astrid"
|
|
|
|
|
|
|
|
replace="action android:name="com.todoroo.astridlite"
|
|
|
|
|
|
|
|
flags="g"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
<replaceregexp file="AndroidManifest.xml"
|
|
|
|
|
|
|
|
match="com.timsu.astrid.permission"
|
|
|
|
|
|
|
|
replace="com.todoroo.astridlite.permission"
|
|
|
|
|
|
|
|
flags="g"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
<replaceregexp file="AndroidManifest.xml"
|
|
|
|
|
|
|
|
match="com.todoroo.astrid.READ"
|
|
|
|
|
|
|
|
replace="com.todoroo.astridlite.READ"
|
|
|
|
|
|
|
|
flags="g"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
<replaceregexp file="AndroidManifest.xml"
|
|
|
|
|
|
|
|
match="com.todoroo.astrid.WRITE"
|
|
|
|
|
|
|
|
replace="com.todoroo.astridlite.WRITE"
|
|
|
|
|
|
|
|
flags="g"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
|
|
|
|
<copy todir="res_old">
|
|
|
|
<copy todir="res_old">
|
|
|
|
<fileset dir="res"/>
|
|
|
|
<fileset dir="res"/>
|
|
|
|
@ -251,6 +275,9 @@
|
|
|
|
<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" />
|
|
|
|
<move file="AndroidManifest_old.xml" tofile="AndroidManifest.xml" />
|
|
|
|
|
|
|
|
<subant target="teardown-lite">
|
|
|
|
|
|
|
|
<fileset file="../api/build.xml"/>
|
|
|
|
|
|
|
|
</subant>
|
|
|
|
</target>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- build custom unsigned package with updated version name -->
|
|
|
|
<!-- build custom unsigned package with updated version name -->
|
|
|
|
|