Merge lp:~abreu-alexandre/ubuntu-html5-theme/add-ubuntu-api-bindings-to-container into lp:ubuntu-html5-theme
Status: | Merged |
---|---|
Approved by: | Robert Bruce Park |
Approved revision: | 109 |
Merged at revision: | 110 |
Proposed branch: | lp:~abreu-alexandre/ubuntu-html5-theme/add-ubuntu-api-bindings-to-container |
Merge into: | lp:ubuntu-html5-theme |
Diff against target: |
95 lines (+45/-4) 3 files modified
debian/control (+1/-0) src/qml/Ubuntu/WebApps/WebAppContainer.qml (+34/-2) src/ubuntu-html5-app-launcher/main.cpp (+10/-2) |
To merge this branch: | bzr merge lp:~abreu-alexandre/ubuntu-html5-theme/add-ubuntu-api-bindings-to-container |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
PS Jenkins bot | continuous-integration | Approve | |
Robert Bruce Park (community) | Approve | ||
Review via email: mp+203346@code.launchpad.net |
Commit message
Expose Ubuntu API bindings to HTML5 applications
Description of the change
Expose Ubuntu API bindings to HTML5 applications.
The "Html5 container" at the moment is made of:
- a small qml wrapper around a cordovaview object that basically allows you to open your html5 application in a webview window and have access to cordova apis (roughly),
- a small "launcher" executable that hides the qml magic bits and only exposes the index.html and the various html specific pieces to the qtcreator developer,
It was meant as some sort of a facade to the HTML5 runtime environment and to the various API extensions that we provide.
With this change, we bring the Ubuntu APIs to the set of available APIs to the HTML5 developer. The QML component expands a bit and acts as a bridge between cordova and the extra ubuntu apis.
In order to test it, one needs:
- trunk of cordova 2.8 (or the one from the campo ppa https:/
- this branch of unity-webapps-qml https:/
then:
bzr branch lp:~abreu-alexandre/ubuntu-html5-theme/add-ubuntu-api-bindings-to-container
bzr branch lp:~abreu-alexandre/unity-webapps-qml/ubuntu-api-bindings-generation
cd add-ubuntu-
./ubuntu-
You should be able to set an alarm (hence have access to the ubuntu APIs from the container in addition to the cordova ones)
PASSED: Continuous integration, rev:109 jenkins. qa.ubuntu. com/job/ ubuntu- html5-theme- ci/63/ jenkins. qa.ubuntu. com/job/ generic- mediumtests- trusty/ 2629 jenkins. qa.ubuntu. com/job/ ubuntu- html5-theme- trusty- amd64-ci/ 47 jenkins. qa.ubuntu. com/job/ ubuntu- html5-theme- trusty- armhf-ci/ 47 jenkins. qa.ubuntu. com/job/ autopilot- testrunner- otto-trusty/ 2299 jenkins. qa.ubuntu. com/job/ generic- mediumtests- builder- trusty- amd64/2631 jenkins. qa.ubuntu. com/job/ generic- mediumtests- builder- trusty- amd64/2631/ artifact/ work/output/ *zip*/output. zip
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
Click here to trigger a rebuild: s-jenkins. ubuntu- ci:8080/ job/ubuntu- html5-theme- ci/63/rebuild
http://