0
Posted October 24, 2012 by Rapid John in Developers
 
 

Building the BlackBerry 10 WebWorks Open Source Framework on Your Own

BlackBerry10 WebWorks
BlackBerry10 WebWorks

RIM have received a lot of requests from developers to be able to build BlackBerry® 10 WebWorks™ directly from GitHub.

The main issue was that the latest BlackBerry 10 WebWorks SDK features were dependent on features in the BlackBerry 10 OS. Therefore, if you built BlackBerry 10 WebWorks in open source, it potentially would not work with latest BlackBerry 10 OS beta.

RIM are now starting to work on features that are not dependent on the latest BlackBerry 10 OS beta.

Imagine this: You hear about an awesome new feature or extension we are working on. You can now go to the GitHub repositories, look at pull requests, pull down the branch, and a few minutes later you have a BlackBerry 10 WebWorks build with the new extension or feature.

Build time can be less than two to three minutes from a clean build. From the time you see someone’s tweet about an awesome new feature, it could take you less than five minutes to get a build of BlackBerry 10 WebWorks that has that feature.

The advantages to a BlackBerry 10 WebWorks app developer are infinite here. You should never need to wait for new features. You can even build with Linux! It’s all there. There will still be some features that you will need the next OS release for, but that will happen less frequently as we get closer to launch of BlackBerry 10.

Here are the two repos you need to build to get ready to take advantage of this:

https://github.com/blackberry/BB10-WebWorks-Framework

https://github.com/blackberry/BB10-Webworks-Packager

The framework repo contains the Framework that is packaged with your app when you build a BlackBerry 10 WebWorks app. The Packager repo contains all the code for the packaging tool.

There are two main branches in each BlackBerry 10 WebWorks repo: master and next. The master branch will contain all the features that you can currently use with the current publicly-released OS — think of it as the features we wish we had time to get into the previous release. When a feature is completed, it’s merged into master if does not have any OS dependencies. The next branch will contain the new features that have OS dependencies.

To allow developers to easily build stable versions, each release is tagged using the version number of the release. This allows you to easily check out the source of a particular release. You can simply use the tags to check out the code from that release. For example, you can use “git checkout v1.0.2.9” to pull down the code for the last release. So, any pull request you see going into the master branch, you can grab and use right away. You will see none open today, but over the next couple of weeks you should start seeing many.

The README.md has been updated with all the updated instructions. Run the unit tests, automated tests, all the developer tools we use are all available to you.

RIM are doing everything they can to enable developers to take advantage of their latest and greatest work. Just open an issue on the repo when you find an issue with the BlackBerry 10 WebWorks SDK.

If you fix a bug or build an awesome extension, contribute it back and help us make BlackBerry 10 WebWorks SDK even better. For details on how to contribute, check out http://blackberry.github.com/howToContribute.html

RIM recently had our own Rapid Mike, Mike Robinson contribute changes to make SDK work on Linux — contributions like that go a long way. Be sure to check out the growing list of contributors!

Did you enjoy this article? If so, we’d love to hear your thoughts on the Forums or on our Facebook page. Get more articles instantly on your BlackBerry smartphone with our Free BlackBerry 10 App.

Via

Enjoy this article? Share it with others.

  • Facebook
  • Twitter
  • StumbleUpon
  • LinkedIn
  • Digg
  • Pinterest
  • Google Plus
  • Tumblr
  • Reddit
  • Instapaper
  • Delicious
  • Email
  • Print