10-26-2010 11:41 AM - edited 10-26-2010 12:02 PM
Just for reference, I'm not using Flash Builder, I'm using FlashDevelop and Flash Professional CS4 with the command line compiler. Some of this may apply to the Flash Builder plugin as well.
Some of this comes from the AIR 2.5 release notes (worth a look-over) which are located at:
The documentation appears to be lacking, so here's what I've learned so far:
10-26-2010 01:57 PM - edited 10-26-2010 07:44 PM
BAR files are ZIP archives like AIR files on the desktop.
Unzip with your favorite archiving application (7Zip works well on PC) and open MANIFEST.MF in a text editor to get the Package-Id which will be needed to uninstall test apps when using blackberry-deploy
In the previous post with the version number strangeness, it appears that even with the incorrect format for the version, the app does compile despite the error (seen through looking at the manifest file), though it isn't installed on the simulator unless everything runs through error free.
10-26-2010 08:59 PM
These are 2 different version numbers
1.0.0 is version enforced by air
188.8.131.52 is version enforced by bar files (RIM app version).
Second one is generated from first one by airpackager using this rule:
airVersion + "." + buildId
buildId is 0 by default but can specified in the airpackager command line (not from IDE)
Regarding uninstall (and terminate and launch):
deploy too can extract package id and name from the .bar file, so to uninstall app you simply use
blackberry-deploy -package qq.bar -uninstallApp -device 10.10.10.10
10-26-2010 09:28 PM
Very good information to have. Thanks for sharing. I think along with playing with the SDK, I'm going to attempt to make a GUI for the command line with AIR for desktops, at least for Windows. so it isn't quite as confusing.
10-29-2010 07:01 AM
If you do make some kind of GUI that would be pretty awesome! Maybe that could be your app to get a free Playbook?!
10-29-2010 02:34 PM
If you are trying to display QNX Dialogs, don't be suprised if they won't show up in the AIR Debugger and crash your application. They will only work properly if you run the application ON the simulator.
10-30-2010 12:50 AM
I'm working on a GUI for the command line swf compiler, bar file compiling, installation, launching and uninstalling from the simulator - I can only do it for Windows though. It'll hopefully be finished tomorrow or by Monday at the latest.
I'll look into the Mac side when I get Windows done to see if I can add it in.