WebWorks is an application framework and packaging tool that allows a developer to create a standalone BlackBerry application using HTML5/CSS/JavaScript. Web developers can create a device application experience, including AppWorld distribution and monetization to system security policy enforcement, to deep device system and service integration. All using the technologies they are familiar with, leveraging the power of the industry leading web platform being built for BlackBerry 10. This repo contains the code for the BlackBerry 10 WebWorks Framework.
*Installation Directory*\bin
git clone https://github.com/blackberry-webworks/BB10-WebWorks-Framework.git
cd BB10-WebWorks-Framework
git checkout master
./configure
[from terminal]bash configure
[from command prompt]source *BBNDK installation directory*/bbndk-env.sh
*BBNDK installation directory*\bbndk-env.bat
jake
or jake build
and check that the output folder is created under the "target/zip" subfolder. If on windows, run jake from command prompt.jake test
and check that jake runs and completesjake test
- to run js tests using nodejsjake native-test
- to run native unit tests
jake upload-ssh-key[169.254.0.1,~/.ssh/id_rsa.pub]
jake native-test[device,169.254.0.1]
jake deploy-tests
- builds the Framework, creates, packages and deploys Functional test appjake deploy-tests[<pathToPackager>,<packageroptions>,<device|simulator>,<device ip>,<device password>]
jake deploy-tests[/Users/jheifetz/Downloads/BB10webworks-next-42/,-d,device,169.254.0.1,qaqa]
jake -T
.Cloning into dependencies/webplatform... error: Couldn't resolve host 'github.rim.net' while accessing
http://github.rim.net/webworks/webplatform.git/info/refs
Solution: This error can be ignored, but please see the "Setup and Build" - "Webplatform setup:" section above for instructions on copying the necessary webplatform files.
Controller is initialized as the index.html which can be found dependencies/bootstrap/index.html. This forms the entry point for the Framework. The controller lib/framework.js goes on to create the client webview which load application content which can be required from lib/webview.js The framework.js also creates an Overlay Webview to show dialogs and context menus which can be required from lib/overlayWebView.js The Controller WebView is initialized as an object lib/controllerWebView.js and can be required from there.
Extensions are all under the ext/ folder. An extension must at least contain the following -
If your extension requires native C/C++ code, a native JNEXT extension is needed.
There is sample: BlackBerry 10 WebWorks Plugin Template.
For detailed docs please read creating extensions for BlackBerry 10 apps.
To contribute code to this repository you must be signed up as an official contributor.
To add new Samples or make modifications to existing Samples: