Using ANT to package the same AIR app to Multiple Devices

I had some fun today playing with the BlackBerry Tablet SDK. In addition to getting a little demo up and running I got to show off some cool multiscreen goodness. Basically, I wrote one AIR app targeted at the Samsung Galaxy tab and the BlackBerry PlayBook (emulator, no device for me yet). I got them both to compile and install at the same time.

They also both ran, which was even awesomer.

I’ve embedded GISTs of the ANT script and properties file. Enjoy.

https://gist.github.com/735454.js

4 thoughts on “Using ANT to package the same AIR app to Multiple Devices

  1. I’ve run into a problem. I’m using a smaller version of your code that will only compile and package for Android. It will not install. So just the two steps. The ANT script is failing with:

    [mxmlc] Loading configuration file C:Program Files (x86)AdobeAdobe Flash Builder Burritosdks4.5.0frameworksairmobile-config.xml
    [mxmlc] C:UsersRaymondAdobe Flash Builder Burrito PreviewSimpleRSSsrcviewsSimpleRSSHome.mxml(10): Error: Definition com.adobe.utils:XMLUtil could not be found.
    [mxmlc] import com.adobe.utils.XMLUtil;
    [mxmlc] C:UsersRaymondAdobe Flash Builder Burrito PreviewSimpleRSSsrcviewsSimpleRSSHome.mxml(11): Error: Definition com.adobe.xml.syndication.rss:Item20 could not be found.
    [mxmlc] import com.adobe.xml.syndication.rss.Item20;
    [mxmlc] C:UsersRaymondAdobe Flash Builder Burrito PreviewSimpleRSSsrcviewsSimpleRSSHome.mxml(12): Error: Definition com.adobe.xml.syndication.rss:RSS20 could not be found.
    [mxmlc] import com.adobe.xml.syndication.rss.RSS20;
    [mxmlc] C:UsersRaymondAdobe Flash Builder Burrito PreviewSimpleRSSsrcviewsSimpleRSSHome.mxml(66): Error: Type was not found or was not a compile-time constant: RSS20.
    [mxmlc] var rss:RSS20 = new RSS20();
    [mxmlc] C:UsersRaymondAdobe Flash Builder Burrito PreviewSimpleRSSsrcviewsSimpleRSSHome.mxml(59): Error: Access of undefined property XMLUtil.
    [mxmlc] if(!XMLUtil.isValidXML(data))
    [mxmlc] C:UsersRaymondAdobe Flash Builder Burrito PreviewSimpleRSSsrcviewsSimpleRSSHome.mxml(66): Error: Call to a possibly undefined method RSS20.
    [mxmlc] var rss:RSS20 = new RSS20();

    These are all classes available to my project via the libs folder. So somehow mxmlc is missing them.

    Like

Leave a Reply to tpryan Cancel reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s