If you haven’t heard, BB10 is coming out at the end of the month. In my estimation, this will be far bigger sales event than any new device launch we’ve seen in recent times (Kindle, Nook, Windows 8), so I’m really excited to get my apps on there, and you should be too!
The first step is prepping FlashBuilder 4.7 to export to BB10. This is a bit confusing, as I expected it to just work like it did in 4.6, but there’s a couple additional steps.
Adding FlashBuilder Support
This is explained fairly well in the docs, but the link is extremely buried, for your covnenience, here she be:
Essentially you just:
- Run the SDK installer like normal
NOTE: Do NOT check the option for Flash Builder support during install, it will destroy your FB 4.7 workspace and prevent it from launching, or at least it did to me…
- Then, in FlashBuilder: Install New Software > Available Software > Blackberry Support.
With that you are now kicking out builds to your brand new BB10 dev device. They’ll install, but they probably won’t run…
Force AIR 3.1
You can use any recent AIR SDK, but you need to add some options to force it to target 3.1
- Add compiler flag -swf-version=14
- under ActionScript Build Packaging > BlackBerry > > Advanced > Extra packaging, enter -forceAirVersion 3.1
Add Native Extensions
The final step is to add all the ANE’s provided to us by BlackBerry, giving access to a wide range of device specific features.
- Under Build Settings > Native Extensions, add a folder:
c:\Program Files (x86)\Research In Motion\blackberry-tablet-sdk-3.0.0\frameworks\libs\qnx\ane\