cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Drew Walters <deedu...@gmail.com>
Subject Re: [DISCUSS] Switch BlackBerry 10 Cordova download from WebWorks to NDK
Date Wed, 05 Dec 2012 20:30:35 GMT
So, if the WebWorks SDK itself needs to provide native code for
functionality, how will that be provided?

What dependency differences are we looking at?  Looks like to pull and
build WebWorks SDK it would require git, node, npm, native SDK. Anything
else? Does the native SDK have any pre-reqs?


On Wed, Dec 5, 2012 at 2:21 PM, Nukul Bhasin <me@nukulb.com> wrote:

> > Does the WebWorks packager for BB 10 handle the compilation of native
> > plugins or do they have to be pre-compiled prior to packaging now?
> No. BB10 WebWorks Packager includes built binaries that are then packaged
> into the app.
> If you want to build native extensions you must use the NDK.
>
> For OS5-7 and playbook WebWorks SDK included BlackBerry Java SDK or Air SDK
> but WebWorks BB10 does not include the NDK
>
> To answer the question why its different for BB10, because I like 9MB
> instead of 900 MB :)
>
>
> On Wed, Dec 5, 2012 at 3:14 PM, Drew Walters <deedubbu@gmail.com> wrote:
>
> > Call me old fashioned but I like 9MB downloads better the 900MB :-)
> >
> > I guess the necessity for this is because unlike WebWorks for OS5-7, the
> > native libraries are not included in WebWorks for BB 10.
> >
> > Does the WebWorks packager for BB 10 handle the compilation of native
> > plugins or do they have to be pre-compiled prior to packaging now?
> >
> >
> > On Wed, Dec 5, 2012 at 2:02 PM, Gord Tanner <gtanner@gmail.com> wrote:
> >
> > > Correct. This would be for any cordova BlackBerry 10 APIs (not external
> > > plugins).
> > >
> > > This will allow us the native compile step for Cordova that we don't
> have
> > > access to with WebWorks (that other platforms have).
> > >
> > > The key for this is flexibility.  Nothing is changing with this now but
> > > allows us more tools to support BlackBerry 10 Cordova in the future.
> > >
> > >
> > > On Wed, Dec 5, 2012 at 2:53 PM, Drew Walters <deedubbu@gmail.com>
> wrote:
> > >
> > > > Making sure I understand the steps:
> > > >
> > > > 1. User downloads and installs BlackBerry 10 Native SDK and Cordova.
> > > > 2. Executing the create script to create a project will somehow
> > determine
> > > > if the user has the WebWorks SDK and if not...
> > > > 3. Clone the WebWorks SDK using git.
> > > > 4. Build the WebWorks SDK.
> > > > 5. Update the project.properties for the project to point at the
> built
> > > > WebWorks SDK.
> > > >
> > > > I would prefer to not dynamically clone and build the WebWorks SDK as
> > > part
> > > > of Cordova project creation, seems like that could be prone to
> issues.
> > > >
> > > > I would tend to think the majority of developers would not be
> building
> > > > custom plugins for their application. Would the native SDK be
> required
> > by
> > > > Cordova end developers if Cordova for BlackBerry 10 contains some
> > native
> > > > (C++) plugins?
> > > >
> > > >
> > > > On Wed, Dec 5, 2012 at 1:05 PM, Gord Tanner <gtanner@gmail.com>
> wrote:
> > > >
> > > > > Currently for developing for BlackBerry 10 the user needs to
> download
> > > and
> > > > > install the WebWorks SDK.  [1].
> > > > >
> > > > > This SDK is opensource and available from github [2] and users are
> > able
> > > > to
> > > > > clone and build the SDK with the native development tools available
> > > [3].
> > > > >
> > > > > I would like to switch the BlackBerry 10 platform for cordova to
> use
> > > the
> > > > > NDK and clone WebWorks from github.  The only difference a cordova
> > > > > developer would notice would be what download we tell them to
> install
> > > in
> > > > > the documentations, everything else would be handled by the
> > > ./bin/create
> > > > > script and ./cordova/* scripts pointing where the WebWorks SDK
> lives.
> > > > >
> > > > > This preps us to have the tools available on the developers machine
> > to
> > > > > build any native extensions that may or may not be needed for
> > > BlackBerry
> > > > 10
> > > > > development.
> > > > >
> > > > > [1] https://developer.blackberry.com/html5/download/
> > > > > [2] https://github.com/blackberry/BB10-Webworks-Packager
> > > > > [3] http://developer.blackberry.com/native/beta/
> > > > >
> > > >
> > >
> >
>
>
>
> --
> *Nukul Bhasin*
> *Computer Engineer, B.Eng*
> *10 Queens Quay W, suite#1710*
> *Toronto, ON, Canada*
> *Ph: 416 508 3157*
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message