short guide for Linux developers: using installing cordova 3.2.0-0.4.0 to develop BB10 WebWorks
This short guide for Linux developers only, might be applicable to Mac with some adjustment (please figure it out yourself)
Background:
- BlackBerry did not support Linux for WebWorks SDK 2 (at least in Beta release)
- WebWorks SDK 2 Beta using cordova 2.0
- Linux Hack of WebWorks SDK 2 Beta by BadToyz working find but also using cordova 2.0
- Latest available cordova version is 3.3.0
So, i decided to try another approach to develop BB10 WebWorks application by abandon BlackBerry WebWorks SDK 2 beta and try to use cordova 3.2.0
Reference:
Requirements/Environment:
- Debian/Linux Wheezy 64 (but any Linux distro will do just fine)
- All required development tools and development libraries installed
- BlackBerry Native SDK installed
Installation of nodejs & cordova:
Create first dummy project:
- Create workspace directory:
mkdir /usr/src/webworks - Change directory to workspace:
cd /usr/src/webworks - Create project:
cordova create hello gpl4all.cordova.hello "Hello Cordova" ; cd hello - Add target device:
./platforms/blackberry10/cordova/target add z10 192.168.1.32 -t device -p 82828282 --pin 24242424 (this step is only needed to be done when creating first project, next project will be using same target for me, in this case named: z10) - Add blackberry10 platform to project:
cordova platform add blackberry10 - Add plugins to project if necessary:
for plugins in com.blackberry.app com.blackberry.utils org.apache.cordova.geolocation ; do cordova plugin add $plugins ; done - Build project:
cordova build release -k 82828282 - Install application to device:
./platforms/blackberry10/cordova/run -d run blackberry10 --target=z10 --devicepass 24242424 --keystorepass 82828282
The first project is woks well and i tried to build and install some of WebWorks sample all working as expected, no different behaviour compare to one build and deploy with Linux Hack of WebWorks SDK 2 Beta by BadToyz which is actually BlackBerry WebWorks 2.0 beta modified to help Linux developers.
source: BlackBerry Developer Support Forum post