Re: [DISCUSS] Switch BlackBerry 10 Cordova download from WebWorks to NDK

2012-12-10 Thread Nukul Bhasin
The bundling of WebWorks of node can probably be improved, few things to
note-

1. The building requires node/npm to be on the host machine which is
independent of the node bundled with WebWorks Packager
2. Node is bundled into the packager so when you run bbwp it uses that node
and not the one on your machine.
3. Not built from source instead just a binary
4. Not bundled for Linux.


On Mon, Dec 10, 2012 at 11:14 AM, Gord Tanner  wrote:

> Just tested setting this up on my personal macbook and it all seemed to go
> fine.  (Somehow I got ant on this machine and I don't remember installing
> it, does it come with xcode?)
>
> As for the node dependency it looks like the packager bundles node with it
> (
>
> https://github.com/blackberry/BB10-Webworks-Packager/tree/master/third_party/node
> ).
>
> I had node setup and installed on this laptop before so I can't verify the
> experience without.
>
>
> On Fri, Dec 7, 2012 at 8:21 PM, Gord Tanner  wrote:
>
> > I put together a small prototype so people can see what the user feel
> > would be like:
> >
> >
> https://github.com/gtanner/incubator-cordova-blackberry-webworks/tree/blackberry.ndk
> >
> > This currently only works and has been tested on OSX (sorry Jesse :P) but
> > I will add windows support of this idea takes off.
> >
> > If you clone the above branch and run ./bin/create it will prompt you to
> > setup the WebWorks SDK.  Please download the native SDK before running
> that
> > script from (http://developer.blackberry.com/native/beta/)
> >
> >
> >
> >
> > On Wed, Dec 5, 2012 at 6:30 PM, Drew Walters  wrote:
> >
> >> Just to be clear, I wasn't complaining about node/npm dependencies, was
> >> just curious what full dependencies would be.
> >>
> >>
> >> On Wed, Dec 5, 2012 at 4:59 PM, Filip Maj  wrote:
> >>
> >> > I don¹t think a dependency on node/npm is any more problematic than a
> >> > dependency on ANT, for example.
> >> >
> >> > On 12/5/12 2:55 PM, "Gord Tanner"  wrote:
> >> >
> >> > >Is dependencies on node and npm a problem?
> >> > >
> >> > >I was thinking this wouldn't be that big of a problem since
> >> > >Cordova-client depends on those projects too.
> >> > >
> >> > >If it is a huge deal I can look into removing those dependencies
> >> > >
> >> > >Sent from my iPhone
> >> > >
> >> > >On 2012-12-05, at 3:30 PM, Drew Walters  wrote:
> >> > >
> >> > >> 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 
> 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 
> >> > >>>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 
> >> > 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 <
> deedu...@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
> >> >  

Re: [DISCUSS] Switch BlackBerry 10 Cordova download from WebWorks to NDK

2012-12-10 Thread Gord Tanner
Just tested setting this up on my personal macbook and it all seemed to go
fine.  (Somehow I got ant on this machine and I don't remember installing
it, does it come with xcode?)

As for the node dependency it looks like the packager bundles node with it (
https://github.com/blackberry/BB10-Webworks-Packager/tree/master/third_party/node
).

I had node setup and installed on this laptop before so I can't verify the
experience without.


On Fri, Dec 7, 2012 at 8:21 PM, Gord Tanner  wrote:

> I put together a small prototype so people can see what the user feel
> would be like:
>
> https://github.com/gtanner/incubator-cordova-blackberry-webworks/tree/blackberry.ndk
>
> This currently only works and has been tested on OSX (sorry Jesse :P) but
> I will add windows support of this idea takes off.
>
> If you clone the above branch and run ./bin/create it will prompt you to
> setup the WebWorks SDK.  Please download the native SDK before running that
> script from (http://developer.blackberry.com/native/beta/)
>
>
>
>
> On Wed, Dec 5, 2012 at 6:30 PM, Drew Walters  wrote:
>
>> Just to be clear, I wasn't complaining about node/npm dependencies, was
>> just curious what full dependencies would be.
>>
>>
>> On Wed, Dec 5, 2012 at 4:59 PM, Filip Maj  wrote:
>>
>> > I don¹t think a dependency on node/npm is any more problematic than a
>> > dependency on ANT, for example.
>> >
>> > On 12/5/12 2:55 PM, "Gord Tanner"  wrote:
>> >
>> > >Is dependencies on node and npm a problem?
>> > >
>> > >I was thinking this wouldn't be that big of a problem since
>> > >Cordova-client depends on those projects too.
>> > >
>> > >If it is a huge deal I can look into removing those dependencies
>> > >
>> > >Sent from my iPhone
>> > >
>> > >On 2012-12-05, at 3:30 PM, Drew Walters  wrote:
>> > >
>> > >> 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  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 
>> > >>>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 
>> > 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 
>> > >>> 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 devel

Re: [DISCUSS] Switch BlackBerry 10 Cordova download from WebWorks to NDK

2012-12-07 Thread Gord Tanner
I put together a small prototype so people can see what the user feel would
be like:
https://github.com/gtanner/incubator-cordova-blackberry-webworks/tree/blackberry.ndk

This currently only works and has been tested on OSX (sorry Jesse :P) but I
will add windows support of this idea takes off.

If you clone the above branch and run ./bin/create it will prompt you to
setup the WebWorks SDK.  Please download the native SDK before running that
script from (http://developer.blackberry.com/native/beta/)




On Wed, Dec 5, 2012 at 6:30 PM, Drew Walters  wrote:

> Just to be clear, I wasn't complaining about node/npm dependencies, was
> just curious what full dependencies would be.
>
>
> On Wed, Dec 5, 2012 at 4:59 PM, Filip Maj  wrote:
>
> > I don¹t think a dependency on node/npm is any more problematic than a
> > dependency on ANT, for example.
> >
> > On 12/5/12 2:55 PM, "Gord Tanner"  wrote:
> >
> > >Is dependencies on node and npm a problem?
> > >
> > >I was thinking this wouldn't be that big of a problem since
> > >Cordova-client depends on those projects too.
> > >
> > >If it is a huge deal I can look into removing those dependencies
> > >
> > >Sent from my iPhone
> > >
> > >On 2012-12-05, at 3:30 PM, Drew Walters  wrote:
> > >
> > >> 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  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 
> > >>>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 
> > 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 
> > >>> 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 
> > >>> 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 cordo

Re: [DISCUSS] Switch BlackBerry 10 Cordova download from WebWorks to NDK

2012-12-05 Thread Drew Walters
Just to be clear, I wasn't complaining about node/npm dependencies, was
just curious what full dependencies would be.


On Wed, Dec 5, 2012 at 4:59 PM, Filip Maj  wrote:

> I don¹t think a dependency on node/npm is any more problematic than a
> dependency on ANT, for example.
>
> On 12/5/12 2:55 PM, "Gord Tanner"  wrote:
>
> >Is dependencies on node and npm a problem?
> >
> >I was thinking this wouldn't be that big of a problem since
> >Cordova-client depends on those projects too.
> >
> >If it is a huge deal I can look into removing those dependencies
> >
> >Sent from my iPhone
> >
> >On 2012-12-05, at 3:30 PM, Drew Walters  wrote:
> >
> >> 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  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 
> >>>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 
> 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 
> >>> 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 
> >>> 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/
> >>>
> >>>
> >>>

Re: [DISCUSS] Switch BlackBerry 10 Cordova download from WebWorks to NDK

2012-12-05 Thread Filip Maj
I don¹t think a dependency on node/npm is any more problematic than a
dependency on ANT, for example.

On 12/5/12 2:55 PM, "Gord Tanner"  wrote:

>Is dependencies on node and npm a problem?
>
>I was thinking this wouldn't be that big of a problem since
>Cordova-client depends on those projects too.
>
>If it is a huge deal I can look into removing those dependencies
>
>Sent from my iPhone
>
>On 2012-12-05, at 3:30 PM, Drew Walters  wrote:
>
>> 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  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 
>>>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  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 
>>> 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 
>>> 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*
>>> 



Re: [DISCUSS] Switch BlackBerry 10 Cordova download from WebWorks to NDK

2012-12-05 Thread Gord Tanner
Is dependencies on node and npm a problem?

I was thinking this wouldn't be that big of a problem since Cordova-client 
depends on those projects too.

If it is a huge deal I can look into removing those dependencies

Sent from my iPhone

On 2012-12-05, at 3:30 PM, Drew Walters  wrote:

> 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  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  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  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 
>> 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 
>> 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*
>> 


Re: [DISCUSS] Switch BlackBerry 10 Cordova download from WebWorks to NDK

2012-12-05 Thread Nukul Bhasin
WebWorks SDK builds are cross platform and use node. Works on windows, mac
and linux
We try to be a responsible open source project and allow building on all
platforms, as many of our developers are on Windows as well. We have had
some issues about windows in the past but obviously given enough reason I
am sure they can be handled.


On Wed, Dec 5, 2012 at 3:48 PM, Jesse  wrote:

> Please remember Windows users in your decision making.
> Not sure if it makes a difference,  but how cross platform is the
> suggested solution?
>
> On Wed, Dec 5, 2012 at 12:30 PM, Drew Walters  wrote:
> > 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  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 
> 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 
> 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 
> >> 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 
> >> 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/
> >> >

Re: [DISCUSS] Switch BlackBerry 10 Cordova download from WebWorks to NDK

2012-12-05 Thread Jesse
Please remember Windows users in your decision making.
Not sure if it makes a difference,  but how cross platform is the
suggested solution?

On Wed, Dec 5, 2012 at 12:30 PM, Drew Walters  wrote:
> 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  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  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  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 
>> 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 
>> 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*
>>



-- 
@purplecabbage
risingj.com


Re: [DISCUSS] Switch BlackBerry 10 Cordova download from WebWorks to NDK

2012-12-05 Thread Nukul Bhasin
> So, if the WebWorks SDK itself needs to provide native code for
> functionality, how will that be provided?
All native WebWorks SDK code is either on device already or compiled as a
part of the product and WebWorks SDK simply contains binaries + JavaScript.
So when an app is built it does not need to be compiled, simply bundled
together with user content. Something to note here is almost the entire
implementation of WebWorks SDK BB10 is done in JavaScript so there are only
a few extensions (plugins) that require custom native code that is not
already compiled into on device binaries. Its kind of hard to explain the
entire architecture on an email but if you want more details I can try.

> 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?
I am not aware of native sdk requiring any pre-reqs but that can be easily
be confirmed.


On Wed, Dec 5, 2012 at 3:30 PM, Drew Walters  wrote:

> 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  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  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  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 
> > 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 
> > 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 n

Re: [DISCUSS] Switch BlackBerry 10 Cordova download from WebWorks to NDK

2012-12-05 Thread Drew Walters
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  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  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  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 
> 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 
> 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*
>


Re: [DISCUSS] Switch BlackBerry 10 Cordova download from WebWorks to NDK

2012-12-05 Thread Nukul Bhasin
> 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  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  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  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  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*


Re: [DISCUSS] Switch BlackBerry 10 Cordova download from WebWorks to NDK

2012-12-05 Thread Drew Walters
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  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  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  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/
> > >
> >
>


Re: [DISCUSS] Switch BlackBerry 10 Cordova download from WebWorks to NDK

2012-12-05 Thread Gord Tanner
+1

I want this to go over more than a "Works on my machine" test before I land
this in master.


On Wed, Dec 5, 2012 at 3:11 PM, Filip Maj  wrote:

> I think it's worth investigating and having a working prototype but would
> caution against immediately merging in until different folk have had a
> chance to play with it and make sure our end-user dev experience is cool.
>
> On 12/5/12 12:02 PM, "Gord Tanner"  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  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  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/
> >> >
> >>
>
>


Re: [DISCUSS] Switch BlackBerry 10 Cordova download from WebWorks to NDK

2012-12-05 Thread Filip Maj
I think it's worth investigating and having a working prototype but would
caution against immediately merging in until different folk have had a
chance to play with it and make sure our end-user dev experience is cool.

On 12/5/12 12:02 PM, "Gord Tanner"  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  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  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/
>> >
>>



Re: [DISCUSS] Switch BlackBerry 10 Cordova download from WebWorks to NDK

2012-12-05 Thread Gord Tanner
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  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  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/
> >
>


Re: [DISCUSS] Switch BlackBerry 10 Cordova download from WebWorks to NDK

2012-12-05 Thread Nukul Bhasin
If clone off the WebWorks repo and then checkout a tag for the last release
it will be the same as the last release.
It should not be prone to any errors.


On Wed, Dec 5, 2012 at 2:53 PM, Drew Walters  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  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*


Re: [DISCUSS] Switch BlackBerry 10 Cordova download from WebWorks to NDK

2012-12-05 Thread Drew Walters
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  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/
>


Re: [DISCUSS] Switch BlackBerry 10 Cordova download from WebWorks to NDK

2012-12-05 Thread Gord Tanner
Correct, they would be building webworks from source during ./bin/create.

This solves the problem which we haven't run into yet where webworks
doesn't yet, or can't expose something from native and we need to dive down
to c via a native plugin.

It also allows us like Tim said to point to a commit or tag and base off of
that rather than wait for a WebWorks release.


On Wed, Dec 5, 2012 at 2:38 PM, Filip Maj  wrote:

> Hey Gord, what's the idea behind this switch? Why do you want to do this?
>
> And if I understand correctly, users would essentially be building
> WebWorks from scratch, with a few modifications (?), on their own machine
> the first time they run ./bin/create ?
>
> On 12/5/12 11:31 AM, "Tim Kim"  wrote:
>
> >+1
> >
> >I would like to be able to access the latest updates of webworks as
> >opposed
> >to waiting around for a release to land on the bb webworks download page.
> >
> >
> >On 5 December 2012 11:05, Gord Tanner  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/
> >>
> >
> >
> >
> >--
> >Timothy Kim
>
>


Re: [DISCUSS] Switch BlackBerry 10 Cordova download from WebWorks to NDK

2012-12-05 Thread Filip Maj
Hey Gord, what's the idea behind this switch? Why do you want to do this?

And if I understand correctly, users would essentially be building
WebWorks from scratch, with a few modifications (?), on their own machine
the first time they run ./bin/create ?

On 12/5/12 11:31 AM, "Tim Kim"  wrote:

>+1
>
>I would like to be able to access the latest updates of webworks as
>opposed
>to waiting around for a release to land on the bb webworks download page.
>
>
>On 5 December 2012 11:05, Gord Tanner  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/
>>
>
>
>
>-- 
>Timothy Kim



Re: [DISCUSS] Switch BlackBerry 10 Cordova download from WebWorks to NDK

2012-12-05 Thread Tim Kim
+1

I would like to be able to access the latest updates of webworks as opposed
to waiting around for a release to land on the bb webworks download page.


On 5 December 2012 11:05, Gord Tanner  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/
>



-- 
Timothy Kim