Hey all,
I'm just starting to experiment with Firefox OS and all the developer
tools / documentation available at the moment. I understand the design
goals for the project and its focus on using web technologies as the
technology stack for developers to build their applications with but I
want to know if there's plans to provide a native API at some point?
Android provide the NDK
(
http://developer.android.com/tools/sdk/ndk/index.html) which makes it
easier to integrate existing C and C++ libraries into mobile
development. Is something like this on the roadmap for Firefox OS?
For example, let's say that I wanted to develop a Firefox OS wrapper
library for Riak Mobile
<
http://www.infoq.com/presentations/Bringing-Riak-to-the-Mobile-Platform>.
It's a software library written in C++ that uses the SQLite database
available in the handset APIs and allows data to be synchronized in a
controlled way between a mobile device and a Riak
<
http://docs.basho.com/riak/latest/references/appendices/concepts/#What-is-Riak>
cluster. Now because the code is written in C++ its been wrapped for
Android using the NDK and is accessible via C on iOS.
As far as I'm aware if I want to add support for Firefox OS to that
project I'll actually not be able to make use of the library at all.
Instead I believe I'll need to port the entire codebase to Javascript
and use the HTML5 Local Storage <
http://diveintohtml5.info/storage.html>
API for the data storage layer.
Is my current conclusion correct?
Cheers,
Chris