#BlackBerry 10 Cordova Plugins This repo contains plugins for Apache Cordova that expose functionality of the BlackBerry 10 platform.
##Prerequisites
- Install node and npm and add to path.
- Install BlackBerry Native SDK.
- [Windows] Add git bin to PATH. i.e.
*Installation Directory*\bin
- Install [jake] globally (npm install --global jake).
- Install [jshint] globall (npm install --global jshint).
##Setup and Build
git clone http://github.rim.net/webworks/BB10-WebWorks-Cordova.git
cd BB10-WebWorks-Cordova
npm install
to install dependenciesgit checkout master
- Setup bbndk environment variables: (must be done within each session, prior to jake)
- [Mac/Linux]
source *BBNDK installation directory*/bbndk-env.sh
- [Windows]
*BBNDK installation directory*\bbndk-env.bat
- [Mac/Linux]
- Run
jake build
from the command prompt and check that there are no errors.
##Running Tests
jake test
- to run js tests using nodejsjake hint
- to run jshint on the JavaScript sourcejake
- default is to build, run tests and jshint
Note: To see a full list of commands available with jake, use jake -T
.
##Dependencies
- cpplint is used for linting Cpp code. Source code is located under dependencies/cpplint
- JNEXT 1.0.8.3 is used to build extensions. Original source of JNEXT was downloaded from here - http://jnext.googlecode.com/files/jnext-src-1.0.8.3.zip Modifications are available in source code and located under dependencies/jnext_1_0_8_3
- Bryan Higgins
- Chris Del Col
- Daniel Audino
- Danyi Lin
- Derek Watson
- Eric Li
- Eric Pearson
- Erik Johnson
- Gord Tanner
- Hasan Ahmad
- Hoyoung Jang
- Igor Shneur
- James Keshavarzi
- Jeffrey Heifetz
- Nukul Bhasin
- Rosa Tse
- Rowell Cruz
- Sergey Golod
- Stephan Leroux
- Tracy Li
-
client.js – The extension's public API
-
index.js – Loaded by cordova and only accessible across the cordova.exec bridge
-
manifest.json – metadata for the extension
-
native – contains all the native code for the jnext extension.
-
test
- integration – test app spec using jasmine browser tests.
- unit – unit tests using jasmine. Keeps the same folder structure as the code.
Extensions are all under the plugin/ folder. An extension must at least contain the following -
- manifest.json – metadata for the extension.
- client.js – Front facing API, this is injected into the App's content.
- index.js – Controller loads this part of the API
If your extension requires native C/C++ code, a native JNEXT extension is needed.
There is sample: https://github.com/blackberry/WebWorks-Community-APIs/tree/master/BB10/TEMPLATE.
For detailed docs please visit https://developer.blackberry.com/html5/documentation/creating_extensions_for_bb10_apps.html
To contribute code to this repository you must be signed up as an official contributor.
- Fork the BB10-WebWorks-Cordova repository
- Make the changes/additions to your fork
- Send a pull request from your fork back to the BB10-WebWorks-Cordova repository
- If you made changes to code which you own, send a message via github messages to one of the Committers listed below to have your code merged.