Create a gist now

Instantly share code, notes, and snippets.

@illuzor /build.xml
Last active Aug 29, 2015

What would you like to do?
<target name="-compile.for.android" description="Compiling swf for android">
<java jar="${asc2.compiler}" failonerror="true" fork="true">
<arg value="-load-config+=${air.config}"/>
<arg value="-load-config+=${compile.config}"/>
<arg value="-debug=${debug.build}"/>
<arg value="+configname=airmobile"/>
<arg value="-swf-version=29"/>
<arg value="-define=CONFIG::flashplayer,false"/>
<arg value="-define=CONFIG::android,true"/>
<arg value="-define=CONFIG::ios,false"/>
</java>
<move file="src/com/illuzor/antbuilddemo/Main.swf" tofile="bin/AntBuildDemo.swf"/>
</target>
<target name="-make.android.apk" description="Making apk for android">
<echo message="Starting build android armv7 apk"/>
<java jar="${adt}" failonerror="true" fork="true">
<arg value="-package"/>
<arg value="-target"/>
<arg value="apk-captive-runtime"/>
<arg value="-arch"/>
<arg value="armv7"/>
<arg value="-storetype"/>
<arg value="pkcs12"/>
<arg value="-keystore"/>
<arg value="${android.cert}"/>
<arg value="-storepass"/>
<arg value="${android.cert.pass}"/>
<arg value="${release.folder}/android_armv7.apk"/>
<arg value="application.xml"/>
<arg value="-C"/>
<arg value="bin"/>
<arg value="."/>
<arg value="-C"/>
<arg value="icons/android"/>
<arg value="."/>
</java>
<echo message="Starting build android x86 apk"/>
<java jar="${adt}" failonerror="true" fork="true">
<arg value="-package"/>
<arg value="-target"/>
<arg value="apk-captive-runtime"/>
<arg value="-arch"/>
<arg value="x86"/>
<arg value="-storetype"/>
<arg value="pkcs12"/>
<arg value="-keystore"/>
<arg value="${android.cert}"/>
<arg value="-storepass"/>
<arg value="${android.cert.pass}"/>
<arg value="${release.folder}/android_x86.apk"/>
<arg value="application.xml"/>
<arg value="-C"/>
<arg value="bin"/>
<arg value="."/>
<arg value="-C"/>
<arg value="icons/android"/>
<arg value="."/>
</java>
</target>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment