You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by Drew Walters <pu...@gmail.com> on 2011/12/06 16:49:46 UTC

Playbook code merge discussion

I've been playing around with the latest callback-blackberry code
which has been merged to include playback support and I have run into
some things which are worth noting/discussing/fixing.  For reference
the code change is here:

https://github.com/callback/callback-blackberry/commit/19c0e686067e36a563815435f6ed69ee562dbf9d#template/project/www/config.xml

I've listed below some things which existing BlackBerry developers
will need to be made aware of in order to update their existing
projects to 1.3. I've also added notes prefixed with '*' which I feel
are defects or at least require further discussion.

framework/ext/src/library.xml:
    - PhoneGap feature is now "com.phonegap" instead of "phonegap".

javascript/capture.js:
    - This is a proper renaming of media.js.
        * Problem is media.js was not deleted so both capture.js and
media.js are included and are identical.

javascript/console.js:
    - console.log is now only defined if console is undefined.
Previously console.log was always defined.
        * I've been testing on OS 6 and console.log never gets defined
since console is defined.  This results in console.log not working.
I've had to use phonegap.Logger.log instead.

template/project/project.properties:
    - Properties previously defined in the file are now prefixed with
"blackberry".  New properties added for "playbook".
        * I'm confused by "blackberry.sim.password".  Description says
"If you leave this field blank, then you cannot deploy to simulator".
I believe this is misleading since the only usage I see for it in
blackberry.xml is to load the device (not simulator).

javascript/webWorksPluginManager.js:
    - Camera and Capture functionality is now handled by blackberry
javascript API instead of native plugins.
        * This is a step backwards as the blackberry javascript API
lacks some features implemented by the native plugins.  Just to name a
few: specifying image size for the Camera, and audio recording for
Capture.

template/project/build.xml:
    - Build has been split up into blackberry.xml and playbook.xml.
    - Building a phone app now requires "ant blackberry build" where
before it was "ant build".

template/project/www/config.xml:
    - PhoneGap feature is now "com.phonegap" instead of "phonegap".
    - New permissions blackberry.media.camera, blackberry.identity,
blackberry.ui.dialog, blackberry.system.
        * I'm confused why blackberry.identity and blackberry.system
were added since they already exist in the file.  I'm also not sure
what is requiring blackberry.ui.dialog.

template/project/www/plugins.xml:
    - "Device" is a new required plugin.

Re: Playbook code merge discussion

Posted by Dave Johnson <da...@gmail.com>.
Yes thanks guys!!

On Thu, Dec 15, 2011 at 10:07 AM, Michael Brooks
<mi...@michaelbrooks.ca> wrote:
> Drew, thanks for bringing up the concerns issues around the PlayBook merge.
>
> I agree with Dave, I would rather see issues in PlayBook than regression in
> BlackBerry. However, as Fil pointed out, most of the concerning issues are
> minor, except #3 (which Drew has already fixed). For now, try to give the
> PlayBook a graceful failure (error callback).
>
> I just want to reiterate an important point:
>
> The core callback-blackberry maintainers need to be responsibility of
> testing on both BlackBerry and PlayBook.
> We can't have patches going in that fix one platform and hinder another.
>
> Unfortunately, I don't have time to spare for the PlayBook 1.3 issues. So
> thank you Drew and Fil for helping out!
>
> Michael
>
> On Thu, Dec 15, 2011 at 8:59 AM, Drew Walters <de...@gmail.com> wrote:
>
>> Ok, I've submitted two pull requests which resolve numbers 3 and 4 from my
>> list:
>>
>> 3. Restore camera and capture native functionality.
>>     https://github.com/callback/callback-blackberry/pull/13
>>
>> 4. Delete duplicate blackberry.identity and blackberry.system feature
>> ids in config.xml.
>>     https://github.com/callback/callback-blackberry/pull/12
>>
>> I tested them on OS 5 and OS 6.  I did not merge them because I did
>> not test on Playbook.  They are both trivial changes but would like
>> someone else to verify to make sure I haven't broken Playbook.
>>
>> On Wed, Dec 14, 2011 at 8:07 PM, Ken Wallis <kw...@rim.com> wrote:
>> > Gord will look to help fix some of these issues over the next few days.
>>  I assume we don't have write access to Jira, so should we just put on this
>> thread which issues we will take on as we take them on, so as not to
>> duplicate effort?
>> >
>> > ----- Original Message -----
>> > From: Dave Johnson [mailto:dave.c.johnson@gmail.com]
>> > Sent: Wednesday, December 14, 2011 08:09 PM
>> > To: callback-dev@incubator.apache.org <callback-dev@incubator.apache.org
>> >
>> > Subject: Re: Playbook code merge discussion
>> >
>> > Yes it's better if playbook has bugs rather than the smartphone having
>> > regressions.
>> >
>> > In that light what's the fastes route to resolution?
>> >
>> > On Wed, Dec 14, 2011 at 4:42 PM, Drew Walters <de...@gmail.com>
>> wrote:
>> >> What I am pointing out is regressions in the smartphone implementation
>> >> because of the playbook merge. Everything I listed worked in phonegap
>> 1.2.
>> >> Not fixing those will break existing apps.
>> >> On Dec 14, 2011 6:25 PM, "Filip Maj" <fi...@adobe.com> wrote:
>> >>
>> >>> I don't think it's a big deal. Yeah some of the APIs are not working,
>> but
>> >>> frankly these same APIs have issues on the regular smartphone
>> >>> implementation in callback-blackberry so I don't see the real
>> difference.
>> >>> If we ship one why not ship both?
>> >>>
>> >>> Issues are filed for both playbook and smartphone blackberry
>> >>> implementations so we know what problems exist. Eventually we will get
>> to
>> >>> them.
>> >>>
>> >>> Both (smartphone and playbook) approaches work too - if you clone the
>> repo
>> >>> down you can build apps for either the playbook or the smartphone.
>> >>>
>> >>>
>> >>> On 11-12-14 3:15 PM, "Drew Walters" <de...@gmail.com> wrote:
>> >>>
>> >>> >Is anyone looking at the changes that need to be made to Blackberry
>> >>> >based on the Playbook merge?  I will vote to not ship 1.3 until some
>> >>> >of these issues are fixed.
>> >>> >
>> >>> >I'll list what I believe must be fixed before 1.3 can ship:
>> >>> >
>> >>> >1. Delete media.js - Done. I pushed this change and subsequent
>> >>> >reordering of phonegap.js concat for dependencies.
>> >>> >
>> >>> >2. Re-enable console.log to write to event log - I coded up a change
>> >>> >for this which saved any existing console.log definition and re-called
>> >>> >after writing to event log.  I have not pushed because I'm not sure
>> >>> >what the Playbook side should do.  playBookPluginManager.js is
>> >>> >defining the Logger plugin to call console.log which would be an
>> >>> >infinite loop if console.log is overridden with a PhoneGap.exec.
>> >>> >
>> >>> >3. Restore camera and capture native functionality.
>> >>> >
>> >>> >4. Delete duplicate blackberry.identity and blackberry.system feature
>> >>> >ids in config.xml.
>> >>> >
>> >>> >I can live with the other differences though they will require
>> >>> >developers to make changes to their projects when they update to 1.3.
>> >>> >
>> >>> >I'm on vacation for two weeks after this Friday so my time to make
>> >>> >changes is limited.  I'm hesitant to make any change that might affect
>> >>> >the Playbook implementation since I don't have a Playbook and haven't
>> >>> >had a chance to setup the environment.
>> >>> >
>> >>> >On Wed, Dec 7, 2011 at 9:16 AM, Dan Silivestru <
>> dan.silivestru@gmail.com>
>> >>> >wrote:
>> >>> >> I think blackberry.ui.dialog is used for the notification API. At
>> least
>> >>> >> that's what it looks like to me based on this:
>> >>> >>
>> >>> >>
>> >>> >>
>> >>>
>> https://github.com/callback/callback-blackberry/commit/19c0e686067e36a563
>> >>> >>815435f6ed69ee562dbf9d#L13R194
>> >>> >>
>> >>> >> Cheers,
>> >>> >>
>> >>> >> Dan.
>> >>> >>
>> >>> >> On Tue, Dec 6, 2011 at 1:59 PM, Drew Walters <de...@gmail.com>
>> >>> wrote:
>> >>> >>
>> >>> >>> One other thing I forgot to mention.  Is "playbook" the term we
>> want
>> >>> >>> to reference in the code/build/etc?  I wonder if it would be more
>> >>> >>> future proof to call this "bbx".  My understanding is that the
>> >>> >>> Playbook OS and BBX will be one in the same going forward.  Maybe
>> its
>> >>> >>> jumping the gun a bit, since BBX isn't available yet, but I'd hate
>> to
>> >>> >>> have to rename in a couple of months.
>> >>> >>>
>> >>> >>> On Tue, Dec 6, 2011 at 11:56 AM, Michael Brooks
>> >>> >>> <mi...@michaelbrooks.ca> wrote:
>> >>> >>> > Hi Drew,
>> >>> >>> >
>> >>> >>> > Thanks for the summary and details on what's changed.
>> >>> >>> >
>> >>> >>> > All of the Playbook support was added by RIM quite a while ago,
>> but
>> >>> >>>the
>> >>> >>> > pull request was only merged in recently. During the merge, I
>> didn't
>> >>> >>>want
>> >>> >>> > to make unnecessary changes, so I held off of cleaning up parts
>> of
>> >>> >>>the
>> >>> >>> > codebase. Now that we've got Playbook support into the BlackBerry
>> >>> >>> > repository, we can start discussing and cleaning the codebase.
>> >>> >>> >
>> >>> >>> > A very important note is that we now need to support both
>> BlackBerry
>> >>> >>>and
>> >>> >>> > Playbook. RIM will be handling most of the AIR code, but we need
>> to
>> >>> >>> ensure
>> >>> >>> > that JavaScript changes for one platform will not break the
>> other.
>> >>> >>>So,
>> >>> >>> all
>> >>> >>> > callback-blackberry developers are responsible for compiling,
>> >>> >>>running,
>> >>> >>> and
>> >>> >>> > testing both BlackBerry (handheld) and Playbook (tablet).
>> >>> >>> >
>> >>> >>> > framework/ext/src/library.xml:
>> >>> >>> >>    - PhoneGap feature is now "com.phonegap" instead of
>> "phonegap".
>> >>> >>> >
>> >>> >>> >
>> >>> >>> > I'd also like a justification for this change. No other WebWorks
>> >>> >>> extension
>> >>> >>> > uses namespaces, so I'm confused why "phonegap" was changed to
>> >>> >>> > "com.phonegap". If there is no reason, then I would like to see
>> it
>> >>> >>> changed
>> >>> >>> > back to "phonegap".
>> >>> >>> >
>> >>> >>> > javascript/capture.js:
>> >>> >>> >>    - This is a proper renaming of media.js.
>> >>> >>> >>        * Problem is media.js was not deleted so both capture.js
>> and
>> >>> >>> >> media.js are included and are identical.
>> >>> >>> >
>> >>> >>> >
>> >>> >>> > Good eye. If media.js is redundant, then we should remove it.
>> >>> >>> >
>> >>> >>> > javascript/console.js:
>> >>> >>> >>    - console.log is now only defined if console is undefined.
>> >>> >>> >> Previously console.log was always defined.
>> >>> >>> >>        * I've been testing on OS 6 and console.log never gets
>> >>> >>>defined
>> >>> >>> >> since console is defined.  This results in console.log not
>> working.
>> >>> >>> >> I've had to use phonegap.Logger.log instead.
>> >>> >>> >
>> >>> >>> >
>> >>> >>> > Perhaps clobbering console.log was conflicting the the built-in
>> Web
>> >>> >>> > Inspector for Playbook debugging? We should be holding a
>> reference
>> >>> >>>to the
>> >>> >>> > original console.log, overriding it, and then still calling the
>> >>> >>>original
>> >>> >>> > reference.
>> >>> >>> >
>> >>> >>> > template/project/project.properties:
>> >>> >>> >>    - Properties previously defined in the file are now prefixed
>> with
>> >>> >>> >> "blackberry".  New properties added for "playbook".
>> >>> >>> >>        * I'm confused by "blackberry.sim.password".  Description
>> >>> >>>says
>> >>> >>> >> "If you leave this field blank, then you cannot deploy to
>> >>> >>>simulator".
>> >>> >>> >> I believe this is misleading since the only usage I see for it
>> in
>> >>> >>> >> blackberry.xml is to load the device (not simulator).
>> >>> >>> >
>> >>> >>> >
>> >>> >>> > Agreed. propject.properties has become more complicated and I'd
>> like
>> >>> >>>to
>> >>> >>> see
>> >>> >>> > it simplified. I think it's doable.
>> >>> >>> >
>> >>> >>> > javascript/webWorksPluginManager.js:
>> >>> >>> >>    - Camera and Capture functionality is now handled by
>> blackberry
>> >>> >>> >> javascript API instead of native plugins.
>> >>> >>> >>        * This is a step backwards as the blackberry javascript
>> API
>> >>> >>> >> lacks some features implemented by the native plugins.  Just to
>> >>> >>>name a
>> >>> >>> >> few: specifying image size for the Camera, and audio recording
>> for
>> >>> >>> >> Capture.
>> >>> >>> >
>> >>> >>> >
>> >>> >>> > My guess is that Playbook uses the WebWorks API, but BlackBerry
>> >>> >>>should
>> >>> >>> not
>> >>> >>> > be forced to do the same if it provides additional functionality.
>> >>> >>> >
>> >>> >>> > template/project/build.xml:
>> >>> >>> >>    - Build has been split up into blackberry.xml and
>> playbook.xml.
>> >>> >>> >>    - Building a phone app now requires "ant blackberry build"
>> where
>> >>> >>> >> before it was "ant build".
>> >>> >>> >
>> >>> >>> >
>> >>> >>> > I helped the RIM guys decided on this solution. It was the
>> cleanest
>> >>> >>> > approach that we could come up with at the same.
>> >>> >>> >
>> >>> >>> > template/project/www/config.xml:
>> >>> >>> >>    - PhoneGap feature is now "com.phonegap" instead of
>> "phonegap".
>> >>> >>> >>    - New permissions blackberry.media.camera,
>> blackberry.identity,
>> >>> >>> >> blackberry.ui.dialog, blackberry.system.
>> >>> >>> >>        * I'm confused why blackberry.identity and
>> blackberry.system
>> >>> >>> >> were added since they already exist in the file.  I'm also not
>> sure
>> >>> >>> >> what is requiring blackberry.ui.dialog.
>> >>> >>> >
>> >>> >>> >
>> >>> >>> > I'm also confused on the duplication and where
>> blackberry.ui.dialog
>> >>> >>>is
>> >>> >>> used.
>> >>> >>> >
>> >>> >>> > template/project/www/plugins.xml:
>> >>> >>> >>    - "Device" is a new required plugin.
>> >>> >>> >
>> >>> >>> >
>> >>> >>> > Yep
>> >>> >>> >
>> >>> >>> > There are now issues being logged on the missing Playbook APIs.
>> Until
>> >>> >>> > Playbook supports every PhoneGap API, we should ensure that it
>> can
>> >>> >>> > gracefully fail on the JavaScript side.
>> >>> >>> >
>> >>> >>> > Thanks again for posting this thread Drew!
>> >>> >>> > Michael
>> >>> >>> >
>> >>> >>> > On Tue, Dec 6, 2011 at 7:49 AM, Drew Walters <pu...@gmail.com>
>> >>> >>>wrote:
>> >>> >>> >
>> >>> >>> >> I've been playing around with the latest callback-blackberry
>> code
>> >>> >>> >> which has been merged to include playback support and I have run
>> >>> >>>into
>> >>> >>> >> some things which are worth noting/discussing/fixing.  For
>> reference
>> >>> >>> >> the code change is here:
>> >>> >>> >>
>> >>> >>> >>
>> >>> >>> >>
>> >>> >>>
>> >>> >>>
>> >>>
>> https://github.com/callback/callback-blackberry/commit/19c0e686067e36a56
>> >>> >>>3815435f6ed69ee562dbf9d#template/project/www/config.xml
>> >>> >>> >>
>> >>> >>> >> I've listed below some things which existing BlackBerry
>> developers
>> >>> >>> >> will need to be made aware of in order to update their existing
>> >>> >>> >> projects to 1.3. I've also added notes prefixed with '*' which I
>> >>> >>>feel
>> >>> >>> >> are defects or at least require further discussion.
>> >>> >>> >>
>> >>> >>> >> framework/ext/src/library.xml:
>> >>> >>> >>    - PhoneGap feature is now "com.phonegap" instead of
>> "phonegap".
>> >>> >>> >>
>> >>> >>> >> javascript/capture.js:
>> >>> >>> >>    - This is a proper renaming of media.js.
>> >>> >>> >>        * Problem is media.js was not deleted so both capture.js
>> and
>> >>> >>> >> media.js are included and are identical.
>> >>> >>> >>
>> >>> >>> >> javascript/console.js:
>> >>> >>> >>    - console.log is now only defined if console is undefined.
>> >>> >>> >> Previously console.log was always defined.
>> >>> >>> >>        * I've been testing on OS 6 and console.log never gets
>> >>> >>>defined
>> >>> >>> >> since console is defined.  This results in console.log not
>> working.
>> >>> >>> >> I've had to use phonegap.Logger.log instead.
>> >>> >>> >>
>> >>> >>> >> template/project/project.properties:
>> >>> >>> >>    - Properties previously defined in the file are now prefixed
>> with
>> >>> >>> >> "blackberry".  New properties added for "playbook".
>> >>> >>> >>        * I'm confused by "blackberry.sim.password".  Description
>> >>> >>>says
>> >>> >>> >> "If you leave this field blank, then you cannot deploy to
>> >>> >>>simulator".
>> >>> >>> >> I believe this is misleading since the only usage I see for it
>> in
>> >>> >>> >> blackberry.xml is to load the device (not simulator).
>> >>> >>> >>
>> >>> >>> >> javascript/webWorksPluginManager.js:
>> >>> >>> >>    - Camera and Capture functionality is now handled by
>> blackberry
>> >>> >>> >> javascript API instead of native plugins.
>> >>> >>> >>        * This is a step backwards as the blackberry javascript
>> API
>> >>> >>> >> lacks some features implemented by the native plugins.  Just to
>> >>> >>>name a
>> >>> >>> >> few: specifying image size for the Camera, and audio recording
>> for
>> >>> >>> >> Capture.
>> >>> >>> >>
>> >>> >>> >> template/project/build.xml:
>> >>> >>> >>    - Build has been split up into blackberry.xml and
>> playbook.xml.
>> >>> >>> >>    - Building a phone app now requires "ant blackberry build"
>> where
>> >>> >>> >> before it was "ant build".
>> >>> >>> >>
>> >>> >>> >> template/project/www/config.xml:
>> >>> >>> >>    - PhoneGap feature is now "com.phonegap" instead of
>> "phonegap".
>> >>> >>> >>    - New permissions blackberry.media.camera,
>> blackberry.identity,
>> >>> >>> >> blackberry.ui.dialog, blackberry.system.
>> >>> >>> >>        * I'm confused why blackberry.identity and
>> blackberry.system
>> >>> >>> >> were added since they already exist in the file.  I'm also not
>> sure
>> >>> >>> >> what is requiring blackberry.ui.dialog.
>> >>> >>> >>
>> >>> >>> >> template/project/www/plugins.xml:
>> >>> >>> >>    - "Device" is a new required plugin.
>> >>> >>> >>
>> >>> >>>
>> >>> >>
>> >>> >>
>> >>> >>
>> >>> >> --
>> >>> >> Dan Silivestru
>> >>> >> +1 (519) 589-3624
>> >>>
>> >>>
>> >
>> > ---------------------------------------------------------------------
>> > This transmission (including any attachments) may contain confidential
>> information, privileged material (including material protected by the
>> solicitor-client or other applicable privileges), or constitute non-public
>> information. Any use of this information by anyone other than the intended
>> recipient is prohibited. If you have received this transmission in error,
>> please immediately reply to the sender and delete this information from
>> your system. Use, dissemination, distribution, or reproduction of this
>> transmission by unintended recipients is not authorized and may be unlawful.
>>

Re: Playbook code merge discussion

Posted by Michael Brooks <mi...@michaelbrooks.ca>.
Drew, thanks for bringing up the concerns issues around the PlayBook merge.

I agree with Dave, I would rather see issues in PlayBook than regression in
BlackBerry. However, as Fil pointed out, most of the concerning issues are
minor, except #3 (which Drew has already fixed). For now, try to give the
PlayBook a graceful failure (error callback).

I just want to reiterate an important point:

The core callback-blackberry maintainers need to be responsibility of
testing on both BlackBerry and PlayBook.
We can't have patches going in that fix one platform and hinder another.

Unfortunately, I don't have time to spare for the PlayBook 1.3 issues. So
thank you Drew and Fil for helping out!

Michael

On Thu, Dec 15, 2011 at 8:59 AM, Drew Walters <de...@gmail.com> wrote:

> Ok, I've submitted two pull requests which resolve numbers 3 and 4 from my
> list:
>
> 3. Restore camera and capture native functionality.
>     https://github.com/callback/callback-blackberry/pull/13
>
> 4. Delete duplicate blackberry.identity and blackberry.system feature
> ids in config.xml.
>     https://github.com/callback/callback-blackberry/pull/12
>
> I tested them on OS 5 and OS 6.  I did not merge them because I did
> not test on Playbook.  They are both trivial changes but would like
> someone else to verify to make sure I haven't broken Playbook.
>
> On Wed, Dec 14, 2011 at 8:07 PM, Ken Wallis <kw...@rim.com> wrote:
> > Gord will look to help fix some of these issues over the next few days.
>  I assume we don't have write access to Jira, so should we just put on this
> thread which issues we will take on as we take them on, so as not to
> duplicate effort?
> >
> > ----- Original Message -----
> > From: Dave Johnson [mailto:dave.c.johnson@gmail.com]
> > Sent: Wednesday, December 14, 2011 08:09 PM
> > To: callback-dev@incubator.apache.org <callback-dev@incubator.apache.org
> >
> > Subject: Re: Playbook code merge discussion
> >
> > Yes it's better if playbook has bugs rather than the smartphone having
> > regressions.
> >
> > In that light what's the fastes route to resolution?
> >
> > On Wed, Dec 14, 2011 at 4:42 PM, Drew Walters <de...@gmail.com>
> wrote:
> >> What I am pointing out is regressions in the smartphone implementation
> >> because of the playbook merge. Everything I listed worked in phonegap
> 1.2.
> >> Not fixing those will break existing apps.
> >> On Dec 14, 2011 6:25 PM, "Filip Maj" <fi...@adobe.com> wrote:
> >>
> >>> I don't think it's a big deal. Yeah some of the APIs are not working,
> but
> >>> frankly these same APIs have issues on the regular smartphone
> >>> implementation in callback-blackberry so I don't see the real
> difference.
> >>> If we ship one why not ship both?
> >>>
> >>> Issues are filed for both playbook and smartphone blackberry
> >>> implementations so we know what problems exist. Eventually we will get
> to
> >>> them.
> >>>
> >>> Both (smartphone and playbook) approaches work too - if you clone the
> repo
> >>> down you can build apps for either the playbook or the smartphone.
> >>>
> >>>
> >>> On 11-12-14 3:15 PM, "Drew Walters" <de...@gmail.com> wrote:
> >>>
> >>> >Is anyone looking at the changes that need to be made to Blackberry
> >>> >based on the Playbook merge?  I will vote to not ship 1.3 until some
> >>> >of these issues are fixed.
> >>> >
> >>> >I'll list what I believe must be fixed before 1.3 can ship:
> >>> >
> >>> >1. Delete media.js - Done. I pushed this change and subsequent
> >>> >reordering of phonegap.js concat for dependencies.
> >>> >
> >>> >2. Re-enable console.log to write to event log - I coded up a change
> >>> >for this which saved any existing console.log definition and re-called
> >>> >after writing to event log.  I have not pushed because I'm not sure
> >>> >what the Playbook side should do.  playBookPluginManager.js is
> >>> >defining the Logger plugin to call console.log which would be an
> >>> >infinite loop if console.log is overridden with a PhoneGap.exec.
> >>> >
> >>> >3. Restore camera and capture native functionality.
> >>> >
> >>> >4. Delete duplicate blackberry.identity and blackberry.system feature
> >>> >ids in config.xml.
> >>> >
> >>> >I can live with the other differences though they will require
> >>> >developers to make changes to their projects when they update to 1.3.
> >>> >
> >>> >I'm on vacation for two weeks after this Friday so my time to make
> >>> >changes is limited.  I'm hesitant to make any change that might affect
> >>> >the Playbook implementation since I don't have a Playbook and haven't
> >>> >had a chance to setup the environment.
> >>> >
> >>> >On Wed, Dec 7, 2011 at 9:16 AM, Dan Silivestru <
> dan.silivestru@gmail.com>
> >>> >wrote:
> >>> >> I think blackberry.ui.dialog is used for the notification API. At
> least
> >>> >> that's what it looks like to me based on this:
> >>> >>
> >>> >>
> >>> >>
> >>>
> https://github.com/callback/callback-blackberry/commit/19c0e686067e36a563
> >>> >>815435f6ed69ee562dbf9d#L13R194
> >>> >>
> >>> >> Cheers,
> >>> >>
> >>> >> Dan.
> >>> >>
> >>> >> On Tue, Dec 6, 2011 at 1:59 PM, Drew Walters <de...@gmail.com>
> >>> wrote:
> >>> >>
> >>> >>> One other thing I forgot to mention.  Is "playbook" the term we
> want
> >>> >>> to reference in the code/build/etc?  I wonder if it would be more
> >>> >>> future proof to call this "bbx".  My understanding is that the
> >>> >>> Playbook OS and BBX will be one in the same going forward.  Maybe
> its
> >>> >>> jumping the gun a bit, since BBX isn't available yet, but I'd hate
> to
> >>> >>> have to rename in a couple of months.
> >>> >>>
> >>> >>> On Tue, Dec 6, 2011 at 11:56 AM, Michael Brooks
> >>> >>> <mi...@michaelbrooks.ca> wrote:
> >>> >>> > Hi Drew,
> >>> >>> >
> >>> >>> > Thanks for the summary and details on what's changed.
> >>> >>> >
> >>> >>> > All of the Playbook support was added by RIM quite a while ago,
> but
> >>> >>>the
> >>> >>> > pull request was only merged in recently. During the merge, I
> didn't
> >>> >>>want
> >>> >>> > to make unnecessary changes, so I held off of cleaning up parts
> of
> >>> >>>the
> >>> >>> > codebase. Now that we've got Playbook support into the BlackBerry
> >>> >>> > repository, we can start discussing and cleaning the codebase.
> >>> >>> >
> >>> >>> > A very important note is that we now need to support both
> BlackBerry
> >>> >>>and
> >>> >>> > Playbook. RIM will be handling most of the AIR code, but we need
> to
> >>> >>> ensure
> >>> >>> > that JavaScript changes for one platform will not break the
> other.
> >>> >>>So,
> >>> >>> all
> >>> >>> > callback-blackberry developers are responsible for compiling,
> >>> >>>running,
> >>> >>> and
> >>> >>> > testing both BlackBerry (handheld) and Playbook (tablet).
> >>> >>> >
> >>> >>> > framework/ext/src/library.xml:
> >>> >>> >>    - PhoneGap feature is now "com.phonegap" instead of
> "phonegap".
> >>> >>> >
> >>> >>> >
> >>> >>> > I'd also like a justification for this change. No other WebWorks
> >>> >>> extension
> >>> >>> > uses namespaces, so I'm confused why "phonegap" was changed to
> >>> >>> > "com.phonegap". If there is no reason, then I would like to see
> it
> >>> >>> changed
> >>> >>> > back to "phonegap".
> >>> >>> >
> >>> >>> > javascript/capture.js:
> >>> >>> >>    - This is a proper renaming of media.js.
> >>> >>> >>        * Problem is media.js was not deleted so both capture.js
> and
> >>> >>> >> media.js are included and are identical.
> >>> >>> >
> >>> >>> >
> >>> >>> > Good eye. If media.js is redundant, then we should remove it.
> >>> >>> >
> >>> >>> > javascript/console.js:
> >>> >>> >>    - console.log is now only defined if console is undefined.
> >>> >>> >> Previously console.log was always defined.
> >>> >>> >>        * I've been testing on OS 6 and console.log never gets
> >>> >>>defined
> >>> >>> >> since console is defined.  This results in console.log not
> working.
> >>> >>> >> I've had to use phonegap.Logger.log instead.
> >>> >>> >
> >>> >>> >
> >>> >>> > Perhaps clobbering console.log was conflicting the the built-in
> Web
> >>> >>> > Inspector for Playbook debugging? We should be holding a
> reference
> >>> >>>to the
> >>> >>> > original console.log, overriding it, and then still calling the
> >>> >>>original
> >>> >>> > reference.
> >>> >>> >
> >>> >>> > template/project/project.properties:
> >>> >>> >>    - Properties previously defined in the file are now prefixed
> with
> >>> >>> >> "blackberry".  New properties added for "playbook".
> >>> >>> >>        * I'm confused by "blackberry.sim.password".  Description
> >>> >>>says
> >>> >>> >> "If you leave this field blank, then you cannot deploy to
> >>> >>>simulator".
> >>> >>> >> I believe this is misleading since the only usage I see for it
> in
> >>> >>> >> blackberry.xml is to load the device (not simulator).
> >>> >>> >
> >>> >>> >
> >>> >>> > Agreed. propject.properties has become more complicated and I'd
> like
> >>> >>>to
> >>> >>> see
> >>> >>> > it simplified. I think it's doable.
> >>> >>> >
> >>> >>> > javascript/webWorksPluginManager.js:
> >>> >>> >>    - Camera and Capture functionality is now handled by
> blackberry
> >>> >>> >> javascript API instead of native plugins.
> >>> >>> >>        * This is a step backwards as the blackberry javascript
> API
> >>> >>> >> lacks some features implemented by the native plugins.  Just to
> >>> >>>name a
> >>> >>> >> few: specifying image size for the Camera, and audio recording
> for
> >>> >>> >> Capture.
> >>> >>> >
> >>> >>> >
> >>> >>> > My guess is that Playbook uses the WebWorks API, but BlackBerry
> >>> >>>should
> >>> >>> not
> >>> >>> > be forced to do the same if it provides additional functionality.
> >>> >>> >
> >>> >>> > template/project/build.xml:
> >>> >>> >>    - Build has been split up into blackberry.xml and
> playbook.xml.
> >>> >>> >>    - Building a phone app now requires "ant blackberry build"
> where
> >>> >>> >> before it was "ant build".
> >>> >>> >
> >>> >>> >
> >>> >>> > I helped the RIM guys decided on this solution. It was the
> cleanest
> >>> >>> > approach that we could come up with at the same.
> >>> >>> >
> >>> >>> > template/project/www/config.xml:
> >>> >>> >>    - PhoneGap feature is now "com.phonegap" instead of
> "phonegap".
> >>> >>> >>    - New permissions blackberry.media.camera,
> blackberry.identity,
> >>> >>> >> blackberry.ui.dialog, blackberry.system.
> >>> >>> >>        * I'm confused why blackberry.identity and
> blackberry.system
> >>> >>> >> were added since they already exist in the file.  I'm also not
> sure
> >>> >>> >> what is requiring blackberry.ui.dialog.
> >>> >>> >
> >>> >>> >
> >>> >>> > I'm also confused on the duplication and where
> blackberry.ui.dialog
> >>> >>>is
> >>> >>> used.
> >>> >>> >
> >>> >>> > template/project/www/plugins.xml:
> >>> >>> >>    - "Device" is a new required plugin.
> >>> >>> >
> >>> >>> >
> >>> >>> > Yep
> >>> >>> >
> >>> >>> > There are now issues being logged on the missing Playbook APIs.
> Until
> >>> >>> > Playbook supports every PhoneGap API, we should ensure that it
> can
> >>> >>> > gracefully fail on the JavaScript side.
> >>> >>> >
> >>> >>> > Thanks again for posting this thread Drew!
> >>> >>> > Michael
> >>> >>> >
> >>> >>> > On Tue, Dec 6, 2011 at 7:49 AM, Drew Walters <pu...@gmail.com>
> >>> >>>wrote:
> >>> >>> >
> >>> >>> >> I've been playing around with the latest callback-blackberry
> code
> >>> >>> >> which has been merged to include playback support and I have run
> >>> >>>into
> >>> >>> >> some things which are worth noting/discussing/fixing.  For
> reference
> >>> >>> >> the code change is here:
> >>> >>> >>
> >>> >>> >>
> >>> >>> >>
> >>> >>>
> >>> >>>
> >>>
> https://github.com/callback/callback-blackberry/commit/19c0e686067e36a56
> >>> >>>3815435f6ed69ee562dbf9d#template/project/www/config.xml
> >>> >>> >>
> >>> >>> >> I've listed below some things which existing BlackBerry
> developers
> >>> >>> >> will need to be made aware of in order to update their existing
> >>> >>> >> projects to 1.3. I've also added notes prefixed with '*' which I
> >>> >>>feel
> >>> >>> >> are defects or at least require further discussion.
> >>> >>> >>
> >>> >>> >> framework/ext/src/library.xml:
> >>> >>> >>    - PhoneGap feature is now "com.phonegap" instead of
> "phonegap".
> >>> >>> >>
> >>> >>> >> javascript/capture.js:
> >>> >>> >>    - This is a proper renaming of media.js.
> >>> >>> >>        * Problem is media.js was not deleted so both capture.js
> and
> >>> >>> >> media.js are included and are identical.
> >>> >>> >>
> >>> >>> >> javascript/console.js:
> >>> >>> >>    - console.log is now only defined if console is undefined.
> >>> >>> >> Previously console.log was always defined.
> >>> >>> >>        * I've been testing on OS 6 and console.log never gets
> >>> >>>defined
> >>> >>> >> since console is defined.  This results in console.log not
> working.
> >>> >>> >> I've had to use phonegap.Logger.log instead.
> >>> >>> >>
> >>> >>> >> template/project/project.properties:
> >>> >>> >>    - Properties previously defined in the file are now prefixed
> with
> >>> >>> >> "blackberry".  New properties added for "playbook".
> >>> >>> >>        * I'm confused by "blackberry.sim.password".  Description
> >>> >>>says
> >>> >>> >> "If you leave this field blank, then you cannot deploy to
> >>> >>>simulator".
> >>> >>> >> I believe this is misleading since the only usage I see for it
> in
> >>> >>> >> blackberry.xml is to load the device (not simulator).
> >>> >>> >>
> >>> >>> >> javascript/webWorksPluginManager.js:
> >>> >>> >>    - Camera and Capture functionality is now handled by
> blackberry
> >>> >>> >> javascript API instead of native plugins.
> >>> >>> >>        * This is a step backwards as the blackberry javascript
> API
> >>> >>> >> lacks some features implemented by the native plugins.  Just to
> >>> >>>name a
> >>> >>> >> few: specifying image size for the Camera, and audio recording
> for
> >>> >>> >> Capture.
> >>> >>> >>
> >>> >>> >> template/project/build.xml:
> >>> >>> >>    - Build has been split up into blackberry.xml and
> playbook.xml.
> >>> >>> >>    - Building a phone app now requires "ant blackberry build"
> where
> >>> >>> >> before it was "ant build".
> >>> >>> >>
> >>> >>> >> template/project/www/config.xml:
> >>> >>> >>    - PhoneGap feature is now "com.phonegap" instead of
> "phonegap".
> >>> >>> >>    - New permissions blackberry.media.camera,
> blackberry.identity,
> >>> >>> >> blackberry.ui.dialog, blackberry.system.
> >>> >>> >>        * I'm confused why blackberry.identity and
> blackberry.system
> >>> >>> >> were added since they already exist in the file.  I'm also not
> sure
> >>> >>> >> what is requiring blackberry.ui.dialog.
> >>> >>> >>
> >>> >>> >> template/project/www/plugins.xml:
> >>> >>> >>    - "Device" is a new required plugin.
> >>> >>> >>
> >>> >>>
> >>> >>
> >>> >>
> >>> >>
> >>> >> --
> >>> >> Dan Silivestru
> >>> >> +1 (519) 589-3624
> >>>
> >>>
> >
> > ---------------------------------------------------------------------
> > This transmission (including any attachments) may contain confidential
> information, privileged material (including material protected by the
> solicitor-client or other applicable privileges), or constitute non-public
> information. Any use of this information by anyone other than the intended
> recipient is prohibited. If you have received this transmission in error,
> please immediately reply to the sender and delete this information from
> your system. Use, dissemination, distribution, or reproduction of this
> transmission by unintended recipients is not authorized and may be unlawful.
>

Re: Playbook code merge discussion

Posted by Michael Brooks <mi...@gmail.com>.
Woo, thank you Jeff and Gord!

Thanks for testing it Fil. I only had a simulator on hand.

We should kick up a new discussion about the subdirectory issue that you're experiencing.

Michael

On 2011-12-21, at 5:47 PM, Filip Maj <fi...@adobe.com> wrote:

> Thanks indeed! That fixed phonegap on a real playbook. Merged now. Werd.
> 
> Funny how it still worked on the simulator... ? Would love to figure that
> one out :P
> 
> P.S. Loading the playbook-specific phonegap.js from a subdirectory does
> *not* work for me, I have to put that file in the root of the webworks
> archive. Weird eh?
> 
> On 11-12-21 7:40 AM, "Gord Tanner" <go...@tinyhippos.com> wrote:
> 
>> Issued a pull request to fix the playbook support in 1.3.
>> 
>> https://github.com/callback/callback-blackberry/pull/14
>> Looks like there was a small merge issue that broke it.  Thanks to Jeffrey
>> Heifetz for finding and fixing this.
>> 
>> Gord
>> 
>> On Mon, Dec 19, 2011 at 11:55 AM, Michael Brooks
>> <mi...@michaelbrooks.ca>wrote:
>> 
>>>> 
>>>> Once deployed to an actual Playbook, callback tests and even the
>>> sample
>>>> app don't run at all. Identical code working fine on the simulator.
>>> Crap
>>> :/
>>> 
>>> 
>>> Ouch.
>>> 
>>> I remember kicking up the sample application on my PlayBook and seeing
>>> the
>>> confirm dialog. So, you may want to double check the application on a
>>> production PlayBook.
>>> 
>>> Regardless, until we can test further, I agree that we shouldn't claim
>>> PlayBook support. *sad panda*
>>> 
>>> Michael
>>> 
>>> 2011/12/18 Filip Maj <fi...@adobe.com>
>>> 
>>>> Well, regarding PlayBook support I spoke too soon.
>>>> 
>>>> I ended up resuscitating the discharged Playbook I had by a
>>> combination
>>> of
>>>> hard resets and firmware reloads. Wasn't easy!
>>>> 
>>>> Once deployed to an actual Playbook, callback tests and even the
>>> sample
>>>> app don't run at all. Identical code working fine on the simulator.
>>> Crap
>>> :/
>>>> 
>>>> I hooked up the built-in Web Inspector support on the PlayBook (which
>>> is
>>>> rad, btw) but can't really tell what is going on other than some of
>>> the
>>>> built-in system foreground/background callbacks were throwing an
>>>> exception. This isn't any of our code, so I can't see the source that
>>> is
>>>> causing the exception, I can only try to catch uncaught exceptions in
>>> web
>>>> inspector and deduce what is going on that way... So, yeah, not much
>>> can
>>>> be discerned. So Inspector just ends up reporting "TypeError: Result
>>> of
>>>> expression 'response' [null] is not an object."
>>>> 
>>>> I think until I can figure out/set myself up on how to debug the
>>> native
>>>> extensions on the PB and find out what is breaking stuff on the actual
>>>> device, we shouldn't claim any Playbook support...
>>>> 
>>>> On 11-12-18 2:10 PM, "Filip Maj" <fi...@adobe.com> wrote:
>>>> 
>>>>> Hey all
>>>>> 
>>>>> Merge looks fine. Works well on the smartphone. Can't test on a
>>> playbook
>>>>> device (waiting on signing keys) but I will once I get them. In any
>>> case,
>>>>> pretty much everything but the File API was working fine on the
>>> playbook
>>>>> sim.
>>>>> 
>>>>> Still some issues to work out but they are documented. Based on the
>>> issue
>>>>> tracker we've got some work to do in 2012!
>>>>> 
>>>>> On 11-12-17 11:49 AM, "Drew Walters" <pu...@gmail.com> wrote:
>>>>> 
>>>>>> Thanks. That's awesome. Good luck.
>>>>>> On Dec 17, 2011 1:41 PM, "Filip Maj" <fi...@adobe.com> wrote:
>>>>>> 
>>>>>>> Shit my bad guys.
>>>>>>> 
>>>>>>> I'll merge the two pull requests shortly and re-test using the
>>> "manual"
>>>>>>> tests that are present in callback-test.
>>>>>>> 
>>>>>>> If everything is cool then I'll retag.
>>>>>>> 
>>>>>>> On 11-12-17 11:25 AM, "Drew Walters" <pu...@gmail.com> wrote:
>>>>>>> 
>>>>>>>> I spent time the last two days setting up and testing on playbook
>>>>>>>> simulator
>>>>>>>> but was unable to get the camera API to work with or without my
>>>>>>> change.
>>>>>>>> Not
>>>>>>>> sure if the simulator has an issue or what but I have been
>>> unable to
>>>>>>>> properly test it on playbook. I stepped through the JavaScript
>>> and
>>> was
>>>>>>>> getting a null response in one of the internal blackberry
>>> webworks
>>>>>>> API.
>>>>>>>> 
>>>>>>>> On Saturday, December 17, 2011, Michael Brooks
>>>>>>> <mi...@michaelbrooks.ca>
>>>>>>>> wrote:
>>>>>>>>> Drew, since you know how to replicate the issues, can you apply
>>>>>>> these
>>>>>>>>> two
>>>>>>>>> pull requests, test on both platforms, and push to the master
>>> repo?
>>>>>>>>> 
>>>>>>>>> If everything is fine, then we can retag callback-blackberry.
>>>>>>>>> 
>>>>>>>>> Michael
>>>>>>>>> 
>>>>>>>>> On Fri, Dec 16, 2011 at 6:12 PM, Drew Walters
>>> <deedubbu@gmail.com
>>>> 
>>>>>>>>> wrote:
>>>>>>>>> 
>>>>>>>>>> Fil, it doesn't look like my pull requests have been merged
>>> in.
>>>>>>>>>> Without the pull request with the capture and camera fix, the
>>>>>>>>>> BlackBerry code would be a regression.  Not sure which tests
>>> you
>>>>>>> are
>>>>>>>>>> referring to, maybe the automated tests?  Those tests must not
>>>>>>>>>> exercise the issues that exist.  Namely, recording audio
>>> input,
>>>>>>>>>> reporting supported format types, specifying camera image size
>>> and
>>>>>>>>>> some others.
>>>>>>>>>> 
>>>>>>>>>> On Fri, Dec 16, 2011 at 6:30 PM, Filip Maj <fi...@adobe.com>
>>> wrote:
>>>>>>>>>>> Alright cool I'll tag shortly and update on the "don¹t
>>> forget
>>> to
>>>>>>> tag"
>>>>>>>>>>> thread :P
>>>>>>>>>>> 
>>>>>>>>>>> On 11-12-16 4:00 PM, "Dave Johnson"
>>> <da...@gmail.com>
>>>>>>> wrote:
>>>>>>>>>>> 
>>>>>>>>>>>> +1 that sounds good to me.
>>>>>>>>>>>> On Dec 16, 2011 3:39 PM, "Filip Maj" <fi...@adobe.com> wrote:
>>>>>>>>>>>> 
>>>>>>>>>>>>> One more note on the PlayBook failing tests: pretty much
>>> all
>>> of
>>>>>>> the
>>>>>>>>>>>>> failing tests on PlayBook are related to the File API,
>>> which
>>> I
>>>>>>> seem
>>>>>>>> to
>>>>>>>>>>>>> recall the RIM calls explicitly telling me when they were
>>>>>>> working
>>>>>>>>>> on
>>>>>>>>>>>>> it...
>>>>>>>>>>>>> 
>>>>>>>>>>>>> APIs such as GPS, Accel, Network, Notification, Contacts
>>> all
>>>>>>> seem
>>>>>>>>>> to
>>>>>>>> be
>>>>>>>>>>>>> working according to the tests.
>>>>>>>>>>>>> 
>>>>>>>>>>>>> So, once more, in terms of release notes for 1.3 maybe we
>>> can
>>>>>>> say
>>>>>>>>>> "Basic
>>>>>>>>>>>>> Playbook support, minus the File API" ?
>>>>>>>>>>>>> 
>>>>>>>>>>>>> On 11-12-16 3:34 PM, "Filip Maj" <fi...@adobe.com> wrote:
>>>>>>>>>>>>> 
>>>>>>>>>>>>>> Hey guys,
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>> Quick update on the state of the BB implementations for
>>> 1.3.
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>> 1.3.0rc2 currently has approximately 95% of the PhoneGap
>>> API
>>>>>>> tests
>>>>>>>>>>>>> passing
>>>>>>>>>>>>>> on the smartphone, and just over half passing on the
>>> PlayBook
>>>>>>>>>>>>> simulator. I
>>>>>>>>>>>>>> don't have a working PlayBook device so rocking the sim -
>>>>>>> which
>>>>>>>>>> may
>>>>>>>>>>>>> not be
>>>>>>>>>>>>>> giving us a true reflection of the state of
>>> callback/cordova
>>>>>>> on
>>>>>>>>>> the
>>>>>>>>>>>>>> playbook.
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>> So, obviously some issues on the playbook that I am
>>> working
>>>>>>>>>> through
>>>>>>>> to
>>>>>>>>>>>>>> document and fix, but no regressions on the smartphone.
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>> Is that good to tag? I'll be documenting both smartphone
>>> and
>>>>>>>> playbook
>>>>>>>>>>>>>> issues. Marketing/release notes-wise, can we label 1.3.0
>>> as
>>>>>>> having
>>>>>>>>>>>>> "basic
>>>>>>>>>>>>>> PlayBook support", or what do we do with respect to that?
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>> On 11-12-15 1:30 PM, "Filip Maj" <fi...@adobe.com> wrote:
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>> Drew, thanks for the clarification. I am going to
>>>>>>> double-check
>>>>>>>>>> both
>>>>>>>>>>>>>>> playbook and smartphone implementations and make sure we
>>> are
>>>>>>>>>> golden
>>>>>>>>>>>>>>> before
>>>>>>>>>>>>>>> tomorrow.
>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>> On 11-12-15 8:59 AM, "Drew Walters" <de...@gmail.com>
>>>>>>> wrote:
>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>> Ok, I've submitted two pull requests which resolve
>>> numbers 3
>>>>>>>>>> and 4
>>>>>>>>>>>>> from
>>>>>>>>>>>>>>>> my list:
>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>> 3. Restore camera and capture native functionality.
>>>>>>>>>>>>>>>> 
>>> https://github.com/callback/callback-blackberry/pull/13
>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>> 4. Delete duplicate blackberry.identity and
>>>>>>> blackberry.system
>>>>>>>>>> feature
>>>>>>>>>>>>>>>> ids in config.xml.
>>>>>>>>>>>>>>>> 
>>>>>>> 
>>>>>>> 
>>>>> 
>>>> 
>>>> 
>>> 
>> 
>> 
>> 
>> -- 
>> Gord Tanner
>> Senior Developer / Code Poet
>> tinyHippos Inc.
>> @tinyhippos
> 

Re: Playbook code merge discussion

Posted by Filip Maj <fi...@adobe.com>.
Thanks indeed! That fixed phonegap on a real playbook. Merged now. Werd.

Funny how it still worked on the simulator... ? Would love to figure that
one out :P

P.S. Loading the playbook-specific phonegap.js from a subdirectory does
*not* work for me, I have to put that file in the root of the webworks
archive. Weird eh?

On 11-12-21 7:40 AM, "Gord Tanner" <go...@tinyhippos.com> wrote:

>Issued a pull request to fix the playbook support in 1.3.
>
>https://github.com/callback/callback-blackberry/pull/14
>Looks like there was a small merge issue that broke it.  Thanks to Jeffrey
>Heifetz for finding and fixing this.
>
>Gord
>
>On Mon, Dec 19, 2011 at 11:55 AM, Michael Brooks
><mi...@michaelbrooks.ca>wrote:
>
>> >
>> > Once deployed to an actual Playbook, callback tests and even the
>>sample
>> > app don't run at all. Identical code working fine on the simulator.
>>Crap
>> :/
>>
>>
>> Ouch.
>>
>> I remember kicking up the sample application on my PlayBook and seeing
>>the
>> confirm dialog. So, you may want to double check the application on a
>> production PlayBook.
>>
>> Regardless, until we can test further, I agree that we shouldn't claim
>> PlayBook support. *sad panda*
>>
>> Michael
>>
>> 2011/12/18 Filip Maj <fi...@adobe.com>
>>
>> > Well, regarding PlayBook support I spoke too soon.
>> >
>> > I ended up resuscitating the discharged Playbook I had by a
>>combination
>> of
>> > hard resets and firmware reloads. Wasn't easy!
>> >
>> > Once deployed to an actual Playbook, callback tests and even the
>>sample
>> > app don't run at all. Identical code working fine on the simulator.
>>Crap
>> :/
>> >
>> > I hooked up the built-in Web Inspector support on the PlayBook (which
>>is
>> > rad, btw) but can't really tell what is going on other than some of
>>the
>> > built-in system foreground/background callbacks were throwing an
>> > exception. This isn't any of our code, so I can't see the source that
>>is
>> > causing the exception, I can only try to catch uncaught exceptions in
>>web
>> > inspector and deduce what is going on that way... So, yeah, not much
>>can
>> > be discerned. So Inspector just ends up reporting "TypeError: Result
>>of
>> > expression 'response' [null] is not an object."
>> >
>> > I think until I can figure out/set myself up on how to debug the
>>native
>> > extensions on the PB and find out what is breaking stuff on the actual
>> > device, we shouldn't claim any Playbook support...
>> >
>> > On 11-12-18 2:10 PM, "Filip Maj" <fi...@adobe.com> wrote:
>> >
>> > >Hey all
>> > >
>> > >Merge looks fine. Works well on the smartphone. Can't test on a
>>playbook
>> > >device (waiting on signing keys) but I will once I get them. In any
>> case,
>> > >pretty much everything but the File API was working fine on the
>>playbook
>> > >sim.
>> > >
>> > >Still some issues to work out but they are documented. Based on the
>> issue
>> > >tracker we've got some work to do in 2012!
>> > >
>> > >On 11-12-17 11:49 AM, "Drew Walters" <pu...@gmail.com> wrote:
>> > >
>> > >>Thanks. That's awesome. Good luck.
>> > >>On Dec 17, 2011 1:41 PM, "Filip Maj" <fi...@adobe.com> wrote:
>> > >>
>> > >>> Shit my bad guys.
>> > >>>
>> > >>> I'll merge the two pull requests shortly and re-test using the
>> "manual"
>> > >>> tests that are present in callback-test.
>> > >>>
>> > >>> If everything is cool then I'll retag.
>> > >>>
>> > >>> On 11-12-17 11:25 AM, "Drew Walters" <pu...@gmail.com> wrote:
>> > >>>
>> > >>> >I spent time the last two days setting up and testing on playbook
>> > >>> >simulator
>> > >>> >but was unable to get the camera API to work with or without my
>> > >>>change.
>> > >>> >Not
>> > >>> >sure if the simulator has an issue or what but I have been
>>unable to
>> > >>> >properly test it on playbook. I stepped through the JavaScript
>>and
>> was
>> > >>> >getting a null response in one of the internal blackberry
>>webworks
>> > >>>API.
>> > >>> >
>> > >>> >On Saturday, December 17, 2011, Michael Brooks
>> > >>><mi...@michaelbrooks.ca>
>> > >>> >wrote:
>> > >>> >> Drew, since you know how to replicate the issues, can you apply
>> > >>>these
>> > >>> >>two
>> > >>> >> pull requests, test on both platforms, and push to the master
>> repo?
>> > >>> >>
>> > >>> >> If everything is fine, then we can retag callback-blackberry.
>> > >>> >>
>> > >>> >> Michael
>> > >>> >>
>> > >>> >> On Fri, Dec 16, 2011 at 6:12 PM, Drew Walters
>><deedubbu@gmail.com
>> >
>> > >>> >>wrote:
>> > >>> >>
>> > >>> >>> Fil, it doesn't look like my pull requests have been merged
>>in.
>> > >>> >>> Without the pull request with the capture and camera fix, the
>> > >>> >>> BlackBerry code would be a regression.  Not sure which tests
>>you
>> > >>>are
>> > >>> >>> referring to, maybe the automated tests?  Those tests must not
>> > >>> >>> exercise the issues that exist.  Namely, recording audio
>>input,
>> > >>> >>> reporting supported format types, specifying camera image size
>> and
>> > >>> >>> some others.
>> > >>> >>>
>> > >>> >>> On Fri, Dec 16, 2011 at 6:30 PM, Filip Maj <fi...@adobe.com>
>> wrote:
>> > >>> >>> > Alright cool I'll tag shortly and update on the "don¹t
>>forget
>> to
>> > >>>tag"
>> > >>> >>> > thread :P
>> > >>> >>> >
>> > >>> >>> > On 11-12-16 4:00 PM, "Dave Johnson"
>><da...@gmail.com>
>> > >>> wrote:
>> > >>> >>> >
>> > >>> >>> >>+1 that sounds good to me.
>> > >>> >>> >>On Dec 16, 2011 3:39 PM, "Filip Maj" <fi...@adobe.com> wrote:
>> > >>> >>> >>
>> > >>> >>> >>> One more note on the PlayBook failing tests: pretty much
>>all
>> of
>> > >>>the
>> > >>> >>> >>> failing tests on PlayBook are related to the File API,
>>which
>> I
>> > >>>seem
>> > >>> >to
>> > >>> >>> >>> recall the RIM calls explicitly telling me when they were
>> > >>>working
>> > >>> >>>on
>> > >>> >>> >>>it...
>> > >>> >>> >>>
>> > >>> >>> >>> APIs such as GPS, Accel, Network, Notification, Contacts
>>all
>> > >>>seem
>> > >>> >>>to
>> > >>> >be
>> > >>> >>> >>> working according to the tests.
>> > >>> >>> >>>
>> > >>> >>> >>> So, once more, in terms of release notes for 1.3 maybe we
>>can
>> > >>>say
>> > >>> >>> "Basic
>> > >>> >>> >>> Playbook support, minus the File API" ?
>> > >>> >>> >>>
>> > >>> >>> >>> On 11-12-16 3:34 PM, "Filip Maj" <fi...@adobe.com> wrote:
>> > >>> >>> >>>
>> > >>> >>> >>> >Hey guys,
>> > >>> >>> >>> >
>> > >>> >>> >>> >Quick update on the state of the BB implementations for
>>1.3.
>> > >>> >>> >>> >
>> > >>> >>> >>> >1.3.0rc2 currently has approximately 95% of the PhoneGap
>>API
>> > >>>tests
>> > >>> >>> >>>passing
>> > >>> >>> >>> >on the smartphone, and just over half passing on the
>> PlayBook
>> > >>> >>> >>>simulator. I
>> > >>> >>> >>> >don't have a working PlayBook device so rocking the sim -
>> > >>>which
>> > >>> >>>may
>> > >>> >>> >>>not be
>> > >>> >>> >>> >giving us a true reflection of the state of
>>callback/cordova
>> > >>>on
>> > >>> >>>the
>> > >>> >>> >>> >playbook.
>> > >>> >>> >>> >
>> > >>> >>> >>> >So, obviously some issues on the playbook that I am
>>working
>> > >>> >>>through
>> > >>> >to
>> > >>> >>> >>> >document and fix, but no regressions on the smartphone.
>> > >>> >>> >>> >
>> > >>> >>> >>> >Is that good to tag? I'll be documenting both smartphone
>>and
>> > >>> >playbook
>> > >>> >>> >>> >issues. Marketing/release notes-wise, can we label 1.3.0
>>as
>> > >>>having
>> > >>> >>> >>>"basic
>> > >>> >>> >>> >PlayBook support", or what do we do with respect to that?
>> > >>> >>> >>> >
>> > >>> >>> >>> >On 11-12-15 1:30 PM, "Filip Maj" <fi...@adobe.com> wrote:
>> > >>> >>> >>> >
>> > >>> >>> >>> >>Drew, thanks for the clarification. I am going to
>> > >>>double-check
>> > >>> >>>both
>> > >>> >>> >>> >>playbook and smartphone implementations and make sure we
>> are
>> > >>> >>>golden
>> > >>> >>> >>> >>before
>> > >>> >>> >>> >>tomorrow.
>> > >>> >>> >>> >>
>> > >>> >>> >>> >>On 11-12-15 8:59 AM, "Drew Walters" <de...@gmail.com>
>> > >>>wrote:
>> > >>> >>> >>> >>
>> > >>> >>> >>> >>>Ok, I've submitted two pull requests which resolve
>> numbers 3
>> > >>> >>>and 4
>> > >>> >>> >>>from
>> > >>> >>> >>> >>>my list:
>> > >>> >>> >>> >>>
>> > >>> >>> >>> >>>3. Restore camera and capture native functionality.
>> > >>> >>> >>> >>>
>> https://github.com/callback/callback-blackberry/pull/13
>> > >>> >>> >>> >>>
>> > >>> >>> >>> >>>4. Delete duplicate blackberry.identity and
>> > >>>blackberry.system
>> > >>> >>> feature
>> > >>> >>> >>> >>>ids in config.xml.
>> > >>> >>> >>> >>>
>> > >>>
>> > >>>
>> > >
>> >
>> >
>>
>
>
>
>-- 
>Gord Tanner
>Senior Developer / Code Poet
>tinyHippos Inc.
>@tinyhippos


Re: Playbook code merge discussion

Posted by Gord Tanner <go...@tinyhippos.com>.
Issued a pull request to fix the playbook support in 1.3.

https://github.com/callback/callback-blackberry/pull/14
Looks like there was a small merge issue that broke it.  Thanks to Jeffrey
Heifetz for finding and fixing this.

Gord

On Mon, Dec 19, 2011 at 11:55 AM, Michael Brooks
<mi...@michaelbrooks.ca>wrote:

> >
> > Once deployed to an actual Playbook, callback tests and even the sample
> > app don't run at all. Identical code working fine on the simulator. Crap
> :/
>
>
> Ouch.
>
> I remember kicking up the sample application on my PlayBook and seeing the
> confirm dialog. So, you may want to double check the application on a
> production PlayBook.
>
> Regardless, until we can test further, I agree that we shouldn't claim
> PlayBook support. *sad panda*
>
> Michael
>
> 2011/12/18 Filip Maj <fi...@adobe.com>
>
> > Well, regarding PlayBook support I spoke too soon.
> >
> > I ended up resuscitating the discharged Playbook I had by a combination
> of
> > hard resets and firmware reloads. Wasn't easy!
> >
> > Once deployed to an actual Playbook, callback tests and even the sample
> > app don't run at all. Identical code working fine on the simulator. Crap
> :/
> >
> > I hooked up the built-in Web Inspector support on the PlayBook (which is
> > rad, btw) but can't really tell what is going on other than some of the
> > built-in system foreground/background callbacks were throwing an
> > exception. This isn't any of our code, so I can't see the source that is
> > causing the exception, I can only try to catch uncaught exceptions in web
> > inspector and deduce what is going on that way... So, yeah, not much can
> > be discerned. So Inspector just ends up reporting "TypeError: Result of
> > expression 'response' [null] is not an object."
> >
> > I think until I can figure out/set myself up on how to debug the native
> > extensions on the PB and find out what is breaking stuff on the actual
> > device, we shouldn't claim any Playbook support...
> >
> > On 11-12-18 2:10 PM, "Filip Maj" <fi...@adobe.com> wrote:
> >
> > >Hey all
> > >
> > >Merge looks fine. Works well on the smartphone. Can't test on a playbook
> > >device (waiting on signing keys) but I will once I get them. In any
> case,
> > >pretty much everything but the File API was working fine on the playbook
> > >sim.
> > >
> > >Still some issues to work out but they are documented. Based on the
> issue
> > >tracker we've got some work to do in 2012!
> > >
> > >On 11-12-17 11:49 AM, "Drew Walters" <pu...@gmail.com> wrote:
> > >
> > >>Thanks. That's awesome. Good luck.
> > >>On Dec 17, 2011 1:41 PM, "Filip Maj" <fi...@adobe.com> wrote:
> > >>
> > >>> Shit my bad guys.
> > >>>
> > >>> I'll merge the two pull requests shortly and re-test using the
> "manual"
> > >>> tests that are present in callback-test.
> > >>>
> > >>> If everything is cool then I'll retag.
> > >>>
> > >>> On 11-12-17 11:25 AM, "Drew Walters" <pu...@gmail.com> wrote:
> > >>>
> > >>> >I spent time the last two days setting up and testing on playbook
> > >>> >simulator
> > >>> >but was unable to get the camera API to work with or without my
> > >>>change.
> > >>> >Not
> > >>> >sure if the simulator has an issue or what but I have been unable to
> > >>> >properly test it on playbook. I stepped through the JavaScript and
> was
> > >>> >getting a null response in one of the internal blackberry webworks
> > >>>API.
> > >>> >
> > >>> >On Saturday, December 17, 2011, Michael Brooks
> > >>><mi...@michaelbrooks.ca>
> > >>> >wrote:
> > >>> >> Drew, since you know how to replicate the issues, can you apply
> > >>>these
> > >>> >>two
> > >>> >> pull requests, test on both platforms, and push to the master
> repo?
> > >>> >>
> > >>> >> If everything is fine, then we can retag callback-blackberry.
> > >>> >>
> > >>> >> Michael
> > >>> >>
> > >>> >> On Fri, Dec 16, 2011 at 6:12 PM, Drew Walters <deedubbu@gmail.com
> >
> > >>> >>wrote:
> > >>> >>
> > >>> >>> Fil, it doesn't look like my pull requests have been merged in.
> > >>> >>> Without the pull request with the capture and camera fix, the
> > >>> >>> BlackBerry code would be a regression.  Not sure which tests you
> > >>>are
> > >>> >>> referring to, maybe the automated tests?  Those tests must not
> > >>> >>> exercise the issues that exist.  Namely, recording audio input,
> > >>> >>> reporting supported format types, specifying camera image size
> and
> > >>> >>> some others.
> > >>> >>>
> > >>> >>> On Fri, Dec 16, 2011 at 6:30 PM, Filip Maj <fi...@adobe.com>
> wrote:
> > >>> >>> > Alright cool I'll tag shortly and update on the "don¹t forget
> to
> > >>>tag"
> > >>> >>> > thread :P
> > >>> >>> >
> > >>> >>> > On 11-12-16 4:00 PM, "Dave Johnson" <da...@gmail.com>
> > >>> wrote:
> > >>> >>> >
> > >>> >>> >>+1 that sounds good to me.
> > >>> >>> >>On Dec 16, 2011 3:39 PM, "Filip Maj" <fi...@adobe.com> wrote:
> > >>> >>> >>
> > >>> >>> >>> One more note on the PlayBook failing tests: pretty much all
> of
> > >>>the
> > >>> >>> >>> failing tests on PlayBook are related to the File API, which
> I
> > >>>seem
> > >>> >to
> > >>> >>> >>> recall the RIM calls explicitly telling me when they were
> > >>>working
> > >>> >>>on
> > >>> >>> >>>it...
> > >>> >>> >>>
> > >>> >>> >>> APIs such as GPS, Accel, Network, Notification, Contacts all
> > >>>seem
> > >>> >>>to
> > >>> >be
> > >>> >>> >>> working according to the tests.
> > >>> >>> >>>
> > >>> >>> >>> So, once more, in terms of release notes for 1.3 maybe we can
> > >>>say
> > >>> >>> "Basic
> > >>> >>> >>> Playbook support, minus the File API" ?
> > >>> >>> >>>
> > >>> >>> >>> On 11-12-16 3:34 PM, "Filip Maj" <fi...@adobe.com> wrote:
> > >>> >>> >>>
> > >>> >>> >>> >Hey guys,
> > >>> >>> >>> >
> > >>> >>> >>> >Quick update on the state of the BB implementations for 1.3.
> > >>> >>> >>> >
> > >>> >>> >>> >1.3.0rc2 currently has approximately 95% of the PhoneGap API
> > >>>tests
> > >>> >>> >>>passing
> > >>> >>> >>> >on the smartphone, and just over half passing on the
> PlayBook
> > >>> >>> >>>simulator. I
> > >>> >>> >>> >don't have a working PlayBook device so rocking the sim -
> > >>>which
> > >>> >>>may
> > >>> >>> >>>not be
> > >>> >>> >>> >giving us a true reflection of the state of callback/cordova
> > >>>on
> > >>> >>>the
> > >>> >>> >>> >playbook.
> > >>> >>> >>> >
> > >>> >>> >>> >So, obviously some issues on the playbook that I am working
> > >>> >>>through
> > >>> >to
> > >>> >>> >>> >document and fix, but no regressions on the smartphone.
> > >>> >>> >>> >
> > >>> >>> >>> >Is that good to tag? I'll be documenting both smartphone and
> > >>> >playbook
> > >>> >>> >>> >issues. Marketing/release notes-wise, can we label 1.3.0 as
> > >>>having
> > >>> >>> >>>"basic
> > >>> >>> >>> >PlayBook support", or what do we do with respect to that?
> > >>> >>> >>> >
> > >>> >>> >>> >On 11-12-15 1:30 PM, "Filip Maj" <fi...@adobe.com> wrote:
> > >>> >>> >>> >
> > >>> >>> >>> >>Drew, thanks for the clarification. I am going to
> > >>>double-check
> > >>> >>>both
> > >>> >>> >>> >>playbook and smartphone implementations and make sure we
> are
> > >>> >>>golden
> > >>> >>> >>> >>before
> > >>> >>> >>> >>tomorrow.
> > >>> >>> >>> >>
> > >>> >>> >>> >>On 11-12-15 8:59 AM, "Drew Walters" <de...@gmail.com>
> > >>>wrote:
> > >>> >>> >>> >>
> > >>> >>> >>> >>>Ok, I've submitted two pull requests which resolve
> numbers 3
> > >>> >>>and 4
> > >>> >>> >>>from
> > >>> >>> >>> >>>my list:
> > >>> >>> >>> >>>
> > >>> >>> >>> >>>3. Restore camera and capture native functionality.
> > >>> >>> >>> >>>
> https://github.com/callback/callback-blackberry/pull/13
> > >>> >>> >>> >>>
> > >>> >>> >>> >>>4. Delete duplicate blackberry.identity and
> > >>>blackberry.system
> > >>> >>> feature
> > >>> >>> >>> >>>ids in config.xml.
> > >>> >>> >>> >>>
> > >>>
> > >>>
> > >
> >
> >
>



-- 
Gord Tanner
Senior Developer / Code Poet
tinyHippos Inc.
@tinyhippos

Re: Playbook code merge discussion

Posted by Michael Brooks <mi...@michaelbrooks.ca>.
>
> Once deployed to an actual Playbook, callback tests and even the sample
> app don't run at all. Identical code working fine on the simulator. Crap :/


Ouch.

I remember kicking up the sample application on my PlayBook and seeing the
confirm dialog. So, you may want to double check the application on a
production PlayBook.

Regardless, until we can test further, I agree that we shouldn't claim
PlayBook support. *sad panda*

Michael

2011/12/18 Filip Maj <fi...@adobe.com>

> Well, regarding PlayBook support I spoke too soon.
>
> I ended up resuscitating the discharged Playbook I had by a combination of
> hard resets and firmware reloads. Wasn't easy!
>
> Once deployed to an actual Playbook, callback tests and even the sample
> app don't run at all. Identical code working fine on the simulator. Crap :/
>
> I hooked up the built-in Web Inspector support on the PlayBook (which is
> rad, btw) but can't really tell what is going on other than some of the
> built-in system foreground/background callbacks were throwing an
> exception. This isn't any of our code, so I can't see the source that is
> causing the exception, I can only try to catch uncaught exceptions in web
> inspector and deduce what is going on that way... So, yeah, not much can
> be discerned. So Inspector just ends up reporting "TypeError: Result of
> expression 'response' [null] is not an object."
>
> I think until I can figure out/set myself up on how to debug the native
> extensions on the PB and find out what is breaking stuff on the actual
> device, we shouldn't claim any Playbook support...
>
> On 11-12-18 2:10 PM, "Filip Maj" <fi...@adobe.com> wrote:
>
> >Hey all
> >
> >Merge looks fine. Works well on the smartphone. Can't test on a playbook
> >device (waiting on signing keys) but I will once I get them. In any case,
> >pretty much everything but the File API was working fine on the playbook
> >sim.
> >
> >Still some issues to work out but they are documented. Based on the issue
> >tracker we've got some work to do in 2012!
> >
> >On 11-12-17 11:49 AM, "Drew Walters" <pu...@gmail.com> wrote:
> >
> >>Thanks. That's awesome. Good luck.
> >>On Dec 17, 2011 1:41 PM, "Filip Maj" <fi...@adobe.com> wrote:
> >>
> >>> Shit my bad guys.
> >>>
> >>> I'll merge the two pull requests shortly and re-test using the "manual"
> >>> tests that are present in callback-test.
> >>>
> >>> If everything is cool then I'll retag.
> >>>
> >>> On 11-12-17 11:25 AM, "Drew Walters" <pu...@gmail.com> wrote:
> >>>
> >>> >I spent time the last two days setting up and testing on playbook
> >>> >simulator
> >>> >but was unable to get the camera API to work with or without my
> >>>change.
> >>> >Not
> >>> >sure if the simulator has an issue or what but I have been unable to
> >>> >properly test it on playbook. I stepped through the JavaScript and was
> >>> >getting a null response in one of the internal blackberry webworks
> >>>API.
> >>> >
> >>> >On Saturday, December 17, 2011, Michael Brooks
> >>><mi...@michaelbrooks.ca>
> >>> >wrote:
> >>> >> Drew, since you know how to replicate the issues, can you apply
> >>>these
> >>> >>two
> >>> >> pull requests, test on both platforms, and push to the master repo?
> >>> >>
> >>> >> If everything is fine, then we can retag callback-blackberry.
> >>> >>
> >>> >> Michael
> >>> >>
> >>> >> On Fri, Dec 16, 2011 at 6:12 PM, Drew Walters <de...@gmail.com>
> >>> >>wrote:
> >>> >>
> >>> >>> Fil, it doesn't look like my pull requests have been merged in.
> >>> >>> Without the pull request with the capture and camera fix, the
> >>> >>> BlackBerry code would be a regression.  Not sure which tests you
> >>>are
> >>> >>> referring to, maybe the automated tests?  Those tests must not
> >>> >>> exercise the issues that exist.  Namely, recording audio input,
> >>> >>> reporting supported format types, specifying camera image size and
> >>> >>> some others.
> >>> >>>
> >>> >>> On Fri, Dec 16, 2011 at 6:30 PM, Filip Maj <fi...@adobe.com> wrote:
> >>> >>> > Alright cool I'll tag shortly and update on the "don¹t forget to
> >>>tag"
> >>> >>> > thread :P
> >>> >>> >
> >>> >>> > On 11-12-16 4:00 PM, "Dave Johnson" <da...@gmail.com>
> >>> wrote:
> >>> >>> >
> >>> >>> >>+1 that sounds good to me.
> >>> >>> >>On Dec 16, 2011 3:39 PM, "Filip Maj" <fi...@adobe.com> wrote:
> >>> >>> >>
> >>> >>> >>> One more note on the PlayBook failing tests: pretty much all of
> >>>the
> >>> >>> >>> failing tests on PlayBook are related to the File API, which I
> >>>seem
> >>> >to
> >>> >>> >>> recall the RIM calls explicitly telling me when they were
> >>>working
> >>> >>>on
> >>> >>> >>>it...
> >>> >>> >>>
> >>> >>> >>> APIs such as GPS, Accel, Network, Notification, Contacts all
> >>>seem
> >>> >>>to
> >>> >be
> >>> >>> >>> working according to the tests.
> >>> >>> >>>
> >>> >>> >>> So, once more, in terms of release notes for 1.3 maybe we can
> >>>say
> >>> >>> "Basic
> >>> >>> >>> Playbook support, minus the File API" ?
> >>> >>> >>>
> >>> >>> >>> On 11-12-16 3:34 PM, "Filip Maj" <fi...@adobe.com> wrote:
> >>> >>> >>>
> >>> >>> >>> >Hey guys,
> >>> >>> >>> >
> >>> >>> >>> >Quick update on the state of the BB implementations for 1.3.
> >>> >>> >>> >
> >>> >>> >>> >1.3.0rc2 currently has approximately 95% of the PhoneGap API
> >>>tests
> >>> >>> >>>passing
> >>> >>> >>> >on the smartphone, and just over half passing on the PlayBook
> >>> >>> >>>simulator. I
> >>> >>> >>> >don't have a working PlayBook device so rocking the sim -
> >>>which
> >>> >>>may
> >>> >>> >>>not be
> >>> >>> >>> >giving us a true reflection of the state of callback/cordova
> >>>on
> >>> >>>the
> >>> >>> >>> >playbook.
> >>> >>> >>> >
> >>> >>> >>> >So, obviously some issues on the playbook that I am working
> >>> >>>through
> >>> >to
> >>> >>> >>> >document and fix, but no regressions on the smartphone.
> >>> >>> >>> >
> >>> >>> >>> >Is that good to tag? I'll be documenting both smartphone and
> >>> >playbook
> >>> >>> >>> >issues. Marketing/release notes-wise, can we label 1.3.0 as
> >>>having
> >>> >>> >>>"basic
> >>> >>> >>> >PlayBook support", or what do we do with respect to that?
> >>> >>> >>> >
> >>> >>> >>> >On 11-12-15 1:30 PM, "Filip Maj" <fi...@adobe.com> wrote:
> >>> >>> >>> >
> >>> >>> >>> >>Drew, thanks for the clarification. I am going to
> >>>double-check
> >>> >>>both
> >>> >>> >>> >>playbook and smartphone implementations and make sure we are
> >>> >>>golden
> >>> >>> >>> >>before
> >>> >>> >>> >>tomorrow.
> >>> >>> >>> >>
> >>> >>> >>> >>On 11-12-15 8:59 AM, "Drew Walters" <de...@gmail.com>
> >>>wrote:
> >>> >>> >>> >>
> >>> >>> >>> >>>Ok, I've submitted two pull requests which resolve numbers 3
> >>> >>>and 4
> >>> >>> >>>from
> >>> >>> >>> >>>my list:
> >>> >>> >>> >>>
> >>> >>> >>> >>>3. Restore camera and capture native functionality.
> >>> >>> >>> >>>    https://github.com/callback/callback-blackberry/pull/13
> >>> >>> >>> >>>
> >>> >>> >>> >>>4. Delete duplicate blackberry.identity and
> >>>blackberry.system
> >>> >>> feature
> >>> >>> >>> >>>ids in config.xml.
> >>> >>> >>> >>>
> >>>
> >>>
> >
>
>

Re: Playbook code merge discussion

Posted by Filip Maj <fi...@adobe.com>.
Well, regarding PlayBook support I spoke too soon.

I ended up resuscitating the discharged Playbook I had by a combination of
hard resets and firmware reloads. Wasn't easy!

Once deployed to an actual Playbook, callback tests and even the sample
app don't run at all. Identical code working fine on the simulator. Crap :/

I hooked up the built-in Web Inspector support on the PlayBook (which is
rad, btw) but can't really tell what is going on other than some of the
built-in system foreground/background callbacks were throwing an
exception. This isn't any of our code, so I can't see the source that is
causing the exception, I can only try to catch uncaught exceptions in web
inspector and deduce what is going on that way... So, yeah, not much can
be discerned. So Inspector just ends up reporting "TypeError: Result of
expression 'response' [null] is not an object."

I think until I can figure out/set myself up on how to debug the native
extensions on the PB and find out what is breaking stuff on the actual
device, we shouldn't claim any Playbook support...

On 11-12-18 2:10 PM, "Filip Maj" <fi...@adobe.com> wrote:

>Hey all
>
>Merge looks fine. Works well on the smartphone. Can't test on a playbook
>device (waiting on signing keys) but I will once I get them. In any case,
>pretty much everything but the File API was working fine on the playbook
>sim.
>
>Still some issues to work out but they are documented. Based on the issue
>tracker we've got some work to do in 2012!
>
>On 11-12-17 11:49 AM, "Drew Walters" <pu...@gmail.com> wrote:
>
>>Thanks. That's awesome. Good luck.
>>On Dec 17, 2011 1:41 PM, "Filip Maj" <fi...@adobe.com> wrote:
>>
>>> Shit my bad guys.
>>>
>>> I'll merge the two pull requests shortly and re-test using the "manual"
>>> tests that are present in callback-test.
>>>
>>> If everything is cool then I'll retag.
>>>
>>> On 11-12-17 11:25 AM, "Drew Walters" <pu...@gmail.com> wrote:
>>>
>>> >I spent time the last two days setting up and testing on playbook
>>> >simulator
>>> >but was unable to get the camera API to work with or without my
>>>change.
>>> >Not
>>> >sure if the simulator has an issue or what but I have been unable to
>>> >properly test it on playbook. I stepped through the JavaScript and was
>>> >getting a null response in one of the internal blackberry webworks
>>>API.
>>> >
>>> >On Saturday, December 17, 2011, Michael Brooks
>>><mi...@michaelbrooks.ca>
>>> >wrote:
>>> >> Drew, since you know how to replicate the issues, can you apply
>>>these
>>> >>two
>>> >> pull requests, test on both platforms, and push to the master repo?
>>> >>
>>> >> If everything is fine, then we can retag callback-blackberry.
>>> >>
>>> >> Michael
>>> >>
>>> >> On Fri, Dec 16, 2011 at 6:12 PM, Drew Walters <de...@gmail.com>
>>> >>wrote:
>>> >>
>>> >>> Fil, it doesn't look like my pull requests have been merged in.
>>> >>> Without the pull request with the capture and camera fix, the
>>> >>> BlackBerry code would be a regression.  Not sure which tests you
>>>are
>>> >>> referring to, maybe the automated tests?  Those tests must not
>>> >>> exercise the issues that exist.  Namely, recording audio input,
>>> >>> reporting supported format types, specifying camera image size and
>>> >>> some others.
>>> >>>
>>> >>> On Fri, Dec 16, 2011 at 6:30 PM, Filip Maj <fi...@adobe.com> wrote:
>>> >>> > Alright cool I'll tag shortly and update on the "don¹t forget to
>>>tag"
>>> >>> > thread :P
>>> >>> >
>>> >>> > On 11-12-16 4:00 PM, "Dave Johnson" <da...@gmail.com>
>>> wrote:
>>> >>> >
>>> >>> >>+1 that sounds good to me.
>>> >>> >>On Dec 16, 2011 3:39 PM, "Filip Maj" <fi...@adobe.com> wrote:
>>> >>> >>
>>> >>> >>> One more note on the PlayBook failing tests: pretty much all of
>>>the
>>> >>> >>> failing tests on PlayBook are related to the File API, which I
>>>seem
>>> >to
>>> >>> >>> recall the RIM calls explicitly telling me when they were
>>>working
>>> >>>on
>>> >>> >>>it...
>>> >>> >>>
>>> >>> >>> APIs such as GPS, Accel, Network, Notification, Contacts all
>>>seem
>>> >>>to
>>> >be
>>> >>> >>> working according to the tests.
>>> >>> >>>
>>> >>> >>> So, once more, in terms of release notes for 1.3 maybe we can
>>>say
>>> >>> "Basic
>>> >>> >>> Playbook support, minus the File API" ?
>>> >>> >>>
>>> >>> >>> On 11-12-16 3:34 PM, "Filip Maj" <fi...@adobe.com> wrote:
>>> >>> >>>
>>> >>> >>> >Hey guys,
>>> >>> >>> >
>>> >>> >>> >Quick update on the state of the BB implementations for 1.3.
>>> >>> >>> >
>>> >>> >>> >1.3.0rc2 currently has approximately 95% of the PhoneGap API
>>>tests
>>> >>> >>>passing
>>> >>> >>> >on the smartphone, and just over half passing on the PlayBook
>>> >>> >>>simulator. I
>>> >>> >>> >don't have a working PlayBook device so rocking the sim -
>>>which
>>> >>>may
>>> >>> >>>not be
>>> >>> >>> >giving us a true reflection of the state of callback/cordova
>>>on
>>> >>>the
>>> >>> >>> >playbook.
>>> >>> >>> >
>>> >>> >>> >So, obviously some issues on the playbook that I am working
>>> >>>through
>>> >to
>>> >>> >>> >document and fix, but no regressions on the smartphone.
>>> >>> >>> >
>>> >>> >>> >Is that good to tag? I'll be documenting both smartphone and
>>> >playbook
>>> >>> >>> >issues. Marketing/release notes-wise, can we label 1.3.0 as
>>>having
>>> >>> >>>"basic
>>> >>> >>> >PlayBook support", or what do we do with respect to that?
>>> >>> >>> >
>>> >>> >>> >On 11-12-15 1:30 PM, "Filip Maj" <fi...@adobe.com> wrote:
>>> >>> >>> >
>>> >>> >>> >>Drew, thanks for the clarification. I am going to
>>>double-check
>>> >>>both
>>> >>> >>> >>playbook and smartphone implementations and make sure we are
>>> >>>golden
>>> >>> >>> >>before
>>> >>> >>> >>tomorrow.
>>> >>> >>> >>
>>> >>> >>> >>On 11-12-15 8:59 AM, "Drew Walters" <de...@gmail.com>
>>>wrote:
>>> >>> >>> >>
>>> >>> >>> >>>Ok, I've submitted two pull requests which resolve numbers 3
>>> >>>and 4
>>> >>> >>>from
>>> >>> >>> >>>my list:
>>> >>> >>> >>>
>>> >>> >>> >>>3. Restore camera and capture native functionality.
>>> >>> >>> >>>    https://github.com/callback/callback-blackberry/pull/13
>>> >>> >>> >>>
>>> >>> >>> >>>4. Delete duplicate blackberry.identity and
>>>blackberry.system
>>> >>> feature
>>> >>> >>> >>>ids in config.xml.
>>> >>> >>> >>>
>>>
>>>
>


Re: Playbook code merge discussion

Posted by Filip Maj <fi...@adobe.com>.
Hey all

Merge looks fine. Works well on the smartphone. Can't test on a playbook
device (waiting on signing keys) but I will once I get them. In any case,
pretty much everything but the File API was working fine on the playbook
sim.

Still some issues to work out but they are documented. Based on the issue
tracker we've got some work to do in 2012!

On 11-12-17 11:49 AM, "Drew Walters" <pu...@gmail.com> wrote:

>Thanks. That's awesome. Good luck.
>On Dec 17, 2011 1:41 PM, "Filip Maj" <fi...@adobe.com> wrote:
>
>> Shit my bad guys.
>>
>> I'll merge the two pull requests shortly and re-test using the "manual"
>> tests that are present in callback-test.
>>
>> If everything is cool then I'll retag.
>>
>> On 11-12-17 11:25 AM, "Drew Walters" <pu...@gmail.com> wrote:
>>
>> >I spent time the last two days setting up and testing on playbook
>> >simulator
>> >but was unable to get the camera API to work with or without my change.
>> >Not
>> >sure if the simulator has an issue or what but I have been unable to
>> >properly test it on playbook. I stepped through the JavaScript and was
>> >getting a null response in one of the internal blackberry webworks API.
>> >
>> >On Saturday, December 17, 2011, Michael Brooks
>><mi...@michaelbrooks.ca>
>> >wrote:
>> >> Drew, since you know how to replicate the issues, can you apply these
>> >>two
>> >> pull requests, test on both platforms, and push to the master repo?
>> >>
>> >> If everything is fine, then we can retag callback-blackberry.
>> >>
>> >> Michael
>> >>
>> >> On Fri, Dec 16, 2011 at 6:12 PM, Drew Walters <de...@gmail.com>
>> >>wrote:
>> >>
>> >>> Fil, it doesn't look like my pull requests have been merged in.
>> >>> Without the pull request with the capture and camera fix, the
>> >>> BlackBerry code would be a regression.  Not sure which tests you are
>> >>> referring to, maybe the automated tests?  Those tests must not
>> >>> exercise the issues that exist.  Namely, recording audio input,
>> >>> reporting supported format types, specifying camera image size and
>> >>> some others.
>> >>>
>> >>> On Fri, Dec 16, 2011 at 6:30 PM, Filip Maj <fi...@adobe.com> wrote:
>> >>> > Alright cool I'll tag shortly and update on the "don¹t forget to
>>tag"
>> >>> > thread :P
>> >>> >
>> >>> > On 11-12-16 4:00 PM, "Dave Johnson" <da...@gmail.com>
>> wrote:
>> >>> >
>> >>> >>+1 that sounds good to me.
>> >>> >>On Dec 16, 2011 3:39 PM, "Filip Maj" <fi...@adobe.com> wrote:
>> >>> >>
>> >>> >>> One more note on the PlayBook failing tests: pretty much all of
>>the
>> >>> >>> failing tests on PlayBook are related to the File API, which I
>>seem
>> >to
>> >>> >>> recall the RIM calls explicitly telling me when they were
>>working
>> >>>on
>> >>> >>>it...
>> >>> >>>
>> >>> >>> APIs such as GPS, Accel, Network, Notification, Contacts all
>>seem
>> >>>to
>> >be
>> >>> >>> working according to the tests.
>> >>> >>>
>> >>> >>> So, once more, in terms of release notes for 1.3 maybe we can
>>say
>> >>> "Basic
>> >>> >>> Playbook support, minus the File API" ?
>> >>> >>>
>> >>> >>> On 11-12-16 3:34 PM, "Filip Maj" <fi...@adobe.com> wrote:
>> >>> >>>
>> >>> >>> >Hey guys,
>> >>> >>> >
>> >>> >>> >Quick update on the state of the BB implementations for 1.3.
>> >>> >>> >
>> >>> >>> >1.3.0rc2 currently has approximately 95% of the PhoneGap API
>>tests
>> >>> >>>passing
>> >>> >>> >on the smartphone, and just over half passing on the PlayBook
>> >>> >>>simulator. I
>> >>> >>> >don't have a working PlayBook device so rocking the sim - which
>> >>>may
>> >>> >>>not be
>> >>> >>> >giving us a true reflection of the state of callback/cordova on
>> >>>the
>> >>> >>> >playbook.
>> >>> >>> >
>> >>> >>> >So, obviously some issues on the playbook that I am working
>> >>>through
>> >to
>> >>> >>> >document and fix, but no regressions on the smartphone.
>> >>> >>> >
>> >>> >>> >Is that good to tag? I'll be documenting both smartphone and
>> >playbook
>> >>> >>> >issues. Marketing/release notes-wise, can we label 1.3.0 as
>>having
>> >>> >>>"basic
>> >>> >>> >PlayBook support", or what do we do with respect to that?
>> >>> >>> >
>> >>> >>> >On 11-12-15 1:30 PM, "Filip Maj" <fi...@adobe.com> wrote:
>> >>> >>> >
>> >>> >>> >>Drew, thanks for the clarification. I am going to double-check
>> >>>both
>> >>> >>> >>playbook and smartphone implementations and make sure we are
>> >>>golden
>> >>> >>> >>before
>> >>> >>> >>tomorrow.
>> >>> >>> >>
>> >>> >>> >>On 11-12-15 8:59 AM, "Drew Walters" <de...@gmail.com>
>>wrote:
>> >>> >>> >>
>> >>> >>> >>>Ok, I've submitted two pull requests which resolve numbers 3
>> >>>and 4
>> >>> >>>from
>> >>> >>> >>>my list:
>> >>> >>> >>>
>> >>> >>> >>>3. Restore camera and capture native functionality.
>> >>> >>> >>>    https://github.com/callback/callback-blackberry/pull/13
>> >>> >>> >>>
>> >>> >>> >>>4. Delete duplicate blackberry.identity and blackberry.system
>> >>> feature
>> >>> >>> >>>ids in config.xml.
>> >>> >>> >>>
>>
>>


Re: Playbook code merge discussion

Posted by Drew Walters <pu...@gmail.com>.
Thanks. That's awesome. Good luck.
On Dec 17, 2011 1:41 PM, "Filip Maj" <fi...@adobe.com> wrote:

> Shit my bad guys.
>
> I'll merge the two pull requests shortly and re-test using the "manual"
> tests that are present in callback-test.
>
> If everything is cool then I'll retag.
>
> On 11-12-17 11:25 AM, "Drew Walters" <pu...@gmail.com> wrote:
>
> >I spent time the last two days setting up and testing on playbook
> >simulator
> >but was unable to get the camera API to work with or without my change.
> >Not
> >sure if the simulator has an issue or what but I have been unable to
> >properly test it on playbook. I stepped through the JavaScript and was
> >getting a null response in one of the internal blackberry webworks API.
> >
> >On Saturday, December 17, 2011, Michael Brooks <mi...@michaelbrooks.ca>
> >wrote:
> >> Drew, since you know how to replicate the issues, can you apply these
> >>two
> >> pull requests, test on both platforms, and push to the master repo?
> >>
> >> If everything is fine, then we can retag callback-blackberry.
> >>
> >> Michael
> >>
> >> On Fri, Dec 16, 2011 at 6:12 PM, Drew Walters <de...@gmail.com>
> >>wrote:
> >>
> >>> Fil, it doesn't look like my pull requests have been merged in.
> >>> Without the pull request with the capture and camera fix, the
> >>> BlackBerry code would be a regression.  Not sure which tests you are
> >>> referring to, maybe the automated tests?  Those tests must not
> >>> exercise the issues that exist.  Namely, recording audio input,
> >>> reporting supported format types, specifying camera image size and
> >>> some others.
> >>>
> >>> On Fri, Dec 16, 2011 at 6:30 PM, Filip Maj <fi...@adobe.com> wrote:
> >>> > Alright cool I'll tag shortly and update on the "don¹t forget to tag"
> >>> > thread :P
> >>> >
> >>> > On 11-12-16 4:00 PM, "Dave Johnson" <da...@gmail.com>
> wrote:
> >>> >
> >>> >>+1 that sounds good to me.
> >>> >>On Dec 16, 2011 3:39 PM, "Filip Maj" <fi...@adobe.com> wrote:
> >>> >>
> >>> >>> One more note on the PlayBook failing tests: pretty much all of the
> >>> >>> failing tests on PlayBook are related to the File API, which I seem
> >to
> >>> >>> recall the RIM calls explicitly telling me when they were working
> >>>on
> >>> >>>it...
> >>> >>>
> >>> >>> APIs such as GPS, Accel, Network, Notification, Contacts all seem
> >>>to
> >be
> >>> >>> working according to the tests.
> >>> >>>
> >>> >>> So, once more, in terms of release notes for 1.3 maybe we can say
> >>> "Basic
> >>> >>> Playbook support, minus the File API" ?
> >>> >>>
> >>> >>> On 11-12-16 3:34 PM, "Filip Maj" <fi...@adobe.com> wrote:
> >>> >>>
> >>> >>> >Hey guys,
> >>> >>> >
> >>> >>> >Quick update on the state of the BB implementations for 1.3.
> >>> >>> >
> >>> >>> >1.3.0rc2 currently has approximately 95% of the PhoneGap API tests
> >>> >>>passing
> >>> >>> >on the smartphone, and just over half passing on the PlayBook
> >>> >>>simulator. I
> >>> >>> >don't have a working PlayBook device so rocking the sim - which
> >>>may
> >>> >>>not be
> >>> >>> >giving us a true reflection of the state of callback/cordova on
> >>>the
> >>> >>> >playbook.
> >>> >>> >
> >>> >>> >So, obviously some issues on the playbook that I am working
> >>>through
> >to
> >>> >>> >document and fix, but no regressions on the smartphone.
> >>> >>> >
> >>> >>> >Is that good to tag? I'll be documenting both smartphone and
> >playbook
> >>> >>> >issues. Marketing/release notes-wise, can we label 1.3.0 as having
> >>> >>>"basic
> >>> >>> >PlayBook support", or what do we do with respect to that?
> >>> >>> >
> >>> >>> >On 11-12-15 1:30 PM, "Filip Maj" <fi...@adobe.com> wrote:
> >>> >>> >
> >>> >>> >>Drew, thanks for the clarification. I am going to double-check
> >>>both
> >>> >>> >>playbook and smartphone implementations and make sure we are
> >>>golden
> >>> >>> >>before
> >>> >>> >>tomorrow.
> >>> >>> >>
> >>> >>> >>On 11-12-15 8:59 AM, "Drew Walters" <de...@gmail.com> wrote:
> >>> >>> >>
> >>> >>> >>>Ok, I've submitted two pull requests which resolve numbers 3
> >>>and 4
> >>> >>>from
> >>> >>> >>>my list:
> >>> >>> >>>
> >>> >>> >>>3. Restore camera and capture native functionality.
> >>> >>> >>>    https://github.com/callback/callback-blackberry/pull/13
> >>> >>> >>>
> >>> >>> >>>4. Delete duplicate blackberry.identity and blackberry.system
> >>> feature
> >>> >>> >>>ids in config.xml.
> >>> >>> >>>
>
>

Re: Playbook code merge discussion

Posted by Filip Maj <fi...@adobe.com>.
Shit my bad guys.

I'll merge the two pull requests shortly and re-test using the "manual"
tests that are present in callback-test.

If everything is cool then I'll retag.

On 11-12-17 11:25 AM, "Drew Walters" <pu...@gmail.com> wrote:

>I spent time the last two days setting up and testing on playbook
>simulator
>but was unable to get the camera API to work with or without my change.
>Not
>sure if the simulator has an issue or what but I have been unable to
>properly test it on playbook. I stepped through the JavaScript and was
>getting a null response in one of the internal blackberry webworks API.
>
>On Saturday, December 17, 2011, Michael Brooks <mi...@michaelbrooks.ca>
>wrote:
>> Drew, since you know how to replicate the issues, can you apply these
>>two
>> pull requests, test on both platforms, and push to the master repo?
>>
>> If everything is fine, then we can retag callback-blackberry.
>>
>> Michael
>>
>> On Fri, Dec 16, 2011 at 6:12 PM, Drew Walters <de...@gmail.com>
>>wrote:
>>
>>> Fil, it doesn't look like my pull requests have been merged in.
>>> Without the pull request with the capture and camera fix, the
>>> BlackBerry code would be a regression.  Not sure which tests you are
>>> referring to, maybe the automated tests?  Those tests must not
>>> exercise the issues that exist.  Namely, recording audio input,
>>> reporting supported format types, specifying camera image size and
>>> some others.
>>>
>>> On Fri, Dec 16, 2011 at 6:30 PM, Filip Maj <fi...@adobe.com> wrote:
>>> > Alright cool I'll tag shortly and update on the "don¹t forget to tag"
>>> > thread :P
>>> >
>>> > On 11-12-16 4:00 PM, "Dave Johnson" <da...@gmail.com> wrote:
>>> >
>>> >>+1 that sounds good to me.
>>> >>On Dec 16, 2011 3:39 PM, "Filip Maj" <fi...@adobe.com> wrote:
>>> >>
>>> >>> One more note on the PlayBook failing tests: pretty much all of the
>>> >>> failing tests on PlayBook are related to the File API, which I seem
>to
>>> >>> recall the RIM calls explicitly telling me when they were working
>>>on
>>> >>>it...
>>> >>>
>>> >>> APIs such as GPS, Accel, Network, Notification, Contacts all seem
>>>to
>be
>>> >>> working according to the tests.
>>> >>>
>>> >>> So, once more, in terms of release notes for 1.3 maybe we can say
>>> "Basic
>>> >>> Playbook support, minus the File API" ?
>>> >>>
>>> >>> On 11-12-16 3:34 PM, "Filip Maj" <fi...@adobe.com> wrote:
>>> >>>
>>> >>> >Hey guys,
>>> >>> >
>>> >>> >Quick update on the state of the BB implementations for 1.3.
>>> >>> >
>>> >>> >1.3.0rc2 currently has approximately 95% of the PhoneGap API tests
>>> >>>passing
>>> >>> >on the smartphone, and just over half passing on the PlayBook
>>> >>>simulator. I
>>> >>> >don't have a working PlayBook device so rocking the sim - which
>>>may
>>> >>>not be
>>> >>> >giving us a true reflection of the state of callback/cordova on
>>>the
>>> >>> >playbook.
>>> >>> >
>>> >>> >So, obviously some issues on the playbook that I am working
>>>through
>to
>>> >>> >document and fix, but no regressions on the smartphone.
>>> >>> >
>>> >>> >Is that good to tag? I'll be documenting both smartphone and
>playbook
>>> >>> >issues. Marketing/release notes-wise, can we label 1.3.0 as having
>>> >>>"basic
>>> >>> >PlayBook support", or what do we do with respect to that?
>>> >>> >
>>> >>> >On 11-12-15 1:30 PM, "Filip Maj" <fi...@adobe.com> wrote:
>>> >>> >
>>> >>> >>Drew, thanks for the clarification. I am going to double-check
>>>both
>>> >>> >>playbook and smartphone implementations and make sure we are
>>>golden
>>> >>> >>before
>>> >>> >>tomorrow.
>>> >>> >>
>>> >>> >>On 11-12-15 8:59 AM, "Drew Walters" <de...@gmail.com> wrote:
>>> >>> >>
>>> >>> >>>Ok, I've submitted two pull requests which resolve numbers 3
>>>and 4
>>> >>>from
>>> >>> >>>my list:
>>> >>> >>>
>>> >>> >>>3. Restore camera and capture native functionality.
>>> >>> >>>    https://github.com/callback/callback-blackberry/pull/13
>>> >>> >>>
>>> >>> >>>4. Delete duplicate blackberry.identity and blackberry.system
>>> feature
>>> >>> >>>ids in config.xml.
>>> >>> >>>


Re: Playbook code merge discussion

Posted by Drew Walters <pu...@gmail.com>.
I spent time the last two days setting up and testing on playbook simulator
but was unable to get the camera API to work with or without my change. Not
sure if the simulator has an issue or what but I have been unable to
properly test it on playbook. I stepped through the JavaScript and was
getting a null response in one of the internal blackberry webworks API.

On Saturday, December 17, 2011, Michael Brooks <mi...@michaelbrooks.ca>
wrote:
> Drew, since you know how to replicate the issues, can you apply these two
> pull requests, test on both platforms, and push to the master repo?
>
> If everything is fine, then we can retag callback-blackberry.
>
> Michael
>
> On Fri, Dec 16, 2011 at 6:12 PM, Drew Walters <de...@gmail.com> wrote:
>
>> Fil, it doesn't look like my pull requests have been merged in.
>> Without the pull request with the capture and camera fix, the
>> BlackBerry code would be a regression.  Not sure which tests you are
>> referring to, maybe the automated tests?  Those tests must not
>> exercise the issues that exist.  Namely, recording audio input,
>> reporting supported format types, specifying camera image size and
>> some others.
>>
>> On Fri, Dec 16, 2011 at 6:30 PM, Filip Maj <fi...@adobe.com> wrote:
>> > Alright cool I'll tag shortly and update on the "don¹t forget to tag"
>> > thread :P
>> >
>> > On 11-12-16 4:00 PM, "Dave Johnson" <da...@gmail.com> wrote:
>> >
>> >>+1 that sounds good to me.
>> >>On Dec 16, 2011 3:39 PM, "Filip Maj" <fi...@adobe.com> wrote:
>> >>
>> >>> One more note on the PlayBook failing tests: pretty much all of the
>> >>> failing tests on PlayBook are related to the File API, which I seem
to
>> >>> recall the RIM calls explicitly telling me when they were working on
>> >>>it...
>> >>>
>> >>> APIs such as GPS, Accel, Network, Notification, Contacts all seem to
be
>> >>> working according to the tests.
>> >>>
>> >>> So, once more, in terms of release notes for 1.3 maybe we can say
>> "Basic
>> >>> Playbook support, minus the File API" ?
>> >>>
>> >>> On 11-12-16 3:34 PM, "Filip Maj" <fi...@adobe.com> wrote:
>> >>>
>> >>> >Hey guys,
>> >>> >
>> >>> >Quick update on the state of the BB implementations for 1.3.
>> >>> >
>> >>> >1.3.0rc2 currently has approximately 95% of the PhoneGap API tests
>> >>>passing
>> >>> >on the smartphone, and just over half passing on the PlayBook
>> >>>simulator. I
>> >>> >don't have a working PlayBook device so rocking the sim - which may
>> >>>not be
>> >>> >giving us a true reflection of the state of callback/cordova on the
>> >>> >playbook.
>> >>> >
>> >>> >So, obviously some issues on the playbook that I am working through
to
>> >>> >document and fix, but no regressions on the smartphone.
>> >>> >
>> >>> >Is that good to tag? I'll be documenting both smartphone and
playbook
>> >>> >issues. Marketing/release notes-wise, can we label 1.3.0 as having
>> >>>"basic
>> >>> >PlayBook support", or what do we do with respect to that?
>> >>> >
>> >>> >On 11-12-15 1:30 PM, "Filip Maj" <fi...@adobe.com> wrote:
>> >>> >
>> >>> >>Drew, thanks for the clarification. I am going to double-check both
>> >>> >>playbook and smartphone implementations and make sure we are golden
>> >>> >>before
>> >>> >>tomorrow.
>> >>> >>
>> >>> >>On 11-12-15 8:59 AM, "Drew Walters" <de...@gmail.com> wrote:
>> >>> >>
>> >>> >>>Ok, I've submitted two pull requests which resolve numbers 3 and 4
>> >>>from
>> >>> >>>my list:
>> >>> >>>
>> >>> >>>3. Restore camera and capture native functionality.
>> >>> >>>    https://github.com/callback/callback-blackberry/pull/13
>> >>> >>>
>> >>> >>>4. Delete duplicate blackberry.identity and blackberry.system
>> feature
>> >>> >>>ids in config.xml.
>> >>> >>>

Re: Playbook code merge discussion

Posted by Michael Brooks <mi...@michaelbrooks.ca>.
Drew, since you know how to replicate the issues, can you apply these two
pull requests, test on both platforms, and push to the master repo?

If everything is fine, then we can retag callback-blackberry.

Michael

On Fri, Dec 16, 2011 at 6:12 PM, Drew Walters <de...@gmail.com> wrote:

> Fil, it doesn't look like my pull requests have been merged in.
> Without the pull request with the capture and camera fix, the
> BlackBerry code would be a regression.  Not sure which tests you are
> referring to, maybe the automated tests?  Those tests must not
> exercise the issues that exist.  Namely, recording audio input,
> reporting supported format types, specifying camera image size and
> some others.
>
> On Fri, Dec 16, 2011 at 6:30 PM, Filip Maj <fi...@adobe.com> wrote:
> > Alright cool I'll tag shortly and update on the "don¹t forget to tag"
> > thread :P
> >
> > On 11-12-16 4:00 PM, "Dave Johnson" <da...@gmail.com> wrote:
> >
> >>+1 that sounds good to me.
> >>On Dec 16, 2011 3:39 PM, "Filip Maj" <fi...@adobe.com> wrote:
> >>
> >>> One more note on the PlayBook failing tests: pretty much all of the
> >>> failing tests on PlayBook are related to the File API, which I seem to
> >>> recall the RIM calls explicitly telling me when they were working on
> >>>it...
> >>>
> >>> APIs such as GPS, Accel, Network, Notification, Contacts all seem to be
> >>> working according to the tests.
> >>>
> >>> So, once more, in terms of release notes for 1.3 maybe we can say
> "Basic
> >>> Playbook support, minus the File API" ?
> >>>
> >>> On 11-12-16 3:34 PM, "Filip Maj" <fi...@adobe.com> wrote:
> >>>
> >>> >Hey guys,
> >>> >
> >>> >Quick update on the state of the BB implementations for 1.3.
> >>> >
> >>> >1.3.0rc2 currently has approximately 95% of the PhoneGap API tests
> >>>passing
> >>> >on the smartphone, and just over half passing on the PlayBook
> >>>simulator. I
> >>> >don't have a working PlayBook device so rocking the sim - which may
> >>>not be
> >>> >giving us a true reflection of the state of callback/cordova on the
> >>> >playbook.
> >>> >
> >>> >So, obviously some issues on the playbook that I am working through to
> >>> >document and fix, but no regressions on the smartphone.
> >>> >
> >>> >Is that good to tag? I'll be documenting both smartphone and playbook
> >>> >issues. Marketing/release notes-wise, can we label 1.3.0 as having
> >>>"basic
> >>> >PlayBook support", or what do we do with respect to that?
> >>> >
> >>> >On 11-12-15 1:30 PM, "Filip Maj" <fi...@adobe.com> wrote:
> >>> >
> >>> >>Drew, thanks for the clarification. I am going to double-check both
> >>> >>playbook and smartphone implementations and make sure we are golden
> >>> >>before
> >>> >>tomorrow.
> >>> >>
> >>> >>On 11-12-15 8:59 AM, "Drew Walters" <de...@gmail.com> wrote:
> >>> >>
> >>> >>>Ok, I've submitted two pull requests which resolve numbers 3 and 4
> >>>from
> >>> >>>my list:
> >>> >>>
> >>> >>>3. Restore camera and capture native functionality.
> >>> >>>    https://github.com/callback/callback-blackberry/pull/13
> >>> >>>
> >>> >>>4. Delete duplicate blackberry.identity and blackberry.system
> feature
> >>> >>>ids in config.xml.
> >>> >>>    https://github.com/callback/callback-blackberry/pull/12
> >>> >>>
> >>> >>>I tested them on OS 5 and OS 6.  I did not merge them because I did
> >>> >>>not test on Playbook.  They are both trivial changes but would like
> >>> >>>someone else to verify to make sure I haven't broken Playbook.
> >>> >>>
> >>> >>>On Wed, Dec 14, 2011 at 8:07 PM, Ken Wallis <kw...@rim.com>
> wrote:
> >>> >>>> Gord will look to help fix some of these issues over the next few
> >>> >>>>days.
> >>> >>>> I assume we don't have write access to Jira, so should we just put
> >>>on
> >>> >>>>this thread which issues we will take on as we take them on, so as
> >>>not
> >>> >>>>to duplicate effort?
> >>> >>>>
> >>> >>>> ----- Original Message -----
> >>> >>>> From: Dave Johnson [mailto:dave.c.johnson@gmail.com]
> >>> >>>> Sent: Wednesday, December 14, 2011 08:09 PM
> >>> >>>> To: callback-dev@incubator.apache.org
> >>> >>>><ca...@incubator.apache.org>
> >>> >>>> Subject: Re: Playbook code merge discussion
> >>> >>>>
> >>> >>>> Yes it's better if playbook has bugs rather than the smartphone
> >>>having
> >>> >>>> regressions.
> >>> >>>>
> >>> >>>> In that light what's the fastes route to resolution?
> >>> >>>>
> >>> >>>> On Wed, Dec 14, 2011 at 4:42 PM, Drew Walters <deedubbu@gmail.com
> >
> >>> >>>>wrote:
> >>> >>>>> What I am pointing out is regressions in the smartphone
> >>> >>>>>implementation
> >>> >>>>> because of the playbook merge. Everything I listed worked in
> >>>phonegap
> >>> >>>>>1.2.
> >>> >>>>> Not fixing those will break existing apps.
> >>> >>>>> On Dec 14, 2011 6:25 PM, "Filip Maj" <fi...@adobe.com> wrote:
> >>> >>>>>
> >>> >>>>>> I don't think it's a big deal. Yeah some of the APIs are not
> >>> >>>>>>working,
> >>> >>>>>>but
> >>> >>>>>> frankly these same APIs have issues on the regular smartphone
> >>> >>>>>> implementation in callback-blackberry so I don't see the real
> >>> >>>>>>difference.
> >>> >>>>>> If we ship one why not ship both?
> >>> >>>>>>
> >>> >>>>>> Issues are filed for both playbook and smartphone blackberry
> >>> >>>>>> implementations so we know what problems exist. Eventually we
> >>>will
> >>> >>>>>>get to
> >>> >>>>>> them.
> >>> >>>>>>
> >>> >>>>>> Both (smartphone and playbook) approaches work too - if you
> clone
> >>> >>>>>>the
> >>> >>>>>>repo
> >>> >>>>>> down you can build apps for either the playbook or the
> >>>smartphone.
> >>> >>>>>>
> >>> >>>>>>
> >>> >>>>>> On 11-12-14 3:15 PM, "Drew Walters" <de...@gmail.com> wrote:
> >>> >>>>>>
> >>> >>>>>> >Is anyone looking at the changes that need to be made to
> >>>Blackberry
> >>> >>>>>> >based on the Playbook merge?  I will vote to not ship 1.3 until
> >>> >>>>>>some
> >>> >>>>>> >of these issues are fixed.
> >>> >>>>>> >
> >>> >>>>>> >I'll list what I believe must be fixed before 1.3 can ship:
> >>> >>>>>> >
> >>> >>>>>> >1. Delete media.js - Done. I pushed this change and subsequent
> >>> >>>>>> >reordering of phonegap.js concat for dependencies.
> >>> >>>>>> >
> >>> >>>>>> >2. Re-enable console.log to write to event log - I coded up a
> >>> >>>>>>change
> >>> >>>>>> >for this which saved any existing console.log definition and
> >>> >>>>>>re-called
> >>> >>>>>> >after writing to event log.  I have not pushed because I'm not
> >>>sure
> >>> >>>>>> >what the Playbook side should do.  playBookPluginManager.js is
> >>> >>>>>> >defining the Logger plugin to call console.log which would be
> an
> >>> >>>>>> >infinite loop if console.log is overridden with a
> PhoneGap.exec.
> >>> >>>>>> >
> >>> >>>>>> >3. Restore camera and capture native functionality.
> >>> >>>>>> >
> >>> >>>>>> >4. Delete duplicate blackberry.identity and blackberry.system
> >>> >>>>>>feature
> >>> >>>>>> >ids in config.xml.
> >>> >>>>>> >
> >>> >>>>>> >I can live with the other differences though they will require
> >>> >>>>>> >developers to make changes to their projects when they update
> to
> >>> >>>>>>1.3.
> >>> >>>>>> >
> >>> >>>>>> >I'm on vacation for two weeks after this Friday so my time to
> >>>make
> >>> >>>>>> >changes is limited.  I'm hesitant to make any change that might
> >>> >>>>>>affect
> >>> >>>>>> >the Playbook implementation since I don't have a Playbook and
> >>> >>>>>>haven't
> >>> >>>>>> >had a chance to setup the environment.
> >>> >>>>>> >
> >>> >>>>>> >On Wed, Dec 7, 2011 at 9:16 AM, Dan Silivestru
> >>> >>>>>><da...@gmail.com>
> >>> >>>>>> >wrote:
> >>> >>>>>> >> I think blackberry.ui.dialog is used for the notification
> >>>API. At
> >>> >>>>>>least
> >>> >>>>>> >> that's what it looks like to me based on this:
> >>> >>>>>> >>
> >>> >>>>>> >>
> >>> >>>>>> >>
> >>> >>>>>>
> >>> >>>>>>
> >>> https://github.com/callback/callback-blackberry/commit/19c0e686067e36
> >>> >>>>>>a
> >>> >>>>>>5
> >>> >>>>>>63
> >>> >>>>>> >>815435f6ed69ee562dbf9d#L13R194
> >>> >>>>>> >>
> >>> >>>>>> >> Cheers,
> >>> >>>>>> >>
> >>> >>>>>> >> Dan.
> >>> >>>>>> >>
> >>> >>>>>> >> On Tue, Dec 6, 2011 at 1:59 PM, Drew Walters
> >>><deedubbu@gmail.com
> >>> >
> >>> >>>>>> wrote:
> >>> >>>>>> >>
> >>> >>>>>> >>> One other thing I forgot to mention.  Is "playbook" the term
> >>>we
> >>> >>>>>>want
> >>> >>>>>> >>> to reference in the code/build/etc?  I wonder if it would be
> >>> >>>>>>more
> >>> >>>>>> >>> future proof to call this "bbx".  My understanding is that
> >>>the
> >>> >>>>>> >>> Playbook OS and BBX will be one in the same going forward.
> >>> >>>>>>Maybe
> >>> >>>>>>its
> >>> >>>>>> >>> jumping the gun a bit, since BBX isn't available yet, but
> I'd
> >>> >>>>>>hate to
> >>> >>>>>> >>> have to rename in a couple of months.
> >>> >>>>>> >>>
> >>> >>>>>> >>> On Tue, Dec 6, 2011 at 11:56 AM, Michael Brooks
> >>> >>>>>> >>> <mi...@michaelbrooks.ca> wrote:
> >>> >>>>>> >>> > Hi Drew,
> >>> >>>>>> >>> >
> >>> >>>>>> >>> > Thanks for the summary and details on what's changed.
> >>> >>>>>> >>> >
> >>> >>>>>> >>> > All of the Playbook support was added by RIM quite a while
> >>> >>>>>>ago,
> >>> >>>>>>but
> >>> >>>>>> >>>the
> >>> >>>>>> >>> > pull request was only merged in recently. During the
> >>>merge, I
> >>> >>>>>>didn't
> >>> >>>>>> >>>want
> >>> >>>>>> >>> > to make unnecessary changes, so I held off of cleaning up
> >>> >>>>>>parts
> >>> >>>>>>of
> >>> >>>>>> >>>the
> >>> >>>>>> >>> > codebase. Now that we've got Playbook support into the
> >>> >>>>>>BlackBerry
> >>> >>>>>> >>> > repository, we can start discussing and cleaning the
> >>>codebase.
> >>> >>>>>> >>> >
> >>> >>>>>> >>> > A very important note is that we now need to support both
> >>> >>>>>>BlackBerry
> >>> >>>>>> >>>and
> >>> >>>>>> >>> > Playbook. RIM will be handling most of the AIR code, but
> we
> >>> >>>>>>need to
> >>> >>>>>> >>> ensure
> >>> >>>>>> >>> > that JavaScript changes for one platform will not break
> the
> >>> >>>>>>other.
> >>> >>>>>> >>>So,
> >>> >>>>>> >>> all
> >>> >>>>>> >>> > callback-blackberry developers are responsible for
> >>>compiling,
> >>> >>>>>> >>>running,
> >>> >>>>>> >>> and
> >>> >>>>>> >>> > testing both BlackBerry (handheld) and Playbook (tablet).
> >>> >>>>>> >>> >
> >>> >>>>>> >>> > framework/ext/src/library.xml:
> >>> >>>>>> >>> >>    - PhoneGap feature is now "com.phonegap" instead of
> >>> >>>>>>"phonegap".
> >>> >>>>>> >>> >
> >>> >>>>>> >>> >
> >>> >>>>>> >>> > I'd also like a justification for this change. No other
> >>> >>>>>>WebWorks
> >>> >>>>>> >>> extension
> >>> >>>>>> >>> > uses namespaces, so I'm confused why "phonegap" was
> >>>changed to
> >>> >>>>>> >>> > "com.phonegap". If there is no reason, then I would like
> to
> >>> >>>>>>see
> >>> >>>>>>it
> >>> >>>>>> >>> changed
> >>> >>>>>> >>> > back to "phonegap".
> >>> >>>>>> >>> >
> >>> >>>>>> >>> > javascript/capture.js:
> >>> >>>>>> >>> >>    - This is a proper renaming of media.js.
> >>> >>>>>> >>> >>        * Problem is media.js was not deleted so both
> >>> >>>>>>capture.js and
> >>> >>>>>> >>> >> media.js are included and are identical.
> >>> >>>>>> >>> >
> >>> >>>>>> >>> >
> >>> >>>>>> >>> > Good eye. If media.js is redundant, then we should remove
> >>>it.
> >>> >>>>>> >>> >
> >>> >>>>>> >>> > javascript/console.js:
> >>> >>>>>> >>> >>    - console.log is now only defined if console is
> >>>undefined.
> >>> >>>>>> >>> >> Previously console.log was always defined.
> >>> >>>>>> >>> >>        * I've been testing on OS 6 and console.log never
> >>>gets
> >>> >>>>>> >>>defined
> >>> >>>>>> >>> >> since console is defined.  This results in console.log
> not
> >>> >>>>>>working.
> >>> >>>>>> >>> >> I've had to use phonegap.Logger.log instead.
> >>> >>>>>> >>> >
> >>> >>>>>> >>> >
> >>> >>>>>> >>> > Perhaps clobbering console.log was conflicting the the
> >>> >>>>>>built-in
> >>> >>>>>>Web
> >>> >>>>>> >>> > Inspector for Playbook debugging? We should be holding a
> >>> >>>>>>reference
> >>> >>>>>> >>>to the
> >>> >>>>>> >>> > original console.log, overriding it, and then still
> calling
> >>> >>>>>>the
> >>> >>>>>> >>>original
> >>> >>>>>> >>> > reference.
> >>> >>>>>> >>> >
> >>> >>>>>> >>> > template/project/project.properties:
> >>> >>>>>> >>> >>    - Properties previously defined in the file are now
> >>> >>>>>>prefixed with
> >>> >>>>>> >>> >> "blackberry".  New properties added for "playbook".
> >>> >>>>>> >>> >>        * I'm confused by "blackberry.sim.password".
> >>> >>>>>>Description
> >>> >>>>>> >>>says
> >>> >>>>>> >>> >> "If you leave this field blank, then you cannot deploy to
> >>> >>>>>> >>>simulator".
> >>> >>>>>> >>> >> I believe this is misleading since the only usage I see
> >>>for
> >>> >>>>>>it
> >>> >>>>>>in
> >>> >>>>>> >>> >> blackberry.xml is to load the device (not simulator).
> >>> >>>>>> >>> >
> >>> >>>>>> >>> >
> >>> >>>>>> >>> > Agreed. propject.properties has become more complicated
> and
> >>> >>>>>>I'd
> >>> >>>>>>like
> >>> >>>>>> >>>to
> >>> >>>>>> >>> see
> >>> >>>>>> >>> > it simplified. I think it's doable.
> >>> >>>>>> >>> >
> >>> >>>>>> >>> > javascript/webWorksPluginManager.js:
> >>> >>>>>> >>> >>    - Camera and Capture functionality is now handled by
> >>> >>>>>>blackberry
> >>> >>>>>> >>> >> javascript API instead of native plugins.
> >>> >>>>>> >>> >>        * This is a step backwards as the blackberry
> >>> >>>>>>javascript
> >>> >>>>>>API
> >>> >>>>>> >>> >> lacks some features implemented by the native plugins.
> >>>Just
> >>> >>>>>>to
> >>> >>>>>> >>>name a
> >>> >>>>>> >>> >> few: specifying image size for the Camera, and audio
> >>> >>>>>>recording
> >>> >>>>>>for
> >>> >>>>>> >>> >> Capture.
> >>> >>>>>> >>> >
> >>> >>>>>> >>> >
> >>> >>>>>> >>> > My guess is that Playbook uses the WebWorks API, but
> >>> >>>>>>BlackBerry
> >>> >>>>>> >>>should
> >>> >>>>>> >>> not
> >>> >>>>>> >>> > be forced to do the same if it provides additional
> >>> >>>>>>functionality.
> >>> >>>>>> >>> >
> >>> >>>>>> >>> > template/project/build.xml:
> >>> >>>>>> >>> >>    - Build has been split up into blackberry.xml and
> >>> >>>>>>playbook.xml.
> >>> >>>>>> >>> >>    - Building a phone app now requires "ant blackberry
> >>>build"
> >>> >>>>>>where
> >>> >>>>>> >>> >> before it was "ant build".
> >>> >>>>>> >>> >
> >>> >>>>>> >>> >
> >>> >>>>>> >>> > I helped the RIM guys decided on this solution. It was the
> >>> >>>>>>cleanest
> >>> >>>>>> >>> > approach that we could come up with at the same.
> >>> >>>>>> >>> >
> >>> >>>>>> >>> > template/project/www/config.xml:
> >>> >>>>>> >>> >>    - PhoneGap feature is now "com.phonegap" instead of
> >>> >>>>>>"phonegap".
> >>> >>>>>> >>> >>    - New permissions blackberry.media.camera,
> >>> >>>>>>blackberry.identity,
> >>> >>>>>> >>> >> blackberry.ui.dialog, blackberry.system.
> >>> >>>>>> >>> >>        * I'm confused why blackberry.identity and
> >>> >>>>>>blackberry.system
> >>> >>>>>> >>> >> were added since they already exist in the file.  I'm
> also
> >>> >>>>>>not
> >>> >>>>>>sure
> >>> >>>>>> >>> >> what is requiring blackberry.ui.dialog.
> >>> >>>>>> >>> >
> >>> >>>>>> >>> >
> >>> >>>>>> >>> > I'm also confused on the duplication and where
> >>> >>>>>>blackberry.ui.dialog
> >>> >>>>>> >>>is
> >>> >>>>>> >>> used.
> >>> >>>>>> >>> >
> >>> >>>>>> >>> > template/project/www/plugins.xml:
> >>> >>>>>> >>> >>    - "Device" is a new required plugin.
> >>> >>>>>> >>> >
> >>> >>>>>> >>> >
> >>> >>>>>> >>> > Yep
> >>> >>>>>> >>> >
> >>> >>>>>> >>> > There are now issues being logged on the missing Playbook
> >>> >>>>>>APIs.
> >>> >>>>>>Until
> >>> >>>>>> >>> > Playbook supports every PhoneGap API, we should ensure
> >>>that it
> >>> >>>>>>can
> >>> >>>>>> >>> > gracefully fail on the JavaScript side.
> >>> >>>>>> >>> >
> >>> >>>>>> >>> > Thanks again for posting this thread Drew!
> >>> >>>>>> >>> > Michael
> >>> >>>>>> >>> >
> >>> >>>>>> >>> > On Tue, Dec 6, 2011 at 7:49 AM, Drew Walters
> >>> >>>>>><pu...@gmail.com>
> >>> >>>>>> >>>wrote:
> >>> >>>>>> >>> >
> >>> >>>>>> >>> >> I've been playing around with the latest
> >>>callback-blackberry
> >>> >>>>>>code
> >>> >>>>>> >>> >> which has been merged to include playback support and I
> >>>have
> >>> >>>>>>run
> >>> >>>>>> >>>into
> >>> >>>>>> >>> >> some things which are worth noting/discussing/fixing.
>  For
> >>> >>>>>>reference
> >>> >>>>>> >>> >> the code change is here:
> >>> >>>>>> >>> >>
> >>> >>>>>> >>> >>
> >>> >>>>>> >>> >>
> >>> >>>>>> >>>
> >>> >>>>>> >>>
> >>> >>>>>>
> >>> >>>>>>
> >>> https://github.com/callback/callback-blackberry/commit/19c0e686067e36
> >>> >>>>>>a
> >>> >>>>>>5
> >>> >>>>>>6
> >>> >>>>>> >>>3815435f6ed69ee562dbf9d#template/project/www/config.xml
> >>> >>>>>> >>> >>
> >>> >>>>>> >>> >> I've listed below some things which existing BlackBerry
> >>> >>>>>>developers
> >>> >>>>>> >>> >> will need to be made aware of in order to update their
> >>> >>>>>>existing
> >>> >>>>>> >>> >> projects to 1.3. I've also added notes prefixed with '*'
> >>> >>>>>>which
> >>> >>>>>>I
> >>> >>>>>> >>>feel
> >>> >>>>>> >>> >> are defects or at least require further discussion.
> >>> >>>>>> >>> >>
> >>> >>>>>> >>> >> framework/ext/src/library.xml:
> >>> >>>>>> >>> >>    - PhoneGap feature is now "com.phonegap" instead of
> >>> >>>>>>"phonegap".
> >>> >>>>>> >>> >>
> >>> >>>>>> >>> >> javascript/capture.js:
> >>> >>>>>> >>> >>    - This is a proper renaming of media.js.
> >>> >>>>>> >>> >>        * Problem is media.js was not deleted so both
> >>> >>>>>>capture.js and
> >>> >>>>>> >>> >> media.js are included and are identical.
> >>> >>>>>> >>> >>
> >>> >>>>>> >>> >> javascript/console.js:
> >>> >>>>>> >>> >>    - console.log is now only defined if console is
> >>>undefined.
> >>> >>>>>> >>> >> Previously console.log was always defined.
> >>> >>>>>> >>> >>        * I've been testing on OS 6 and console.log never
> >>>gets
> >>> >>>>>> >>>defined
> >>> >>>>>> >>> >> since console is defined.  This results in console.log
> not
> >>> >>>>>>working.
> >>> >>>>>> >>> >> I've had to use phonegap.Logger.log instead.
> >>> >>>>>> >>> >>
> >>> >>>>>> >>> >> template/project/project.properties:
> >>> >>>>>> >>> >>    - Properties previously defined in the file are now
> >>> >>>>>>prefixed with
> >>> >>>>>> >>> >> "blackberry".  New properties added for "playbook".
> >>> >>>>>> >>> >>        * I'm confused by "blackberry.sim.password".
> >>> >>>>>>Description
> >>> >>>>>> >>>says
> >>> >>>>>> >>> >> "If you leave this field blank, then you cannot deploy to
> >>> >>>>>> >>>simulator".
> >>> >>>>>> >>> >> I believe this is misleading since the only usage I see
> >>>for
> >>> >>>>>>it
> >>> >>>>>>in
> >>> >>>>>> >>> >> blackberry.xml is to load the device (not simulator).
> >>> >>>>>> >>> >>
> >>> >>>>>> >>> >> javascript/webWorksPluginManager.js:
> >>> >>>>>> >>> >>    - Camera and Capture functionality is now handled by
> >>> >>>>>>blackberry
> >>> >>>>>> >>> >> javascript API instead of native plugins.
> >>> >>>>>> >>> >>        * This is a step backwards as the blackberry
> >>> >>>>>>javascript
> >>> >>>>>>API
> >>> >>>>>> >>> >> lacks some features implemented by the native plugins.
> >>>Just
> >>> >>>>>>to
> >>> >>>>>> >>>name a
> >>> >>>>>> >>> >> few: specifying image size for the Camera, and audio
> >>> >>>>>>recording
> >>> >>>>>>for
> >>> >>>>>> >>> >> Capture.
> >>> >>>>>> >>> >>
> >>> >>>>>> >>> >> template/project/build.xml:
> >>> >>>>>> >>> >>    - Build has been split up into blackberry.xml and
> >>> >>>>>>playbook.xml.
> >>> >>>>>> >>> >>    - Building a phone app now requires "ant blackberry
> >>>build"
> >>> >>>>>>where
> >>> >>>>>> >>> >> before it was "ant build".
> >>> >>>>>> >>> >>
> >>> >>>>>> >>> >> template/project/www/config.xml:
> >>> >>>>>> >>> >>    - PhoneGap feature is now "com.phonegap" instead of
> >>> >>>>>>"phonegap".
> >>> >>>>>> >>> >>    - New permissions blackberry.media.camera,
> >>> >>>>>>blackberry.identity,
> >>> >>>>>> >>> >> blackberry.ui.dialog, blackberry.system.
> >>> >>>>>> >>> >>        * I'm confused why blackberry.identity and
> >>> >>>>>>blackberry.system
> >>> >>>>>> >>> >> were added since they already exist in the file.  I'm
> also
> >>> >>>>>>not
> >>> >>>>>>sure
> >>> >>>>>> >>> >> what is requiring blackberry.ui.dialog.
> >>> >>>>>> >>> >>
> >>> >>>>>> >>> >> template/project/www/plugins.xml:
> >>> >>>>>> >>> >>    - "Device" is a new required plugin.
> >>> >>>>>> >>> >>
> >>> >>>>>> >>>
> >>> >>>>>> >>
> >>> >>>>>> >>
> >>> >>>>>> >>
> >>> >>>>>> >> --
> >>> >>>>>> >> Dan Silivestru
> >>> >>>>>> >> +1 (519) 589-3624
> >>> >>>>>>
> >>> >>>>>>
> >>> >>>>
> >>> >>>>
> >>>---------------------------------------------------------------------
> >>> >>>> This transmission (including any attachments) may contain
> >>>confidential
> >>> >>>>information, privileged material (including material protected by
> >>>the
> >>> >>>>solicitor-client or other applicable privileges), or constitute
> >>> >>>>non-public information. Any use of this information by anyone other
> >>> >>>>than
> >>> >>>>the intended recipient is prohibited. If you have received this
> >>> >>>>transmission in error, please immediately reply to the sender and
> >>> >>>>delete
> >>> >>>>this information from your system. Use, dissemination,
> >>>distribution, or
> >>> >>>>reproduction of this transmission by unintended recipients is not
> >>> >>>>authorized and may be unlawful.
> >>> >>
> >>> >
> >>>
> >>>
> >
>

Re: Playbook code merge discussion

Posted by Drew Walters <de...@gmail.com>.
Fil, it doesn't look like my pull requests have been merged in.
Without the pull request with the capture and camera fix, the
BlackBerry code would be a regression.  Not sure which tests you are
referring to, maybe the automated tests?  Those tests must not
exercise the issues that exist.  Namely, recording audio input,
reporting supported format types, specifying camera image size and
some others.

On Fri, Dec 16, 2011 at 6:30 PM, Filip Maj <fi...@adobe.com> wrote:
> Alright cool I'll tag shortly and update on the "don¹t forget to tag"
> thread :P
>
> On 11-12-16 4:00 PM, "Dave Johnson" <da...@gmail.com> wrote:
>
>>+1 that sounds good to me.
>>On Dec 16, 2011 3:39 PM, "Filip Maj" <fi...@adobe.com> wrote:
>>
>>> One more note on the PlayBook failing tests: pretty much all of the
>>> failing tests on PlayBook are related to the File API, which I seem to
>>> recall the RIM calls explicitly telling me when they were working on
>>>it...
>>>
>>> APIs such as GPS, Accel, Network, Notification, Contacts all seem to be
>>> working according to the tests.
>>>
>>> So, once more, in terms of release notes for 1.3 maybe we can say "Basic
>>> Playbook support, minus the File API" ?
>>>
>>> On 11-12-16 3:34 PM, "Filip Maj" <fi...@adobe.com> wrote:
>>>
>>> >Hey guys,
>>> >
>>> >Quick update on the state of the BB implementations for 1.3.
>>> >
>>> >1.3.0rc2 currently has approximately 95% of the PhoneGap API tests
>>>passing
>>> >on the smartphone, and just over half passing on the PlayBook
>>>simulator. I
>>> >don't have a working PlayBook device so rocking the sim - which may
>>>not be
>>> >giving us a true reflection of the state of callback/cordova on the
>>> >playbook.
>>> >
>>> >So, obviously some issues on the playbook that I am working through to
>>> >document and fix, but no regressions on the smartphone.
>>> >
>>> >Is that good to tag? I'll be documenting both smartphone and playbook
>>> >issues. Marketing/release notes-wise, can we label 1.3.0 as having
>>>"basic
>>> >PlayBook support", or what do we do with respect to that?
>>> >
>>> >On 11-12-15 1:30 PM, "Filip Maj" <fi...@adobe.com> wrote:
>>> >
>>> >>Drew, thanks for the clarification. I am going to double-check both
>>> >>playbook and smartphone implementations and make sure we are golden
>>> >>before
>>> >>tomorrow.
>>> >>
>>> >>On 11-12-15 8:59 AM, "Drew Walters" <de...@gmail.com> wrote:
>>> >>
>>> >>>Ok, I've submitted two pull requests which resolve numbers 3 and 4
>>>from
>>> >>>my list:
>>> >>>
>>> >>>3. Restore camera and capture native functionality.
>>> >>>    https://github.com/callback/callback-blackberry/pull/13
>>> >>>
>>> >>>4. Delete duplicate blackberry.identity and blackberry.system feature
>>> >>>ids in config.xml.
>>> >>>    https://github.com/callback/callback-blackberry/pull/12
>>> >>>
>>> >>>I tested them on OS 5 and OS 6.  I did not merge them because I did
>>> >>>not test on Playbook.  They are both trivial changes but would like
>>> >>>someone else to verify to make sure I haven't broken Playbook.
>>> >>>
>>> >>>On Wed, Dec 14, 2011 at 8:07 PM, Ken Wallis <kw...@rim.com> wrote:
>>> >>>> Gord will look to help fix some of these issues over the next few
>>> >>>>days.
>>> >>>> I assume we don't have write access to Jira, so should we just put
>>>on
>>> >>>>this thread which issues we will take on as we take them on, so as
>>>not
>>> >>>>to duplicate effort?
>>> >>>>
>>> >>>> ----- Original Message -----
>>> >>>> From: Dave Johnson [mailto:dave.c.johnson@gmail.com]
>>> >>>> Sent: Wednesday, December 14, 2011 08:09 PM
>>> >>>> To: callback-dev@incubator.apache.org
>>> >>>><ca...@incubator.apache.org>
>>> >>>> Subject: Re: Playbook code merge discussion
>>> >>>>
>>> >>>> Yes it's better if playbook has bugs rather than the smartphone
>>>having
>>> >>>> regressions.
>>> >>>>
>>> >>>> In that light what's the fastes route to resolution?
>>> >>>>
>>> >>>> On Wed, Dec 14, 2011 at 4:42 PM, Drew Walters <de...@gmail.com>
>>> >>>>wrote:
>>> >>>>> What I am pointing out is regressions in the smartphone
>>> >>>>>implementation
>>> >>>>> because of the playbook merge. Everything I listed worked in
>>>phonegap
>>> >>>>>1.2.
>>> >>>>> Not fixing those will break existing apps.
>>> >>>>> On Dec 14, 2011 6:25 PM, "Filip Maj" <fi...@adobe.com> wrote:
>>> >>>>>
>>> >>>>>> I don't think it's a big deal. Yeah some of the APIs are not
>>> >>>>>>working,
>>> >>>>>>but
>>> >>>>>> frankly these same APIs have issues on the regular smartphone
>>> >>>>>> implementation in callback-blackberry so I don't see the real
>>> >>>>>>difference.
>>> >>>>>> If we ship one why not ship both?
>>> >>>>>>
>>> >>>>>> Issues are filed for both playbook and smartphone blackberry
>>> >>>>>> implementations so we know what problems exist. Eventually we
>>>will
>>> >>>>>>get to
>>> >>>>>> them.
>>> >>>>>>
>>> >>>>>> Both (smartphone and playbook) approaches work too - if you clone
>>> >>>>>>the
>>> >>>>>>repo
>>> >>>>>> down you can build apps for either the playbook or the
>>>smartphone.
>>> >>>>>>
>>> >>>>>>
>>> >>>>>> On 11-12-14 3:15 PM, "Drew Walters" <de...@gmail.com> wrote:
>>> >>>>>>
>>> >>>>>> >Is anyone looking at the changes that need to be made to
>>>Blackberry
>>> >>>>>> >based on the Playbook merge?  I will vote to not ship 1.3 until
>>> >>>>>>some
>>> >>>>>> >of these issues are fixed.
>>> >>>>>> >
>>> >>>>>> >I'll list what I believe must be fixed before 1.3 can ship:
>>> >>>>>> >
>>> >>>>>> >1. Delete media.js - Done. I pushed this change and subsequent
>>> >>>>>> >reordering of phonegap.js concat for dependencies.
>>> >>>>>> >
>>> >>>>>> >2. Re-enable console.log to write to event log - I coded up a
>>> >>>>>>change
>>> >>>>>> >for this which saved any existing console.log definition and
>>> >>>>>>re-called
>>> >>>>>> >after writing to event log.  I have not pushed because I'm not
>>>sure
>>> >>>>>> >what the Playbook side should do.  playBookPluginManager.js is
>>> >>>>>> >defining the Logger plugin to call console.log which would be an
>>> >>>>>> >infinite loop if console.log is overridden with a PhoneGap.exec.
>>> >>>>>> >
>>> >>>>>> >3. Restore camera and capture native functionality.
>>> >>>>>> >
>>> >>>>>> >4. Delete duplicate blackberry.identity and blackberry.system
>>> >>>>>>feature
>>> >>>>>> >ids in config.xml.
>>> >>>>>> >
>>> >>>>>> >I can live with the other differences though they will require
>>> >>>>>> >developers to make changes to their projects when they update to
>>> >>>>>>1.3.
>>> >>>>>> >
>>> >>>>>> >I'm on vacation for two weeks after this Friday so my time to
>>>make
>>> >>>>>> >changes is limited.  I'm hesitant to make any change that might
>>> >>>>>>affect
>>> >>>>>> >the Playbook implementation since I don't have a Playbook and
>>> >>>>>>haven't
>>> >>>>>> >had a chance to setup the environment.
>>> >>>>>> >
>>> >>>>>> >On Wed, Dec 7, 2011 at 9:16 AM, Dan Silivestru
>>> >>>>>><da...@gmail.com>
>>> >>>>>> >wrote:
>>> >>>>>> >> I think blackberry.ui.dialog is used for the notification
>>>API. At
>>> >>>>>>least
>>> >>>>>> >> that's what it looks like to me based on this:
>>> >>>>>> >>
>>> >>>>>> >>
>>> >>>>>> >>
>>> >>>>>>
>>> >>>>>>
>>> https://github.com/callback/callback-blackberry/commit/19c0e686067e36
>>> >>>>>>a
>>> >>>>>>5
>>> >>>>>>63
>>> >>>>>> >>815435f6ed69ee562dbf9d#L13R194
>>> >>>>>> >>
>>> >>>>>> >> Cheers,
>>> >>>>>> >>
>>> >>>>>> >> Dan.
>>> >>>>>> >>
>>> >>>>>> >> On Tue, Dec 6, 2011 at 1:59 PM, Drew Walters
>>><deedubbu@gmail.com
>>> >
>>> >>>>>> wrote:
>>> >>>>>> >>
>>> >>>>>> >>> One other thing I forgot to mention.  Is "playbook" the term
>>>we
>>> >>>>>>want
>>> >>>>>> >>> to reference in the code/build/etc?  I wonder if it would be
>>> >>>>>>more
>>> >>>>>> >>> future proof to call this "bbx".  My understanding is that
>>>the
>>> >>>>>> >>> Playbook OS and BBX will be one in the same going forward.
>>> >>>>>>Maybe
>>> >>>>>>its
>>> >>>>>> >>> jumping the gun a bit, since BBX isn't available yet, but I'd
>>> >>>>>>hate to
>>> >>>>>> >>> have to rename in a couple of months.
>>> >>>>>> >>>
>>> >>>>>> >>> On Tue, Dec 6, 2011 at 11:56 AM, Michael Brooks
>>> >>>>>> >>> <mi...@michaelbrooks.ca> wrote:
>>> >>>>>> >>> > Hi Drew,
>>> >>>>>> >>> >
>>> >>>>>> >>> > Thanks for the summary and details on what's changed.
>>> >>>>>> >>> >
>>> >>>>>> >>> > All of the Playbook support was added by RIM quite a while
>>> >>>>>>ago,
>>> >>>>>>but
>>> >>>>>> >>>the
>>> >>>>>> >>> > pull request was only merged in recently. During the
>>>merge, I
>>> >>>>>>didn't
>>> >>>>>> >>>want
>>> >>>>>> >>> > to make unnecessary changes, so I held off of cleaning up
>>> >>>>>>parts
>>> >>>>>>of
>>> >>>>>> >>>the
>>> >>>>>> >>> > codebase. Now that we've got Playbook support into the
>>> >>>>>>BlackBerry
>>> >>>>>> >>> > repository, we can start discussing and cleaning the
>>>codebase.
>>> >>>>>> >>> >
>>> >>>>>> >>> > A very important note is that we now need to support both
>>> >>>>>>BlackBerry
>>> >>>>>> >>>and
>>> >>>>>> >>> > Playbook. RIM will be handling most of the AIR code, but we
>>> >>>>>>need to
>>> >>>>>> >>> ensure
>>> >>>>>> >>> > that JavaScript changes for one platform will not break the
>>> >>>>>>other.
>>> >>>>>> >>>So,
>>> >>>>>> >>> all
>>> >>>>>> >>> > callback-blackberry developers are responsible for
>>>compiling,
>>> >>>>>> >>>running,
>>> >>>>>> >>> and
>>> >>>>>> >>> > testing both BlackBerry (handheld) and Playbook (tablet).
>>> >>>>>> >>> >
>>> >>>>>> >>> > framework/ext/src/library.xml:
>>> >>>>>> >>> >>    - PhoneGap feature is now "com.phonegap" instead of
>>> >>>>>>"phonegap".
>>> >>>>>> >>> >
>>> >>>>>> >>> >
>>> >>>>>> >>> > I'd also like a justification for this change. No other
>>> >>>>>>WebWorks
>>> >>>>>> >>> extension
>>> >>>>>> >>> > uses namespaces, so I'm confused why "phonegap" was
>>>changed to
>>> >>>>>> >>> > "com.phonegap". If there is no reason, then I would like to
>>> >>>>>>see
>>> >>>>>>it
>>> >>>>>> >>> changed
>>> >>>>>> >>> > back to "phonegap".
>>> >>>>>> >>> >
>>> >>>>>> >>> > javascript/capture.js:
>>> >>>>>> >>> >>    - This is a proper renaming of media.js.
>>> >>>>>> >>> >>        * Problem is media.js was not deleted so both
>>> >>>>>>capture.js and
>>> >>>>>> >>> >> media.js are included and are identical.
>>> >>>>>> >>> >
>>> >>>>>> >>> >
>>> >>>>>> >>> > Good eye. If media.js is redundant, then we should remove
>>>it.
>>> >>>>>> >>> >
>>> >>>>>> >>> > javascript/console.js:
>>> >>>>>> >>> >>    - console.log is now only defined if console is
>>>undefined.
>>> >>>>>> >>> >> Previously console.log was always defined.
>>> >>>>>> >>> >>        * I've been testing on OS 6 and console.log never
>>>gets
>>> >>>>>> >>>defined
>>> >>>>>> >>> >> since console is defined.  This results in console.log not
>>> >>>>>>working.
>>> >>>>>> >>> >> I've had to use phonegap.Logger.log instead.
>>> >>>>>> >>> >
>>> >>>>>> >>> >
>>> >>>>>> >>> > Perhaps clobbering console.log was conflicting the the
>>> >>>>>>built-in
>>> >>>>>>Web
>>> >>>>>> >>> > Inspector for Playbook debugging? We should be holding a
>>> >>>>>>reference
>>> >>>>>> >>>to the
>>> >>>>>> >>> > original console.log, overriding it, and then still calling
>>> >>>>>>the
>>> >>>>>> >>>original
>>> >>>>>> >>> > reference.
>>> >>>>>> >>> >
>>> >>>>>> >>> > template/project/project.properties:
>>> >>>>>> >>> >>    - Properties previously defined in the file are now
>>> >>>>>>prefixed with
>>> >>>>>> >>> >> "blackberry".  New properties added for "playbook".
>>> >>>>>> >>> >>        * I'm confused by "blackberry.sim.password".
>>> >>>>>>Description
>>> >>>>>> >>>says
>>> >>>>>> >>> >> "If you leave this field blank, then you cannot deploy to
>>> >>>>>> >>>simulator".
>>> >>>>>> >>> >> I believe this is misleading since the only usage I see
>>>for
>>> >>>>>>it
>>> >>>>>>in
>>> >>>>>> >>> >> blackberry.xml is to load the device (not simulator).
>>> >>>>>> >>> >
>>> >>>>>> >>> >
>>> >>>>>> >>> > Agreed. propject.properties has become more complicated and
>>> >>>>>>I'd
>>> >>>>>>like
>>> >>>>>> >>>to
>>> >>>>>> >>> see
>>> >>>>>> >>> > it simplified. I think it's doable.
>>> >>>>>> >>> >
>>> >>>>>> >>> > javascript/webWorksPluginManager.js:
>>> >>>>>> >>> >>    - Camera and Capture functionality is now handled by
>>> >>>>>>blackberry
>>> >>>>>> >>> >> javascript API instead of native plugins.
>>> >>>>>> >>> >>        * This is a step backwards as the blackberry
>>> >>>>>>javascript
>>> >>>>>>API
>>> >>>>>> >>> >> lacks some features implemented by the native plugins.
>>>Just
>>> >>>>>>to
>>> >>>>>> >>>name a
>>> >>>>>> >>> >> few: specifying image size for the Camera, and audio
>>> >>>>>>recording
>>> >>>>>>for
>>> >>>>>> >>> >> Capture.
>>> >>>>>> >>> >
>>> >>>>>> >>> >
>>> >>>>>> >>> > My guess is that Playbook uses the WebWorks API, but
>>> >>>>>>BlackBerry
>>> >>>>>> >>>should
>>> >>>>>> >>> not
>>> >>>>>> >>> > be forced to do the same if it provides additional
>>> >>>>>>functionality.
>>> >>>>>> >>> >
>>> >>>>>> >>> > template/project/build.xml:
>>> >>>>>> >>> >>    - Build has been split up into blackberry.xml and
>>> >>>>>>playbook.xml.
>>> >>>>>> >>> >>    - Building a phone app now requires "ant blackberry
>>>build"
>>> >>>>>>where
>>> >>>>>> >>> >> before it was "ant build".
>>> >>>>>> >>> >
>>> >>>>>> >>> >
>>> >>>>>> >>> > I helped the RIM guys decided on this solution. It was the
>>> >>>>>>cleanest
>>> >>>>>> >>> > approach that we could come up with at the same.
>>> >>>>>> >>> >
>>> >>>>>> >>> > template/project/www/config.xml:
>>> >>>>>> >>> >>    - PhoneGap feature is now "com.phonegap" instead of
>>> >>>>>>"phonegap".
>>> >>>>>> >>> >>    - New permissions blackberry.media.camera,
>>> >>>>>>blackberry.identity,
>>> >>>>>> >>> >> blackberry.ui.dialog, blackberry.system.
>>> >>>>>> >>> >>        * I'm confused why blackberry.identity and
>>> >>>>>>blackberry.system
>>> >>>>>> >>> >> were added since they already exist in the file.  I'm also
>>> >>>>>>not
>>> >>>>>>sure
>>> >>>>>> >>> >> what is requiring blackberry.ui.dialog.
>>> >>>>>> >>> >
>>> >>>>>> >>> >
>>> >>>>>> >>> > I'm also confused on the duplication and where
>>> >>>>>>blackberry.ui.dialog
>>> >>>>>> >>>is
>>> >>>>>> >>> used.
>>> >>>>>> >>> >
>>> >>>>>> >>> > template/project/www/plugins.xml:
>>> >>>>>> >>> >>    - "Device" is a new required plugin.
>>> >>>>>> >>> >
>>> >>>>>> >>> >
>>> >>>>>> >>> > Yep
>>> >>>>>> >>> >
>>> >>>>>> >>> > There are now issues being logged on the missing Playbook
>>> >>>>>>APIs.
>>> >>>>>>Until
>>> >>>>>> >>> > Playbook supports every PhoneGap API, we should ensure
>>>that it
>>> >>>>>>can
>>> >>>>>> >>> > gracefully fail on the JavaScript side.
>>> >>>>>> >>> >
>>> >>>>>> >>> > Thanks again for posting this thread Drew!
>>> >>>>>> >>> > Michael
>>> >>>>>> >>> >
>>> >>>>>> >>> > On Tue, Dec 6, 2011 at 7:49 AM, Drew Walters
>>> >>>>>><pu...@gmail.com>
>>> >>>>>> >>>wrote:
>>> >>>>>> >>> >
>>> >>>>>> >>> >> I've been playing around with the latest
>>>callback-blackberry
>>> >>>>>>code
>>> >>>>>> >>> >> which has been merged to include playback support and I
>>>have
>>> >>>>>>run
>>> >>>>>> >>>into
>>> >>>>>> >>> >> some things which are worth noting/discussing/fixing.  For
>>> >>>>>>reference
>>> >>>>>> >>> >> the code change is here:
>>> >>>>>> >>> >>
>>> >>>>>> >>> >>
>>> >>>>>> >>> >>
>>> >>>>>> >>>
>>> >>>>>> >>>
>>> >>>>>>
>>> >>>>>>
>>> https://github.com/callback/callback-blackberry/commit/19c0e686067e36
>>> >>>>>>a
>>> >>>>>>5
>>> >>>>>>6
>>> >>>>>> >>>3815435f6ed69ee562dbf9d#template/project/www/config.xml
>>> >>>>>> >>> >>
>>> >>>>>> >>> >> I've listed below some things which existing BlackBerry
>>> >>>>>>developers
>>> >>>>>> >>> >> will need to be made aware of in order to update their
>>> >>>>>>existing
>>> >>>>>> >>> >> projects to 1.3. I've also added notes prefixed with '*'
>>> >>>>>>which
>>> >>>>>>I
>>> >>>>>> >>>feel
>>> >>>>>> >>> >> are defects or at least require further discussion.
>>> >>>>>> >>> >>
>>> >>>>>> >>> >> framework/ext/src/library.xml:
>>> >>>>>> >>> >>    - PhoneGap feature is now "com.phonegap" instead of
>>> >>>>>>"phonegap".
>>> >>>>>> >>> >>
>>> >>>>>> >>> >> javascript/capture.js:
>>> >>>>>> >>> >>    - This is a proper renaming of media.js.
>>> >>>>>> >>> >>        * Problem is media.js was not deleted so both
>>> >>>>>>capture.js and
>>> >>>>>> >>> >> media.js are included and are identical.
>>> >>>>>> >>> >>
>>> >>>>>> >>> >> javascript/console.js:
>>> >>>>>> >>> >>    - console.log is now only defined if console is
>>>undefined.
>>> >>>>>> >>> >> Previously console.log was always defined.
>>> >>>>>> >>> >>        * I've been testing on OS 6 and console.log never
>>>gets
>>> >>>>>> >>>defined
>>> >>>>>> >>> >> since console is defined.  This results in console.log not
>>> >>>>>>working.
>>> >>>>>> >>> >> I've had to use phonegap.Logger.log instead.
>>> >>>>>> >>> >>
>>> >>>>>> >>> >> template/project/project.properties:
>>> >>>>>> >>> >>    - Properties previously defined in the file are now
>>> >>>>>>prefixed with
>>> >>>>>> >>> >> "blackberry".  New properties added for "playbook".
>>> >>>>>> >>> >>        * I'm confused by "blackberry.sim.password".
>>> >>>>>>Description
>>> >>>>>> >>>says
>>> >>>>>> >>> >> "If you leave this field blank, then you cannot deploy to
>>> >>>>>> >>>simulator".
>>> >>>>>> >>> >> I believe this is misleading since the only usage I see
>>>for
>>> >>>>>>it
>>> >>>>>>in
>>> >>>>>> >>> >> blackberry.xml is to load the device (not simulator).
>>> >>>>>> >>> >>
>>> >>>>>> >>> >> javascript/webWorksPluginManager.js:
>>> >>>>>> >>> >>    - Camera and Capture functionality is now handled by
>>> >>>>>>blackberry
>>> >>>>>> >>> >> javascript API instead of native plugins.
>>> >>>>>> >>> >>        * This is a step backwards as the blackberry
>>> >>>>>>javascript
>>> >>>>>>API
>>> >>>>>> >>> >> lacks some features implemented by the native plugins.
>>>Just
>>> >>>>>>to
>>> >>>>>> >>>name a
>>> >>>>>> >>> >> few: specifying image size for the Camera, and audio
>>> >>>>>>recording
>>> >>>>>>for
>>> >>>>>> >>> >> Capture.
>>> >>>>>> >>> >>
>>> >>>>>> >>> >> template/project/build.xml:
>>> >>>>>> >>> >>    - Build has been split up into blackberry.xml and
>>> >>>>>>playbook.xml.
>>> >>>>>> >>> >>    - Building a phone app now requires "ant blackberry
>>>build"
>>> >>>>>>where
>>> >>>>>> >>> >> before it was "ant build".
>>> >>>>>> >>> >>
>>> >>>>>> >>> >> template/project/www/config.xml:
>>> >>>>>> >>> >>    - PhoneGap feature is now "com.phonegap" instead of
>>> >>>>>>"phonegap".
>>> >>>>>> >>> >>    - New permissions blackberry.media.camera,
>>> >>>>>>blackberry.identity,
>>> >>>>>> >>> >> blackberry.ui.dialog, blackberry.system.
>>> >>>>>> >>> >>        * I'm confused why blackberry.identity and
>>> >>>>>>blackberry.system
>>> >>>>>> >>> >> were added since they already exist in the file.  I'm also
>>> >>>>>>not
>>> >>>>>>sure
>>> >>>>>> >>> >> what is requiring blackberry.ui.dialog.
>>> >>>>>> >>> >>
>>> >>>>>> >>> >> template/project/www/plugins.xml:
>>> >>>>>> >>> >>    - "Device" is a new required plugin.
>>> >>>>>> >>> >>
>>> >>>>>> >>>
>>> >>>>>> >>
>>> >>>>>> >>
>>> >>>>>> >>
>>> >>>>>> >> --
>>> >>>>>> >> Dan Silivestru
>>> >>>>>> >> +1 (519) 589-3624
>>> >>>>>>
>>> >>>>>>
>>> >>>>
>>> >>>>
>>>---------------------------------------------------------------------
>>> >>>> This transmission (including any attachments) may contain
>>>confidential
>>> >>>>information, privileged material (including material protected by
>>>the
>>> >>>>solicitor-client or other applicable privileges), or constitute
>>> >>>>non-public information. Any use of this information by anyone other
>>> >>>>than
>>> >>>>the intended recipient is prohibited. If you have received this
>>> >>>>transmission in error, please immediately reply to the sender and
>>> >>>>delete
>>> >>>>this information from your system. Use, dissemination,
>>>distribution, or
>>> >>>>reproduction of this transmission by unintended recipients is not
>>> >>>>authorized and may be unlawful.
>>> >>
>>> >
>>>
>>>
>

Re: Playbook code merge discussion

Posted by Filip Maj <fi...@adobe.com>.
Alright cool I'll tag shortly and update on the "don¹t forget to tag"
thread :P

On 11-12-16 4:00 PM, "Dave Johnson" <da...@gmail.com> wrote:

>+1 that sounds good to me.
>On Dec 16, 2011 3:39 PM, "Filip Maj" <fi...@adobe.com> wrote:
>
>> One more note on the PlayBook failing tests: pretty much all of the
>> failing tests on PlayBook are related to the File API, which I seem to
>> recall the RIM calls explicitly telling me when they were working on
>>it...
>>
>> APIs such as GPS, Accel, Network, Notification, Contacts all seem to be
>> working according to the tests.
>>
>> So, once more, in terms of release notes for 1.3 maybe we can say "Basic
>> Playbook support, minus the File API" ?
>>
>> On 11-12-16 3:34 PM, "Filip Maj" <fi...@adobe.com> wrote:
>>
>> >Hey guys,
>> >
>> >Quick update on the state of the BB implementations for 1.3.
>> >
>> >1.3.0rc2 currently has approximately 95% of the PhoneGap API tests
>>passing
>> >on the smartphone, and just over half passing on the PlayBook
>>simulator. I
>> >don't have a working PlayBook device so rocking the sim - which may
>>not be
>> >giving us a true reflection of the state of callback/cordova on the
>> >playbook.
>> >
>> >So, obviously some issues on the playbook that I am working through to
>> >document and fix, but no regressions on the smartphone.
>> >
>> >Is that good to tag? I'll be documenting both smartphone and playbook
>> >issues. Marketing/release notes-wise, can we label 1.3.0 as having
>>"basic
>> >PlayBook support", or what do we do with respect to that?
>> >
>> >On 11-12-15 1:30 PM, "Filip Maj" <fi...@adobe.com> wrote:
>> >
>> >>Drew, thanks for the clarification. I am going to double-check both
>> >>playbook and smartphone implementations and make sure we are golden
>> >>before
>> >>tomorrow.
>> >>
>> >>On 11-12-15 8:59 AM, "Drew Walters" <de...@gmail.com> wrote:
>> >>
>> >>>Ok, I've submitted two pull requests which resolve numbers 3 and 4
>>from
>> >>>my list:
>> >>>
>> >>>3. Restore camera and capture native functionality.
>> >>>    https://github.com/callback/callback-blackberry/pull/13
>> >>>
>> >>>4. Delete duplicate blackberry.identity and blackberry.system feature
>> >>>ids in config.xml.
>> >>>    https://github.com/callback/callback-blackberry/pull/12
>> >>>
>> >>>I tested them on OS 5 and OS 6.  I did not merge them because I did
>> >>>not test on Playbook.  They are both trivial changes but would like
>> >>>someone else to verify to make sure I haven't broken Playbook.
>> >>>
>> >>>On Wed, Dec 14, 2011 at 8:07 PM, Ken Wallis <kw...@rim.com> wrote:
>> >>>> Gord will look to help fix some of these issues over the next few
>> >>>>days.
>> >>>> I assume we don't have write access to Jira, so should we just put
>>on
>> >>>>this thread which issues we will take on as we take them on, so as
>>not
>> >>>>to duplicate effort?
>> >>>>
>> >>>> ----- Original Message -----
>> >>>> From: Dave Johnson [mailto:dave.c.johnson@gmail.com]
>> >>>> Sent: Wednesday, December 14, 2011 08:09 PM
>> >>>> To: callback-dev@incubator.apache.org
>> >>>><ca...@incubator.apache.org>
>> >>>> Subject: Re: Playbook code merge discussion
>> >>>>
>> >>>> Yes it's better if playbook has bugs rather than the smartphone
>>having
>> >>>> regressions.
>> >>>>
>> >>>> In that light what's the fastes route to resolution?
>> >>>>
>> >>>> On Wed, Dec 14, 2011 at 4:42 PM, Drew Walters <de...@gmail.com>
>> >>>>wrote:
>> >>>>> What I am pointing out is regressions in the smartphone
>> >>>>>implementation
>> >>>>> because of the playbook merge. Everything I listed worked in
>>phonegap
>> >>>>>1.2.
>> >>>>> Not fixing those will break existing apps.
>> >>>>> On Dec 14, 2011 6:25 PM, "Filip Maj" <fi...@adobe.com> wrote:
>> >>>>>
>> >>>>>> I don't think it's a big deal. Yeah some of the APIs are not
>> >>>>>>working,
>> >>>>>>but
>> >>>>>> frankly these same APIs have issues on the regular smartphone
>> >>>>>> implementation in callback-blackberry so I don't see the real
>> >>>>>>difference.
>> >>>>>> If we ship one why not ship both?
>> >>>>>>
>> >>>>>> Issues are filed for both playbook and smartphone blackberry
>> >>>>>> implementations so we know what problems exist. Eventually we
>>will
>> >>>>>>get to
>> >>>>>> them.
>> >>>>>>
>> >>>>>> Both (smartphone and playbook) approaches work too - if you clone
>> >>>>>>the
>> >>>>>>repo
>> >>>>>> down you can build apps for either the playbook or the
>>smartphone.
>> >>>>>>
>> >>>>>>
>> >>>>>> On 11-12-14 3:15 PM, "Drew Walters" <de...@gmail.com> wrote:
>> >>>>>>
>> >>>>>> >Is anyone looking at the changes that need to be made to
>>Blackberry
>> >>>>>> >based on the Playbook merge?  I will vote to not ship 1.3 until
>> >>>>>>some
>> >>>>>> >of these issues are fixed.
>> >>>>>> >
>> >>>>>> >I'll list what I believe must be fixed before 1.3 can ship:
>> >>>>>> >
>> >>>>>> >1. Delete media.js - Done. I pushed this change and subsequent
>> >>>>>> >reordering of phonegap.js concat for dependencies.
>> >>>>>> >
>> >>>>>> >2. Re-enable console.log to write to event log - I coded up a
>> >>>>>>change
>> >>>>>> >for this which saved any existing console.log definition and
>> >>>>>>re-called
>> >>>>>> >after writing to event log.  I have not pushed because I'm not
>>sure
>> >>>>>> >what the Playbook side should do.  playBookPluginManager.js is
>> >>>>>> >defining the Logger plugin to call console.log which would be an
>> >>>>>> >infinite loop if console.log is overridden with a PhoneGap.exec.
>> >>>>>> >
>> >>>>>> >3. Restore camera and capture native functionality.
>> >>>>>> >
>> >>>>>> >4. Delete duplicate blackberry.identity and blackberry.system
>> >>>>>>feature
>> >>>>>> >ids in config.xml.
>> >>>>>> >
>> >>>>>> >I can live with the other differences though they will require
>> >>>>>> >developers to make changes to their projects when they update to
>> >>>>>>1.3.
>> >>>>>> >
>> >>>>>> >I'm on vacation for two weeks after this Friday so my time to
>>make
>> >>>>>> >changes is limited.  I'm hesitant to make any change that might
>> >>>>>>affect
>> >>>>>> >the Playbook implementation since I don't have a Playbook and
>> >>>>>>haven't
>> >>>>>> >had a chance to setup the environment.
>> >>>>>> >
>> >>>>>> >On Wed, Dec 7, 2011 at 9:16 AM, Dan Silivestru
>> >>>>>><da...@gmail.com>
>> >>>>>> >wrote:
>> >>>>>> >> I think blackberry.ui.dialog is used for the notification
>>API. At
>> >>>>>>least
>> >>>>>> >> that's what it looks like to me based on this:
>> >>>>>> >>
>> >>>>>> >>
>> >>>>>> >>
>> >>>>>>
>> >>>>>>
>> https://github.com/callback/callback-blackberry/commit/19c0e686067e36
>> >>>>>>a
>> >>>>>>5
>> >>>>>>63
>> >>>>>> >>815435f6ed69ee562dbf9d#L13R194
>> >>>>>> >>
>> >>>>>> >> Cheers,
>> >>>>>> >>
>> >>>>>> >> Dan.
>> >>>>>> >>
>> >>>>>> >> On Tue, Dec 6, 2011 at 1:59 PM, Drew Walters
>><deedubbu@gmail.com
>> >
>> >>>>>> wrote:
>> >>>>>> >>
>> >>>>>> >>> One other thing I forgot to mention.  Is "playbook" the term
>>we
>> >>>>>>want
>> >>>>>> >>> to reference in the code/build/etc?  I wonder if it would be
>> >>>>>>more
>> >>>>>> >>> future proof to call this "bbx".  My understanding is that
>>the
>> >>>>>> >>> Playbook OS and BBX will be one in the same going forward.
>> >>>>>>Maybe
>> >>>>>>its
>> >>>>>> >>> jumping the gun a bit, since BBX isn't available yet, but I'd
>> >>>>>>hate to
>> >>>>>> >>> have to rename in a couple of months.
>> >>>>>> >>>
>> >>>>>> >>> On Tue, Dec 6, 2011 at 11:56 AM, Michael Brooks
>> >>>>>> >>> <mi...@michaelbrooks.ca> wrote:
>> >>>>>> >>> > Hi Drew,
>> >>>>>> >>> >
>> >>>>>> >>> > Thanks for the summary and details on what's changed.
>> >>>>>> >>> >
>> >>>>>> >>> > All of the Playbook support was added by RIM quite a while
>> >>>>>>ago,
>> >>>>>>but
>> >>>>>> >>>the
>> >>>>>> >>> > pull request was only merged in recently. During the
>>merge, I
>> >>>>>>didn't
>> >>>>>> >>>want
>> >>>>>> >>> > to make unnecessary changes, so I held off of cleaning up
>> >>>>>>parts
>> >>>>>>of
>> >>>>>> >>>the
>> >>>>>> >>> > codebase. Now that we've got Playbook support into the
>> >>>>>>BlackBerry
>> >>>>>> >>> > repository, we can start discussing and cleaning the
>>codebase.
>> >>>>>> >>> >
>> >>>>>> >>> > A very important note is that we now need to support both
>> >>>>>>BlackBerry
>> >>>>>> >>>and
>> >>>>>> >>> > Playbook. RIM will be handling most of the AIR code, but we
>> >>>>>>need to
>> >>>>>> >>> ensure
>> >>>>>> >>> > that JavaScript changes for one platform will not break the
>> >>>>>>other.
>> >>>>>> >>>So,
>> >>>>>> >>> all
>> >>>>>> >>> > callback-blackberry developers are responsible for
>>compiling,
>> >>>>>> >>>running,
>> >>>>>> >>> and
>> >>>>>> >>> > testing both BlackBerry (handheld) and Playbook (tablet).
>> >>>>>> >>> >
>> >>>>>> >>> > framework/ext/src/library.xml:
>> >>>>>> >>> >>    - PhoneGap feature is now "com.phonegap" instead of
>> >>>>>>"phonegap".
>> >>>>>> >>> >
>> >>>>>> >>> >
>> >>>>>> >>> > I'd also like a justification for this change. No other
>> >>>>>>WebWorks
>> >>>>>> >>> extension
>> >>>>>> >>> > uses namespaces, so I'm confused why "phonegap" was
>>changed to
>> >>>>>> >>> > "com.phonegap". If there is no reason, then I would like to
>> >>>>>>see
>> >>>>>>it
>> >>>>>> >>> changed
>> >>>>>> >>> > back to "phonegap".
>> >>>>>> >>> >
>> >>>>>> >>> > javascript/capture.js:
>> >>>>>> >>> >>    - This is a proper renaming of media.js.
>> >>>>>> >>> >>        * Problem is media.js was not deleted so both
>> >>>>>>capture.js and
>> >>>>>> >>> >> media.js are included and are identical.
>> >>>>>> >>> >
>> >>>>>> >>> >
>> >>>>>> >>> > Good eye. If media.js is redundant, then we should remove
>>it.
>> >>>>>> >>> >
>> >>>>>> >>> > javascript/console.js:
>> >>>>>> >>> >>    - console.log is now only defined if console is
>>undefined.
>> >>>>>> >>> >> Previously console.log was always defined.
>> >>>>>> >>> >>        * I've been testing on OS 6 and console.log never
>>gets
>> >>>>>> >>>defined
>> >>>>>> >>> >> since console is defined.  This results in console.log not
>> >>>>>>working.
>> >>>>>> >>> >> I've had to use phonegap.Logger.log instead.
>> >>>>>> >>> >
>> >>>>>> >>> >
>> >>>>>> >>> > Perhaps clobbering console.log was conflicting the the
>> >>>>>>built-in
>> >>>>>>Web
>> >>>>>> >>> > Inspector for Playbook debugging? We should be holding a
>> >>>>>>reference
>> >>>>>> >>>to the
>> >>>>>> >>> > original console.log, overriding it, and then still calling
>> >>>>>>the
>> >>>>>> >>>original
>> >>>>>> >>> > reference.
>> >>>>>> >>> >
>> >>>>>> >>> > template/project/project.properties:
>> >>>>>> >>> >>    - Properties previously defined in the file are now
>> >>>>>>prefixed with
>> >>>>>> >>> >> "blackberry".  New properties added for "playbook".
>> >>>>>> >>> >>        * I'm confused by "blackberry.sim.password".
>> >>>>>>Description
>> >>>>>> >>>says
>> >>>>>> >>> >> "If you leave this field blank, then you cannot deploy to
>> >>>>>> >>>simulator".
>> >>>>>> >>> >> I believe this is misleading since the only usage I see
>>for
>> >>>>>>it
>> >>>>>>in
>> >>>>>> >>> >> blackberry.xml is to load the device (not simulator).
>> >>>>>> >>> >
>> >>>>>> >>> >
>> >>>>>> >>> > Agreed. propject.properties has become more complicated and
>> >>>>>>I'd
>> >>>>>>like
>> >>>>>> >>>to
>> >>>>>> >>> see
>> >>>>>> >>> > it simplified. I think it's doable.
>> >>>>>> >>> >
>> >>>>>> >>> > javascript/webWorksPluginManager.js:
>> >>>>>> >>> >>    - Camera and Capture functionality is now handled by
>> >>>>>>blackberry
>> >>>>>> >>> >> javascript API instead of native plugins.
>> >>>>>> >>> >>        * This is a step backwards as the blackberry
>> >>>>>>javascript
>> >>>>>>API
>> >>>>>> >>> >> lacks some features implemented by the native plugins.
>>Just
>> >>>>>>to
>> >>>>>> >>>name a
>> >>>>>> >>> >> few: specifying image size for the Camera, and audio
>> >>>>>>recording
>> >>>>>>for
>> >>>>>> >>> >> Capture.
>> >>>>>> >>> >
>> >>>>>> >>> >
>> >>>>>> >>> > My guess is that Playbook uses the WebWorks API, but
>> >>>>>>BlackBerry
>> >>>>>> >>>should
>> >>>>>> >>> not
>> >>>>>> >>> > be forced to do the same if it provides additional
>> >>>>>>functionality.
>> >>>>>> >>> >
>> >>>>>> >>> > template/project/build.xml:
>> >>>>>> >>> >>    - Build has been split up into blackberry.xml and
>> >>>>>>playbook.xml.
>> >>>>>> >>> >>    - Building a phone app now requires "ant blackberry
>>build"
>> >>>>>>where
>> >>>>>> >>> >> before it was "ant build".
>> >>>>>> >>> >
>> >>>>>> >>> >
>> >>>>>> >>> > I helped the RIM guys decided on this solution. It was the
>> >>>>>>cleanest
>> >>>>>> >>> > approach that we could come up with at the same.
>> >>>>>> >>> >
>> >>>>>> >>> > template/project/www/config.xml:
>> >>>>>> >>> >>    - PhoneGap feature is now "com.phonegap" instead of
>> >>>>>>"phonegap".
>> >>>>>> >>> >>    - New permissions blackberry.media.camera,
>> >>>>>>blackberry.identity,
>> >>>>>> >>> >> blackberry.ui.dialog, blackberry.system.
>> >>>>>> >>> >>        * I'm confused why blackberry.identity and
>> >>>>>>blackberry.system
>> >>>>>> >>> >> were added since they already exist in the file.  I'm also
>> >>>>>>not
>> >>>>>>sure
>> >>>>>> >>> >> what is requiring blackberry.ui.dialog.
>> >>>>>> >>> >
>> >>>>>> >>> >
>> >>>>>> >>> > I'm also confused on the duplication and where
>> >>>>>>blackberry.ui.dialog
>> >>>>>> >>>is
>> >>>>>> >>> used.
>> >>>>>> >>> >
>> >>>>>> >>> > template/project/www/plugins.xml:
>> >>>>>> >>> >>    - "Device" is a new required plugin.
>> >>>>>> >>> >
>> >>>>>> >>> >
>> >>>>>> >>> > Yep
>> >>>>>> >>> >
>> >>>>>> >>> > There are now issues being logged on the missing Playbook
>> >>>>>>APIs.
>> >>>>>>Until
>> >>>>>> >>> > Playbook supports every PhoneGap API, we should ensure
>>that it
>> >>>>>>can
>> >>>>>> >>> > gracefully fail on the JavaScript side.
>> >>>>>> >>> >
>> >>>>>> >>> > Thanks again for posting this thread Drew!
>> >>>>>> >>> > Michael
>> >>>>>> >>> >
>> >>>>>> >>> > On Tue, Dec 6, 2011 at 7:49 AM, Drew Walters
>> >>>>>><pu...@gmail.com>
>> >>>>>> >>>wrote:
>> >>>>>> >>> >
>> >>>>>> >>> >> I've been playing around with the latest
>>callback-blackberry
>> >>>>>>code
>> >>>>>> >>> >> which has been merged to include playback support and I
>>have
>> >>>>>>run
>> >>>>>> >>>into
>> >>>>>> >>> >> some things which are worth noting/discussing/fixing.  For
>> >>>>>>reference
>> >>>>>> >>> >> the code change is here:
>> >>>>>> >>> >>
>> >>>>>> >>> >>
>> >>>>>> >>> >>
>> >>>>>> >>>
>> >>>>>> >>>
>> >>>>>>
>> >>>>>>
>> https://github.com/callback/callback-blackberry/commit/19c0e686067e36
>> >>>>>>a
>> >>>>>>5
>> >>>>>>6
>> >>>>>> >>>3815435f6ed69ee562dbf9d#template/project/www/config.xml
>> >>>>>> >>> >>
>> >>>>>> >>> >> I've listed below some things which existing BlackBerry
>> >>>>>>developers
>> >>>>>> >>> >> will need to be made aware of in order to update their
>> >>>>>>existing
>> >>>>>> >>> >> projects to 1.3. I've also added notes prefixed with '*'
>> >>>>>>which
>> >>>>>>I
>> >>>>>> >>>feel
>> >>>>>> >>> >> are defects or at least require further discussion.
>> >>>>>> >>> >>
>> >>>>>> >>> >> framework/ext/src/library.xml:
>> >>>>>> >>> >>    - PhoneGap feature is now "com.phonegap" instead of
>> >>>>>>"phonegap".
>> >>>>>> >>> >>
>> >>>>>> >>> >> javascript/capture.js:
>> >>>>>> >>> >>    - This is a proper renaming of media.js.
>> >>>>>> >>> >>        * Problem is media.js was not deleted so both
>> >>>>>>capture.js and
>> >>>>>> >>> >> media.js are included and are identical.
>> >>>>>> >>> >>
>> >>>>>> >>> >> javascript/console.js:
>> >>>>>> >>> >>    - console.log is now only defined if console is
>>undefined.
>> >>>>>> >>> >> Previously console.log was always defined.
>> >>>>>> >>> >>        * I've been testing on OS 6 and console.log never
>>gets
>> >>>>>> >>>defined
>> >>>>>> >>> >> since console is defined.  This results in console.log not
>> >>>>>>working.
>> >>>>>> >>> >> I've had to use phonegap.Logger.log instead.
>> >>>>>> >>> >>
>> >>>>>> >>> >> template/project/project.properties:
>> >>>>>> >>> >>    - Properties previously defined in the file are now
>> >>>>>>prefixed with
>> >>>>>> >>> >> "blackberry".  New properties added for "playbook".
>> >>>>>> >>> >>        * I'm confused by "blackberry.sim.password".
>> >>>>>>Description
>> >>>>>> >>>says
>> >>>>>> >>> >> "If you leave this field blank, then you cannot deploy to
>> >>>>>> >>>simulator".
>> >>>>>> >>> >> I believe this is misleading since the only usage I see
>>for
>> >>>>>>it
>> >>>>>>in
>> >>>>>> >>> >> blackberry.xml is to load the device (not simulator).
>> >>>>>> >>> >>
>> >>>>>> >>> >> javascript/webWorksPluginManager.js:
>> >>>>>> >>> >>    - Camera and Capture functionality is now handled by
>> >>>>>>blackberry
>> >>>>>> >>> >> javascript API instead of native plugins.
>> >>>>>> >>> >>        * This is a step backwards as the blackberry
>> >>>>>>javascript
>> >>>>>>API
>> >>>>>> >>> >> lacks some features implemented by the native plugins.
>>Just
>> >>>>>>to
>> >>>>>> >>>name a
>> >>>>>> >>> >> few: specifying image size for the Camera, and audio
>> >>>>>>recording
>> >>>>>>for
>> >>>>>> >>> >> Capture.
>> >>>>>> >>> >>
>> >>>>>> >>> >> template/project/build.xml:
>> >>>>>> >>> >>    - Build has been split up into blackberry.xml and
>> >>>>>>playbook.xml.
>> >>>>>> >>> >>    - Building a phone app now requires "ant blackberry
>>build"
>> >>>>>>where
>> >>>>>> >>> >> before it was "ant build".
>> >>>>>> >>> >>
>> >>>>>> >>> >> template/project/www/config.xml:
>> >>>>>> >>> >>    - PhoneGap feature is now "com.phonegap" instead of
>> >>>>>>"phonegap".
>> >>>>>> >>> >>    - New permissions blackberry.media.camera,
>> >>>>>>blackberry.identity,
>> >>>>>> >>> >> blackberry.ui.dialog, blackberry.system.
>> >>>>>> >>> >>        * I'm confused why blackberry.identity and
>> >>>>>>blackberry.system
>> >>>>>> >>> >> were added since they already exist in the file.  I'm also
>> >>>>>>not
>> >>>>>>sure
>> >>>>>> >>> >> what is requiring blackberry.ui.dialog.
>> >>>>>> >>> >>
>> >>>>>> >>> >> template/project/www/plugins.xml:
>> >>>>>> >>> >>    - "Device" is a new required plugin.
>> >>>>>> >>> >>
>> >>>>>> >>>
>> >>>>>> >>
>> >>>>>> >>
>> >>>>>> >>
>> >>>>>> >> --
>> >>>>>> >> Dan Silivestru
>> >>>>>> >> +1 (519) 589-3624
>> >>>>>>
>> >>>>>>
>> >>>>
>> >>>>
>>---------------------------------------------------------------------
>> >>>> This transmission (including any attachments) may contain
>>confidential
>> >>>>information, privileged material (including material protected by
>>the
>> >>>>solicitor-client or other applicable privileges), or constitute
>> >>>>non-public information. Any use of this information by anyone other
>> >>>>than
>> >>>>the intended recipient is prohibited. If you have received this
>> >>>>transmission in error, please immediately reply to the sender and
>> >>>>delete
>> >>>>this information from your system. Use, dissemination,
>>distribution, or
>> >>>>reproduction of this transmission by unintended recipients is not
>> >>>>authorized and may be unlawful.
>> >>
>> >
>>
>>


Re: Playbook code merge discussion

Posted by Dave Johnson <da...@gmail.com>.
+1 that sounds good to me.
On Dec 16, 2011 3:39 PM, "Filip Maj" <fi...@adobe.com> wrote:

> One more note on the PlayBook failing tests: pretty much all of the
> failing tests on PlayBook are related to the File API, which I seem to
> recall the RIM calls explicitly telling me when they were working on it...
>
> APIs such as GPS, Accel, Network, Notification, Contacts all seem to be
> working according to the tests.
>
> So, once more, in terms of release notes for 1.3 maybe we can say "Basic
> Playbook support, minus the File API" ?
>
> On 11-12-16 3:34 PM, "Filip Maj" <fi...@adobe.com> wrote:
>
> >Hey guys,
> >
> >Quick update on the state of the BB implementations for 1.3.
> >
> >1.3.0rc2 currently has approximately 95% of the PhoneGap API tests passing
> >on the smartphone, and just over half passing on the PlayBook simulator. I
> >don't have a working PlayBook device so rocking the sim - which may not be
> >giving us a true reflection of the state of callback/cordova on the
> >playbook.
> >
> >So, obviously some issues on the playbook that I am working through to
> >document and fix, but no regressions on the smartphone.
> >
> >Is that good to tag? I'll be documenting both smartphone and playbook
> >issues. Marketing/release notes-wise, can we label 1.3.0 as having "basic
> >PlayBook support", or what do we do with respect to that?
> >
> >On 11-12-15 1:30 PM, "Filip Maj" <fi...@adobe.com> wrote:
> >
> >>Drew, thanks for the clarification. I am going to double-check both
> >>playbook and smartphone implementations and make sure we are golden
> >>before
> >>tomorrow.
> >>
> >>On 11-12-15 8:59 AM, "Drew Walters" <de...@gmail.com> wrote:
> >>
> >>>Ok, I've submitted two pull requests which resolve numbers 3 and 4 from
> >>>my list:
> >>>
> >>>3. Restore camera and capture native functionality.
> >>>    https://github.com/callback/callback-blackberry/pull/13
> >>>
> >>>4. Delete duplicate blackberry.identity and blackberry.system feature
> >>>ids in config.xml.
> >>>    https://github.com/callback/callback-blackberry/pull/12
> >>>
> >>>I tested them on OS 5 and OS 6.  I did not merge them because I did
> >>>not test on Playbook.  They are both trivial changes but would like
> >>>someone else to verify to make sure I haven't broken Playbook.
> >>>
> >>>On Wed, Dec 14, 2011 at 8:07 PM, Ken Wallis <kw...@rim.com> wrote:
> >>>> Gord will look to help fix some of these issues over the next few
> >>>>days.
> >>>> I assume we don't have write access to Jira, so should we just put on
> >>>>this thread which issues we will take on as we take them on, so as not
> >>>>to duplicate effort?
> >>>>
> >>>> ----- Original Message -----
> >>>> From: Dave Johnson [mailto:dave.c.johnson@gmail.com]
> >>>> Sent: Wednesday, December 14, 2011 08:09 PM
> >>>> To: callback-dev@incubator.apache.org
> >>>><ca...@incubator.apache.org>
> >>>> Subject: Re: Playbook code merge discussion
> >>>>
> >>>> Yes it's better if playbook has bugs rather than the smartphone having
> >>>> regressions.
> >>>>
> >>>> In that light what's the fastes route to resolution?
> >>>>
> >>>> On Wed, Dec 14, 2011 at 4:42 PM, Drew Walters <de...@gmail.com>
> >>>>wrote:
> >>>>> What I am pointing out is regressions in the smartphone
> >>>>>implementation
> >>>>> because of the playbook merge. Everything I listed worked in phonegap
> >>>>>1.2.
> >>>>> Not fixing those will break existing apps.
> >>>>> On Dec 14, 2011 6:25 PM, "Filip Maj" <fi...@adobe.com> wrote:
> >>>>>
> >>>>>> I don't think it's a big deal. Yeah some of the APIs are not
> >>>>>>working,
> >>>>>>but
> >>>>>> frankly these same APIs have issues on the regular smartphone
> >>>>>> implementation in callback-blackberry so I don't see the real
> >>>>>>difference.
> >>>>>> If we ship one why not ship both?
> >>>>>>
> >>>>>> Issues are filed for both playbook and smartphone blackberry
> >>>>>> implementations so we know what problems exist. Eventually we will
> >>>>>>get to
> >>>>>> them.
> >>>>>>
> >>>>>> Both (smartphone and playbook) approaches work too - if you clone
> >>>>>>the
> >>>>>>repo
> >>>>>> down you can build apps for either the playbook or the smartphone.
> >>>>>>
> >>>>>>
> >>>>>> On 11-12-14 3:15 PM, "Drew Walters" <de...@gmail.com> wrote:
> >>>>>>
> >>>>>> >Is anyone looking at the changes that need to be made to Blackberry
> >>>>>> >based on the Playbook merge?  I will vote to not ship 1.3 until
> >>>>>>some
> >>>>>> >of these issues are fixed.
> >>>>>> >
> >>>>>> >I'll list what I believe must be fixed before 1.3 can ship:
> >>>>>> >
> >>>>>> >1. Delete media.js - Done. I pushed this change and subsequent
> >>>>>> >reordering of phonegap.js concat for dependencies.
> >>>>>> >
> >>>>>> >2. Re-enable console.log to write to event log - I coded up a
> >>>>>>change
> >>>>>> >for this which saved any existing console.log definition and
> >>>>>>re-called
> >>>>>> >after writing to event log.  I have not pushed because I'm not sure
> >>>>>> >what the Playbook side should do.  playBookPluginManager.js is
> >>>>>> >defining the Logger plugin to call console.log which would be an
> >>>>>> >infinite loop if console.log is overridden with a PhoneGap.exec.
> >>>>>> >
> >>>>>> >3. Restore camera and capture native functionality.
> >>>>>> >
> >>>>>> >4. Delete duplicate blackberry.identity and blackberry.system
> >>>>>>feature
> >>>>>> >ids in config.xml.
> >>>>>> >
> >>>>>> >I can live with the other differences though they will require
> >>>>>> >developers to make changes to their projects when they update to
> >>>>>>1.3.
> >>>>>> >
> >>>>>> >I'm on vacation for two weeks after this Friday so my time to make
> >>>>>> >changes is limited.  I'm hesitant to make any change that might
> >>>>>>affect
> >>>>>> >the Playbook implementation since I don't have a Playbook and
> >>>>>>haven't
> >>>>>> >had a chance to setup the environment.
> >>>>>> >
> >>>>>> >On Wed, Dec 7, 2011 at 9:16 AM, Dan Silivestru
> >>>>>><da...@gmail.com>
> >>>>>> >wrote:
> >>>>>> >> I think blackberry.ui.dialog is used for the notification API. At
> >>>>>>least
> >>>>>> >> that's what it looks like to me based on this:
> >>>>>> >>
> >>>>>> >>
> >>>>>> >>
> >>>>>>
> >>>>>>
> https://github.com/callback/callback-blackberry/commit/19c0e686067e36
> >>>>>>a
> >>>>>>5
> >>>>>>63
> >>>>>> >>815435f6ed69ee562dbf9d#L13R194
> >>>>>> >>
> >>>>>> >> Cheers,
> >>>>>> >>
> >>>>>> >> Dan.
> >>>>>> >>
> >>>>>> >> On Tue, Dec 6, 2011 at 1:59 PM, Drew Walters <deedubbu@gmail.com
> >
> >>>>>> wrote:
> >>>>>> >>
> >>>>>> >>> One other thing I forgot to mention.  Is "playbook" the term we
> >>>>>>want
> >>>>>> >>> to reference in the code/build/etc?  I wonder if it would be
> >>>>>>more
> >>>>>> >>> future proof to call this "bbx".  My understanding is that the
> >>>>>> >>> Playbook OS and BBX will be one in the same going forward.
> >>>>>>Maybe
> >>>>>>its
> >>>>>> >>> jumping the gun a bit, since BBX isn't available yet, but I'd
> >>>>>>hate to
> >>>>>> >>> have to rename in a couple of months.
> >>>>>> >>>
> >>>>>> >>> On Tue, Dec 6, 2011 at 11:56 AM, Michael Brooks
> >>>>>> >>> <mi...@michaelbrooks.ca> wrote:
> >>>>>> >>> > Hi Drew,
> >>>>>> >>> >
> >>>>>> >>> > Thanks for the summary and details on what's changed.
> >>>>>> >>> >
> >>>>>> >>> > All of the Playbook support was added by RIM quite a while
> >>>>>>ago,
> >>>>>>but
> >>>>>> >>>the
> >>>>>> >>> > pull request was only merged in recently. During the merge, I
> >>>>>>didn't
> >>>>>> >>>want
> >>>>>> >>> > to make unnecessary changes, so I held off of cleaning up
> >>>>>>parts
> >>>>>>of
> >>>>>> >>>the
> >>>>>> >>> > codebase. Now that we've got Playbook support into the
> >>>>>>BlackBerry
> >>>>>> >>> > repository, we can start discussing and cleaning the codebase.
> >>>>>> >>> >
> >>>>>> >>> > A very important note is that we now need to support both
> >>>>>>BlackBerry
> >>>>>> >>>and
> >>>>>> >>> > Playbook. RIM will be handling most of the AIR code, but we
> >>>>>>need to
> >>>>>> >>> ensure
> >>>>>> >>> > that JavaScript changes for one platform will not break the
> >>>>>>other.
> >>>>>> >>>So,
> >>>>>> >>> all
> >>>>>> >>> > callback-blackberry developers are responsible for compiling,
> >>>>>> >>>running,
> >>>>>> >>> and
> >>>>>> >>> > testing both BlackBerry (handheld) and Playbook (tablet).
> >>>>>> >>> >
> >>>>>> >>> > framework/ext/src/library.xml:
> >>>>>> >>> >>    - PhoneGap feature is now "com.phonegap" instead of
> >>>>>>"phonegap".
> >>>>>> >>> >
> >>>>>> >>> >
> >>>>>> >>> > I'd also like a justification for this change. No other
> >>>>>>WebWorks
> >>>>>> >>> extension
> >>>>>> >>> > uses namespaces, so I'm confused why "phonegap" was changed to
> >>>>>> >>> > "com.phonegap". If there is no reason, then I would like to
> >>>>>>see
> >>>>>>it
> >>>>>> >>> changed
> >>>>>> >>> > back to "phonegap".
> >>>>>> >>> >
> >>>>>> >>> > javascript/capture.js:
> >>>>>> >>> >>    - This is a proper renaming of media.js.
> >>>>>> >>> >>        * Problem is media.js was not deleted so both
> >>>>>>capture.js and
> >>>>>> >>> >> media.js are included and are identical.
> >>>>>> >>> >
> >>>>>> >>> >
> >>>>>> >>> > Good eye. If media.js is redundant, then we should remove it.
> >>>>>> >>> >
> >>>>>> >>> > javascript/console.js:
> >>>>>> >>> >>    - console.log is now only defined if console is undefined.
> >>>>>> >>> >> Previously console.log was always defined.
> >>>>>> >>> >>        * I've been testing on OS 6 and console.log never gets
> >>>>>> >>>defined
> >>>>>> >>> >> since console is defined.  This results in console.log not
> >>>>>>working.
> >>>>>> >>> >> I've had to use phonegap.Logger.log instead.
> >>>>>> >>> >
> >>>>>> >>> >
> >>>>>> >>> > Perhaps clobbering console.log was conflicting the the
> >>>>>>built-in
> >>>>>>Web
> >>>>>> >>> > Inspector for Playbook debugging? We should be holding a
> >>>>>>reference
> >>>>>> >>>to the
> >>>>>> >>> > original console.log, overriding it, and then still calling
> >>>>>>the
> >>>>>> >>>original
> >>>>>> >>> > reference.
> >>>>>> >>> >
> >>>>>> >>> > template/project/project.properties:
> >>>>>> >>> >>    - Properties previously defined in the file are now
> >>>>>>prefixed with
> >>>>>> >>> >> "blackberry".  New properties added for "playbook".
> >>>>>> >>> >>        * I'm confused by "blackberry.sim.password".
> >>>>>>Description
> >>>>>> >>>says
> >>>>>> >>> >> "If you leave this field blank, then you cannot deploy to
> >>>>>> >>>simulator".
> >>>>>> >>> >> I believe this is misleading since the only usage I see for
> >>>>>>it
> >>>>>>in
> >>>>>> >>> >> blackberry.xml is to load the device (not simulator).
> >>>>>> >>> >
> >>>>>> >>> >
> >>>>>> >>> > Agreed. propject.properties has become more complicated and
> >>>>>>I'd
> >>>>>>like
> >>>>>> >>>to
> >>>>>> >>> see
> >>>>>> >>> > it simplified. I think it's doable.
> >>>>>> >>> >
> >>>>>> >>> > javascript/webWorksPluginManager.js:
> >>>>>> >>> >>    - Camera and Capture functionality is now handled by
> >>>>>>blackberry
> >>>>>> >>> >> javascript API instead of native plugins.
> >>>>>> >>> >>        * This is a step backwards as the blackberry
> >>>>>>javascript
> >>>>>>API
> >>>>>> >>> >> lacks some features implemented by the native plugins.  Just
> >>>>>>to
> >>>>>> >>>name a
> >>>>>> >>> >> few: specifying image size for the Camera, and audio
> >>>>>>recording
> >>>>>>for
> >>>>>> >>> >> Capture.
> >>>>>> >>> >
> >>>>>> >>> >
> >>>>>> >>> > My guess is that Playbook uses the WebWorks API, but
> >>>>>>BlackBerry
> >>>>>> >>>should
> >>>>>> >>> not
> >>>>>> >>> > be forced to do the same if it provides additional
> >>>>>>functionality.
> >>>>>> >>> >
> >>>>>> >>> > template/project/build.xml:
> >>>>>> >>> >>    - Build has been split up into blackberry.xml and
> >>>>>>playbook.xml.
> >>>>>> >>> >>    - Building a phone app now requires "ant blackberry build"
> >>>>>>where
> >>>>>> >>> >> before it was "ant build".
> >>>>>> >>> >
> >>>>>> >>> >
> >>>>>> >>> > I helped the RIM guys decided on this solution. It was the
> >>>>>>cleanest
> >>>>>> >>> > approach that we could come up with at the same.
> >>>>>> >>> >
> >>>>>> >>> > template/project/www/config.xml:
> >>>>>> >>> >>    - PhoneGap feature is now "com.phonegap" instead of
> >>>>>>"phonegap".
> >>>>>> >>> >>    - New permissions blackberry.media.camera,
> >>>>>>blackberry.identity,
> >>>>>> >>> >> blackberry.ui.dialog, blackberry.system.
> >>>>>> >>> >>        * I'm confused why blackberry.identity and
> >>>>>>blackberry.system
> >>>>>> >>> >> were added since they already exist in the file.  I'm also
> >>>>>>not
> >>>>>>sure
> >>>>>> >>> >> what is requiring blackberry.ui.dialog.
> >>>>>> >>> >
> >>>>>> >>> >
> >>>>>> >>> > I'm also confused on the duplication and where
> >>>>>>blackberry.ui.dialog
> >>>>>> >>>is
> >>>>>> >>> used.
> >>>>>> >>> >
> >>>>>> >>> > template/project/www/plugins.xml:
> >>>>>> >>> >>    - "Device" is a new required plugin.
> >>>>>> >>> >
> >>>>>> >>> >
> >>>>>> >>> > Yep
> >>>>>> >>> >
> >>>>>> >>> > There are now issues being logged on the missing Playbook
> >>>>>>APIs.
> >>>>>>Until
> >>>>>> >>> > Playbook supports every PhoneGap API, we should ensure that it
> >>>>>>can
> >>>>>> >>> > gracefully fail on the JavaScript side.
> >>>>>> >>> >
> >>>>>> >>> > Thanks again for posting this thread Drew!
> >>>>>> >>> > Michael
> >>>>>> >>> >
> >>>>>> >>> > On Tue, Dec 6, 2011 at 7:49 AM, Drew Walters
> >>>>>><pu...@gmail.com>
> >>>>>> >>>wrote:
> >>>>>> >>> >
> >>>>>> >>> >> I've been playing around with the latest callback-blackberry
> >>>>>>code
> >>>>>> >>> >> which has been merged to include playback support and I have
> >>>>>>run
> >>>>>> >>>into
> >>>>>> >>> >> some things which are worth noting/discussing/fixing.  For
> >>>>>>reference
> >>>>>> >>> >> the code change is here:
> >>>>>> >>> >>
> >>>>>> >>> >>
> >>>>>> >>> >>
> >>>>>> >>>
> >>>>>> >>>
> >>>>>>
> >>>>>>
> https://github.com/callback/callback-blackberry/commit/19c0e686067e36
> >>>>>>a
> >>>>>>5
> >>>>>>6
> >>>>>> >>>3815435f6ed69ee562dbf9d#template/project/www/config.xml
> >>>>>> >>> >>
> >>>>>> >>> >> I've listed below some things which existing BlackBerry
> >>>>>>developers
> >>>>>> >>> >> will need to be made aware of in order to update their
> >>>>>>existing
> >>>>>> >>> >> projects to 1.3. I've also added notes prefixed with '*'
> >>>>>>which
> >>>>>>I
> >>>>>> >>>feel
> >>>>>> >>> >> are defects or at least require further discussion.
> >>>>>> >>> >>
> >>>>>> >>> >> framework/ext/src/library.xml:
> >>>>>> >>> >>    - PhoneGap feature is now "com.phonegap" instead of
> >>>>>>"phonegap".
> >>>>>> >>> >>
> >>>>>> >>> >> javascript/capture.js:
> >>>>>> >>> >>    - This is a proper renaming of media.js.
> >>>>>> >>> >>        * Problem is media.js was not deleted so both
> >>>>>>capture.js and
> >>>>>> >>> >> media.js are included and are identical.
> >>>>>> >>> >>
> >>>>>> >>> >> javascript/console.js:
> >>>>>> >>> >>    - console.log is now only defined if console is undefined.
> >>>>>> >>> >> Previously console.log was always defined.
> >>>>>> >>> >>        * I've been testing on OS 6 and console.log never gets
> >>>>>> >>>defined
> >>>>>> >>> >> since console is defined.  This results in console.log not
> >>>>>>working.
> >>>>>> >>> >> I've had to use phonegap.Logger.log instead.
> >>>>>> >>> >>
> >>>>>> >>> >> template/project/project.properties:
> >>>>>> >>> >>    - Properties previously defined in the file are now
> >>>>>>prefixed with
> >>>>>> >>> >> "blackberry".  New properties added for "playbook".
> >>>>>> >>> >>        * I'm confused by "blackberry.sim.password".
> >>>>>>Description
> >>>>>> >>>says
> >>>>>> >>> >> "If you leave this field blank, then you cannot deploy to
> >>>>>> >>>simulator".
> >>>>>> >>> >> I believe this is misleading since the only usage I see for
> >>>>>>it
> >>>>>>in
> >>>>>> >>> >> blackberry.xml is to load the device (not simulator).
> >>>>>> >>> >>
> >>>>>> >>> >> javascript/webWorksPluginManager.js:
> >>>>>> >>> >>    - Camera and Capture functionality is now handled by
> >>>>>>blackberry
> >>>>>> >>> >> javascript API instead of native plugins.
> >>>>>> >>> >>        * This is a step backwards as the blackberry
> >>>>>>javascript
> >>>>>>API
> >>>>>> >>> >> lacks some features implemented by the native plugins.  Just
> >>>>>>to
> >>>>>> >>>name a
> >>>>>> >>> >> few: specifying image size for the Camera, and audio
> >>>>>>recording
> >>>>>>for
> >>>>>> >>> >> Capture.
> >>>>>> >>> >>
> >>>>>> >>> >> template/project/build.xml:
> >>>>>> >>> >>    - Build has been split up into blackberry.xml and
> >>>>>>playbook.xml.
> >>>>>> >>> >>    - Building a phone app now requires "ant blackberry build"
> >>>>>>where
> >>>>>> >>> >> before it was "ant build".
> >>>>>> >>> >>
> >>>>>> >>> >> template/project/www/config.xml:
> >>>>>> >>> >>    - PhoneGap feature is now "com.phonegap" instead of
> >>>>>>"phonegap".
> >>>>>> >>> >>    - New permissions blackberry.media.camera,
> >>>>>>blackberry.identity,
> >>>>>> >>> >> blackberry.ui.dialog, blackberry.system.
> >>>>>> >>> >>        * I'm confused why blackberry.identity and
> >>>>>>blackberry.system
> >>>>>> >>> >> were added since they already exist in the file.  I'm also
> >>>>>>not
> >>>>>>sure
> >>>>>> >>> >> what is requiring blackberry.ui.dialog.
> >>>>>> >>> >>
> >>>>>> >>> >> template/project/www/plugins.xml:
> >>>>>> >>> >>    - "Device" is a new required plugin.
> >>>>>> >>> >>
> >>>>>> >>>
> >>>>>> >>
> >>>>>> >>
> >>>>>> >>
> >>>>>> >> --
> >>>>>> >> Dan Silivestru
> >>>>>> >> +1 (519) 589-3624
> >>>>>>
> >>>>>>
> >>>>
> >>>> ---------------------------------------------------------------------
> >>>> This transmission (including any attachments) may contain confidential
> >>>>information, privileged material (including material protected by the
> >>>>solicitor-client or other applicable privileges), or constitute
> >>>>non-public information. Any use of this information by anyone other
> >>>>than
> >>>>the intended recipient is prohibited. If you have received this
> >>>>transmission in error, please immediately reply to the sender and
> >>>>delete
> >>>>this information from your system. Use, dissemination, distribution, or
> >>>>reproduction of this transmission by unintended recipients is not
> >>>>authorized and may be unlawful.
> >>
> >
>
>

Re: Playbook code merge discussion

Posted by gt...@gmail.com.
Thanks for your amazing work Fil!


Sent on the TELUS Mobility network with BlackBerry

-----Original Message-----
From: Michael Brooks <mi...@michaelbrooks.ca>
Sender: mikeywbrooks@gmail.com
Date: Fri, 16 Dec 2011 15:44:47 
To: <ca...@incubator.apache.org>
Reply-To: callback-dev@incubator.apache.org
Subject: Re: Playbook code merge discussion

Very cool Fil. Thanks again for setting up your system and testing through
the APIs.

From your summary, I gather the important points to be:

* No regression for BlackBerry (handheld)
* Basic PlayBook support added
* Full OS X support for BlackBerry and PlayBook development (incredibly
cool!)

Michael

On Fri, Dec 16, 2011 at 3:38 PM, Filip Maj <fi...@adobe.com> wrote:

> One more note on the PlayBook failing tests: pretty much all of the
> failing tests on PlayBook are related to the File API, which I seem to
> recall the RIM calls explicitly telling me when they were working on it...
>
> APIs such as GPS, Accel, Network, Notification, Contacts all seem to be
> working according to the tests.
>
> So, once more, in terms of release notes for 1.3 maybe we can say "Basic
> Playbook support, minus the File API" ?
>
> On 11-12-16 3:34 PM, "Filip Maj" <fi...@adobe.com> wrote:
>
> >Hey guys,
> >
> >Quick update on the state of the BB implementations for 1.3.
> >
> >1.3.0rc2 currently has approximately 95% of the PhoneGap API tests passing
> >on the smartphone, and just over half passing on the PlayBook simulator. I
> >don't have a working PlayBook device so rocking the sim - which may not be
> >giving us a true reflection of the state of callback/cordova on the
> >playbook.
> >
> >So, obviously some issues on the playbook that I am working through to
> >document and fix, but no regressions on the smartphone.
> >
> >Is that good to tag? I'll be documenting both smartphone and playbook
> >issues. Marketing/release notes-wise, can we label 1.3.0 as having "basic
> >PlayBook support", or what do we do with respect to that?
> >
> >On 11-12-15 1:30 PM, "Filip Maj" <fi...@adobe.com> wrote:
> >
> >>Drew, thanks for the clarification. I am going to double-check both
> >>playbook and smartphone implementations and make sure we are golden
> >>before
> >>tomorrow.
> >>
> >>On 11-12-15 8:59 AM, "Drew Walters" <de...@gmail.com> wrote:
> >>
> >>>Ok, I've submitted two pull requests which resolve numbers 3 and 4 from
> >>>my list:
> >>>
> >>>3. Restore camera and capture native functionality.
> >>>    https://github.com/callback/callback-blackberry/pull/13
> >>>
> >>>4. Delete duplicate blackberry.identity and blackberry.system feature
> >>>ids in config.xml.
> >>>    https://github.com/callback/callback-blackberry/pull/12
> >>>
> >>>I tested them on OS 5 and OS 6.  I did not merge them because I did
> >>>not test on Playbook.  They are both trivial changes but would like
> >>>someone else to verify to make sure I haven't broken Playbook.
> >>>
> >>>On Wed, Dec 14, 2011 at 8:07 PM, Ken Wallis <kw...@rim.com> wrote:
> >>>> Gord will look to help fix some of these issues over the next few
> >>>>days.
> >>>> I assume we don't have write access to Jira, so should we just put on
> >>>>this thread which issues we will take on as we take them on, so as not
> >>>>to duplicate effort?
> >>>>
> >>>> ----- Original Message -----
> >>>> From: Dave Johnson [mailto:dave.c.johnson@gmail.com]
> >>>> Sent: Wednesday, December 14, 2011 08:09 PM
> >>>> To: callback-dev@incubator.apache.org
> >>>><ca...@incubator.apache.org>
> >>>> Subject: Re: Playbook code merge discussion
> >>>>
> >>>> Yes it's better if playbook has bugs rather than the smartphone having
> >>>> regressions.
> >>>>
> >>>> In that light what's the fastes route to resolution?
> >>>>
> >>>> On Wed, Dec 14, 2011 at 4:42 PM, Drew Walters <de...@gmail.com>
> >>>>wrote:
> >>>>> What I am pointing out is regressions in the smartphone
> >>>>>implementation
> >>>>> because of the playbook merge. Everything I listed worked in phonegap
> >>>>>1.2.
> >>>>> Not fixing those will break existing apps.
> >>>>> On Dec 14, 2011 6:25 PM, "Filip Maj" <fi...@adobe.com> wrote:
> >>>>>
> >>>>>> I don't think it's a big deal. Yeah some of the APIs are not
> >>>>>>working,
> >>>>>>but
> >>>>>> frankly these same APIs have issues on the regular smartphone
> >>>>>> implementation in callback-blackberry so I don't see the real
> >>>>>>difference.
> >>>>>> If we ship one why not ship both?
> >>>>>>
> >>>>>> Issues are filed for both playbook and smartphone blackberry
> >>>>>> implementations so we know what problems exist. Eventually we will
> >>>>>>get to
> >>>>>> them.
> >>>>>>
> >>>>>> Both (smartphone and playbook) approaches work too - if you clone
> >>>>>>the
> >>>>>>repo
> >>>>>> down you can build apps for either the playbook or the smartphone.
> >>>>>>
> >>>>>>
> >>>>>> On 11-12-14 3:15 PM, "Drew Walters" <de...@gmail.com> wrote:
> >>>>>>
> >>>>>> >Is anyone looking at the changes that need to be made to Blackberry
> >>>>>> >based on the Playbook merge?  I will vote to not ship 1.3 until
> >>>>>>some
> >>>>>> >of these issues are fixed.
> >>>>>> >
> >>>>>> >I'll list what I believe must be fixed before 1.3 can ship:
> >>>>>> >
> >>>>>> >1. Delete media.js - Done. I pushed this change and subsequent
> >>>>>> >reordering of phonegap.js concat for dependencies.
> >>>>>> >
> >>>>>> >2. Re-enable console.log to write to event log - I coded up a
> >>>>>>change
> >>>>>> >for this which saved any existing console.log definition and
> >>>>>>re-called
> >>>>>> >after writing to event log.  I have not pushed because I'm not sure
> >>>>>> >what the Playbook side should do.  playBookPluginManager.js is
> >>>>>> >defining the Logger plugin to call console.log which would be an
> >>>>>> >infinite loop if console.log is overridden with a PhoneGap.exec.
> >>>>>> >
> >>>>>> >3. Restore camera and capture native functionality.
> >>>>>> >
> >>>>>> >4. Delete duplicate blackberry.identity and blackberry.system
> >>>>>>feature
> >>>>>> >ids in config.xml.
> >>>>>> >
> >>>>>> >I can live with the other differences though they will require
> >>>>>> >developers to make changes to their projects when they update to
> >>>>>>1.3.
> >>>>>> >
> >>>>>> >I'm on vacation for two weeks after this Friday so my time to make
> >>>>>> >changes is limited.  I'm hesitant to make any change that might
> >>>>>>affect
> >>>>>> >the Playbook implementation since I don't have a Playbook and
> >>>>>>haven't
> >>>>>> >had a chance to setup the environment.
> >>>>>> >
> >>>>>> >On Wed, Dec 7, 2011 at 9:16 AM, Dan Silivestru
> >>>>>><da...@gmail.com>
> >>>>>> >wrote:
> >>>>>> >> I think blackberry.ui.dialog is used for the notification API. At
> >>>>>>least
> >>>>>> >> that's what it looks like to me based on this:
> >>>>>> >>
> >>>>>> >>
> >>>>>> >>
> >>>>>>
> >>>>>>
> https://github.com/callback/callback-blackberry/commit/19c0e686067e36
> >>>>>>a
> >>>>>>5
> >>>>>>63
> >>>>>> >>815435f6ed69ee562dbf9d#L13R194
> >>>>>> >>
> >>>>>> >> Cheers,
> >>>>>> >>
> >>>>>> >> Dan.
> >>>>>> >>
> >>>>>> >> On Tue, Dec 6, 2011 at 1:59 PM, Drew Walters <deedubbu@gmail.com
> >
> >>>>>> wrote:
> >>>>>> >>
> >>>>>> >>> One other thing I forgot to mention.  Is "playbook" the term we
> >>>>>>want
> >>>>>> >>> to reference in the code/build/etc?  I wonder if it would be
> >>>>>>more
> >>>>>> >>> future proof to call this "bbx".  My understanding is that the
> >>>>>> >>> Playbook OS and BBX will be one in the same going forward.
> >>>>>>Maybe
> >>>>>>its
> >>>>>> >>> jumping the gun a bit, since BBX isn't available yet, but I'd
> >>>>>>hate to
> >>>>>> >>> have to rename in a couple of months.
> >>>>>> >>>
> >>>>>> >>> On Tue, Dec 6, 2011 at 11:56 AM, Michael Brooks
> >>>>>> >>> <mi...@michaelbrooks.ca> wrote:
> >>>>>> >>> > Hi Drew,
> >>>>>> >>> >
> >>>>>> >>> > Thanks for the summary and details on what's changed.
> >>>>>> >>> >
> >>>>>> >>> > All of the Playbook support was added by RIM quite a while
> >>>>>>ago,
> >>>>>>but
> >>>>>> >>>the
> >>>>>> >>> > pull request was only merged in recently. During the merge, I
> >>>>>>didn't
> >>>>>> >>>want
> >>>>>> >>> > to make unnecessary changes, so I held off of cleaning up
> >>>>>>parts
> >>>>>>of
> >>>>>> >>>the
> >>>>>> >>> > codebase. Now that we've got Playbook support into the
> >>>>>>BlackBerry
> >>>>>> >>> > repository, we can start discussing and cleaning the codebase.
> >>>>>> >>> >
> >>>>>> >>> > A very important note is that we now need to support both
> >>>>>>BlackBerry
> >>>>>> >>>and
> >>>>>> >>> > Playbook. RIM will be handling most of the AIR code, but we
> >>>>>>need to
> >>>>>> >>> ensure
> >>>>>> >>> > that JavaScript changes for one platform will not break the
> >>>>>>other.
> >>>>>> >>>So,
> >>>>>> >>> all
> >>>>>> >>> > callback-blackberry developers are responsible for compiling,
> >>>>>> >>>running,
> >>>>>> >>> and
> >>>>>> >>> > testing both BlackBerry (handheld) and Playbook (tablet).
> >>>>>> >>> >
> >>>>>> >>> > framework/ext/src/library.xml:
> >>>>>> >>> >>    - PhoneGap feature is now "com.phonegap" instead of
> >>>>>>"phonegap".
> >>>>>> >>> >
> >>>>>> >>> >
> >>>>>> >>> > I'd also like a justification for this change. No other
> >>>>>>WebWorks
> >>>>>> >>> extension
> >>>>>> >>> > uses namespaces, so I'm confused why "phonegap" was changed to
> >>>>>> >>> > "com.phonegap". If there is no reason, then I would like to
> >>>>>>see
> >>>>>>it
> >>>>>> >>> changed
> >>>>>> >>> > back to "phonegap".
> >>>>>> >>> >
> >>>>>> >>> > javascript/capture.js:
> >>>>>> >>> >>    - This is a proper renaming of media.js.
> >>>>>> >>> >>        * Problem is media.js was not deleted so both
> >>>>>>capture.js and
> >>>>>> >>> >> media.js are included and are identical.
> >>>>>> >>> >
> >>>>>> >>> >
> >>>>>> >>> > Good eye. If media.js is redundant, then we should remove it.
> >>>>>> >>> >
> >>>>>> >>> > javascript/console.js:
> >>>>>> >>> >>    - console.log is now only defined if console is undefined.
> >>>>>> >>> >> Previously console.log was always defined.
> >>>>>> >>> >>        * I've been testing on OS 6 and console.log never gets
> >>>>>> >>>defined
> >>>>>> >>> >> since console is defined.  This results in console.log not
> >>>>>>working.
> >>>>>> >>> >> I've had to use phonegap.Logger.log instead.
> >>>>>> >>> >
> >>>>>> >>> >
> >>>>>> >>> > Perhaps clobbering console.log was conflicting the the
> >>>>>>built-in
> >>>>>>Web
> >>>>>> >>> > Inspector for Playbook debugging? We should be holding a
> >>>>>>reference
> >>>>>> >>>to the
> >>>>>> >>> > original console.log, overriding it, and then still calling
> >>>>>>the
> >>>>>> >>>original
> >>>>>> >>> > reference.
> >>>>>> >>> >
> >>>>>> >>> > template/project/project.properties:
> >>>>>> >>> >>    - Properties previously defined in the file are now
> >>>>>>prefixed with
> >>>>>> >>> >> "blackberry".  New properties added for "playbook".
> >>>>>> >>> >>        * I'm confused by "blackberry.sim.password".
> >>>>>>Description
> >>>>>> >>>says
> >>>>>> >>> >> "If you leave this field blank, then you cannot deploy to
> >>>>>> >>>simulator".
> >>>>>> >>> >> I believe this is misleading since the only usage I see for
> >>>>>>it
> >>>>>>in
> >>>>>> >>> >> blackberry.xml is to load the device (not simulator).
> >>>>>> >>> >
> >>>>>> >>> >
> >>>>>> >>> > Agreed. propject.properties has become more complicated and
> >>>>>>I'd
> >>>>>>like
> >>>>>> >>>to
> >>>>>> >>> see
> >>>>>> >>> > it simplified. I think it's doable.
> >>>>>> >>> >
> >>>>>> >>> > javascript/webWorksPluginManager.js:
> >>>>>> >>> >>    - Camera and Capture functionality is now handled by
> >>>>>>blackberry
> >>>>>> >>> >> javascript API instead of native plugins.
> >>>>>> >>> >>        * This is a step backwards as the blackberry
> >>>>>>javascript
> >>>>>>API
> >>>>>> >>> >> lacks some features implemented by the native plugins.  Just
> >>>>>>to
> >>>>>> >>>name a
> >>>>>> >>> >> few: specifying image size for the Camera, and audio
> >>>>>>recording
> >>>>>>for
> >>>>>> >>> >> Capture.
> >>>>>> >>> >
> >>>>>> >>> >
> >>>>>> >>> > My guess is that Playbook uses the WebWorks API, but
> >>>>>>BlackBerry
> >>>>>> >>>should
> >>>>>> >>> not
> >>>>>> >>> > be forced to do the same if it provides additional
> >>>>>>functionality.
> >>>>>> >>> >
> >>>>>> >>> > template/project/build.xml:
> >>>>>> >>> >>    - Build has been split up into blackberry.xml and
> >>>>>>playbook.xml.
> >>>>>> >>> >>    - Building a phone app now requires "ant blackberry build"
> >>>>>>where
> >>>>>> >>> >> before it was "ant build".
> >>>>>> >>> >
> >>>>>> >>> >
> >>>>>> >>> > I helped the RIM guys decided on this solution. It was the
> >>>>>>cleanest
> >>>>>> >>> > approach that we could come up with at the same.
> >>>>>> >>> >
> >>>>>> >>> > template/project/www/config.xml:
> >>>>>> >>> >>    - PhoneGap feature is now "com.phonegap" instead of
> >>>>>>"phonegap".
> >>>>>> >>> >>    - New permissions blackberry.media.camera,
> >>>>>>blackberry.identity,
> >>>>>> >>> >> blackberry.ui.dialog, blackberry.system.
> >>>>>> >>> >>        * I'm confused why blackberry.identity and
> >>>>>>blackberry.system
> >>>>>> >>> >> were added since they already exist in the file.  I'm also
> >>>>>>not
> >>>>>>sure
> >>>>>> >>> >> what is requiring blackberry.ui.dialog.
> >>>>>> >>> >
> >>>>>> >>> >
> >>>>>> >>> > I'm also confused on the duplication and where
> >>>>>>blackberry.ui.dialog
> >>>>>> >>>is
> >>>>>> >>> used.
> >>>>>> >>> >
> >>>>>> >>> > template/project/www/plugins.xml:
> >>>>>> >>> >>    - "Device" is a new required plugin.
> >>>>>> >>> >
> >>>>>> >>> >
> >>>>>> >>> > Yep
> >>>>>> >>> >
> >>>>>> >>> > There are now issues being logged on the missing Playbook
> >>>>>>APIs.
> >>>>>>Until
> >>>>>> >>> > Playbook supports every PhoneGap API, we should ensure that it
> >>>>>>can
> >>>>>> >>> > gracefully fail on the JavaScript side.
> >>>>>> >>> >
> >>>>>> >>> > Thanks again for posting this thread Drew!
> >>>>>> >>> > Michael
> >>>>>> >>> >
> >>>>>> >>> > On Tue, Dec 6, 2011 at 7:49 AM, Drew Walters
> >>>>>><pu...@gmail.com>
> >>>>>> >>>wrote:
> >>>>>> >>> >
> >>>>>> >>> >> I've been playing around with the latest callback-blackberry
> >>>>>>code
> >>>>>> >>> >> which has been merged to include playback support and I have
> >>>>>>run
> >>>>>> >>>into
> >>>>>> >>> >> some things which are worth noting/discussing/fixing.  For
> >>>>>>reference
> >>>>>> >>> >> the code change is here:
> >>>>>> >>> >>
> >>>>>> >>> >>
> >>>>>> >>> >>
> >>>>>> >>>
> >>>>>> >>>
> >>>>>>
> >>>>>>
> https://github.com/callback/callback-blackberry/commit/19c0e686067e36
> >>>>>>a
> >>>>>>5
> >>>>>>6
> >>>>>> >>>3815435f6ed69ee562dbf9d#template/project/www/config.xml
> >>>>>> >>> >>
> >>>>>> >>> >> I've listed below some things which existing BlackBerry
> >>>>>>developers
> >>>>>> >>> >> will need to be made aware of in order to update their
> >>>>>>existing
> >>>>>> >>> >> projects to 1.3. I've also added notes prefixed with '*'
> >>>>>>which
> >>>>>>I
> >>>>>> >>>feel
> >>>>>> >>> >> are defects or at least require further discussion.
> >>>>>> >>> >>
> >>>>>> >>> >> framework/ext/src/library.xml:
> >>>>>> >>> >>    - PhoneGap feature is now "com.phonegap" instead of
> >>>>>>"phonegap".
> >>>>>> >>> >>
> >>>>>> >>> >> javascript/capture.js:
> >>>>>> >>> >>    - This is a proper renaming of media.js.
> >>>>>> >>> >>        * Problem is media.js was not deleted so both
> >>>>>>capture.js and
> >>>>>> >>> >> media.js are included and are identical.
> >>>>>> >>> >>
> >>>>>> >>> >> javascript/console.js:
> >>>>>> >>> >>    - console.log is now only defined if console is undefined.
> >>>>>> >>> >> Previously console.log was always defined.
> >>>>>> >>> >>        * I've been testing on OS 6 and console.log never gets
> >>>>>> >>>defined
> >>>>>> >>> >> since console is defined.  This results in console.log not
> >>>>>>working.
> >>>>>> >>> >> I've had to use phonegap.Logger.log instead.
> >>>>>> >>> >>
> >>>>>> >>> >> template/project/project.properties:
> >>>>>> >>> >>    - Properties previously defined in the file are now
> >>>>>>prefixed with
> >>>>>> >>> >> "blackberry".  New properties added for "playbook".
> >>>>>> >>> >>        * I'm confused by "blackberry.sim.password".
> >>>>>>Description
> >>>>>> >>>says
> >>>>>> >>> >> "If you leave this field blank, then you cannot deploy to
> >>>>>> >>>simulator".
> >>>>>> >>> >> I believe this is misleading since the only usage I see for
> >>>>>>it
> >>>>>>in
> >>>>>> >>> >> blackberry.xml is to load the device (not simulator).
> >>>>>> >>> >>
> >>>>>> >>> >> javascript/webWorksPluginManager.js:
> >>>>>> >>> >>    - Camera and Capture functionality is now handled by
> >>>>>>blackberry
> >>>>>> >>> >> javascript API instead of native plugins.
> >>>>>> >>> >>        * This is a step backwards as the blackberry
> >>>>>>javascript
> >>>>>>API
> >>>>>> >>> >> lacks some features implemented by the native plugins.  Just
> >>>>>>to
> >>>>>> >>>name a
> >>>>>> >>> >> few: specifying image size for the Camera, and audio
> >>>>>>recording
> >>>>>>for
> >>>>>> >>> >> Capture.
> >>>>>> >>> >>
> >>>>>> >>> >> template/project/build.xml:
> >>>>>> >>> >>    - Build has been split up into blackberry.xml and
> >>>>>>playbook.xml.
> >>>>>> >>> >>    - Building a phone app now requires "ant blackberry build"
> >>>>>>where
> >>>>>> >>> >> before it was "ant build".
> >>>>>> >>> >>
> >>>>>> >>> >> template/project/www/config.xml:
> >>>>>> >>> >>    - PhoneGap feature is now "com.phonegap" instead of
> >>>>>>"phonegap".
> >>>>>> >>> >>    - New permissions blackberry.media.camera,
> >>>>>>blackberry.identity,
> >>>>>> >>> >> blackberry.ui.dialog, blackberry.system.
> >>>>>> >>> >>        * I'm confused why blackberry.identity and
> >>>>>>blackberry.system
> >>>>>> >>> >> were added since they already exist in the file.  I'm also
> >>>>>>not
> >>>>>>sure
> >>>>>> >>> >> what is requiring blackberry.ui.dialog.
> >>>>>> >>> >>
> >>>>>> >>> >> template/project/www/plugins.xml:
> >>>>>> >>> >>    - "Device" is a new required plugin.
> >>>>>> >>> >>
> >>>>>> >>>
> >>>>>> >>
> >>>>>> >>
> >>>>>> >>
> >>>>>> >> --
> >>>>>> >> Dan Silivestru
> >>>>>> >> +1 (519) 589-3624
> >>>>>>
> >>>>>>
> >>>>
> >>>> ---------------------------------------------------------------------
> >>>> This transmission (including any attachments) may contain confidential
> >>>>information, privileged material (including material protected by the
> >>>>solicitor-client or other applicable privileges), or constitute
> >>>>non-public information. Any use of this information by anyone other
> >>>>than
> >>>>the intended recipient is prohibited. If you have received this
> >>>>transmission in error, please immediately reply to the sender and
> >>>>delete
> >>>>this information from your system. Use, dissemination, distribution, or
> >>>>reproduction of this transmission by unintended recipients is not
> >>>>authorized and may be unlawful.
> >>
> >
>
>


Re: Playbook code merge discussion

Posted by Michael Brooks <mi...@michaelbrooks.ca>.
Very cool Fil. Thanks again for setting up your system and testing through
the APIs.

>From your summary, I gather the important points to be:

* No regression for BlackBerry (handheld)
* Basic PlayBook support added
* Full OS X support for BlackBerry and PlayBook development (incredibly
cool!)

Michael

On Fri, Dec 16, 2011 at 3:38 PM, Filip Maj <fi...@adobe.com> wrote:

> One more note on the PlayBook failing tests: pretty much all of the
> failing tests on PlayBook are related to the File API, which I seem to
> recall the RIM calls explicitly telling me when they were working on it...
>
> APIs such as GPS, Accel, Network, Notification, Contacts all seem to be
> working according to the tests.
>
> So, once more, in terms of release notes for 1.3 maybe we can say "Basic
> Playbook support, minus the File API" ?
>
> On 11-12-16 3:34 PM, "Filip Maj" <fi...@adobe.com> wrote:
>
> >Hey guys,
> >
> >Quick update on the state of the BB implementations for 1.3.
> >
> >1.3.0rc2 currently has approximately 95% of the PhoneGap API tests passing
> >on the smartphone, and just over half passing on the PlayBook simulator. I
> >don't have a working PlayBook device so rocking the sim - which may not be
> >giving us a true reflection of the state of callback/cordova on the
> >playbook.
> >
> >So, obviously some issues on the playbook that I am working through to
> >document and fix, but no regressions on the smartphone.
> >
> >Is that good to tag? I'll be documenting both smartphone and playbook
> >issues. Marketing/release notes-wise, can we label 1.3.0 as having "basic
> >PlayBook support", or what do we do with respect to that?
> >
> >On 11-12-15 1:30 PM, "Filip Maj" <fi...@adobe.com> wrote:
> >
> >>Drew, thanks for the clarification. I am going to double-check both
> >>playbook and smartphone implementations and make sure we are golden
> >>before
> >>tomorrow.
> >>
> >>On 11-12-15 8:59 AM, "Drew Walters" <de...@gmail.com> wrote:
> >>
> >>>Ok, I've submitted two pull requests which resolve numbers 3 and 4 from
> >>>my list:
> >>>
> >>>3. Restore camera and capture native functionality.
> >>>    https://github.com/callback/callback-blackberry/pull/13
> >>>
> >>>4. Delete duplicate blackberry.identity and blackberry.system feature
> >>>ids in config.xml.
> >>>    https://github.com/callback/callback-blackberry/pull/12
> >>>
> >>>I tested them on OS 5 and OS 6.  I did not merge them because I did
> >>>not test on Playbook.  They are both trivial changes but would like
> >>>someone else to verify to make sure I haven't broken Playbook.
> >>>
> >>>On Wed, Dec 14, 2011 at 8:07 PM, Ken Wallis <kw...@rim.com> wrote:
> >>>> Gord will look to help fix some of these issues over the next few
> >>>>days.
> >>>> I assume we don't have write access to Jira, so should we just put on
> >>>>this thread which issues we will take on as we take them on, so as not
> >>>>to duplicate effort?
> >>>>
> >>>> ----- Original Message -----
> >>>> From: Dave Johnson [mailto:dave.c.johnson@gmail.com]
> >>>> Sent: Wednesday, December 14, 2011 08:09 PM
> >>>> To: callback-dev@incubator.apache.org
> >>>><ca...@incubator.apache.org>
> >>>> Subject: Re: Playbook code merge discussion
> >>>>
> >>>> Yes it's better if playbook has bugs rather than the smartphone having
> >>>> regressions.
> >>>>
> >>>> In that light what's the fastes route to resolution?
> >>>>
> >>>> On Wed, Dec 14, 2011 at 4:42 PM, Drew Walters <de...@gmail.com>
> >>>>wrote:
> >>>>> What I am pointing out is regressions in the smartphone
> >>>>>implementation
> >>>>> because of the playbook merge. Everything I listed worked in phonegap
> >>>>>1.2.
> >>>>> Not fixing those will break existing apps.
> >>>>> On Dec 14, 2011 6:25 PM, "Filip Maj" <fi...@adobe.com> wrote:
> >>>>>
> >>>>>> I don't think it's a big deal. Yeah some of the APIs are not
> >>>>>>working,
> >>>>>>but
> >>>>>> frankly these same APIs have issues on the regular smartphone
> >>>>>> implementation in callback-blackberry so I don't see the real
> >>>>>>difference.
> >>>>>> If we ship one why not ship both?
> >>>>>>
> >>>>>> Issues are filed for both playbook and smartphone blackberry
> >>>>>> implementations so we know what problems exist. Eventually we will
> >>>>>>get to
> >>>>>> them.
> >>>>>>
> >>>>>> Both (smartphone and playbook) approaches work too - if you clone
> >>>>>>the
> >>>>>>repo
> >>>>>> down you can build apps for either the playbook or the smartphone.
> >>>>>>
> >>>>>>
> >>>>>> On 11-12-14 3:15 PM, "Drew Walters" <de...@gmail.com> wrote:
> >>>>>>
> >>>>>> >Is anyone looking at the changes that need to be made to Blackberry
> >>>>>> >based on the Playbook merge?  I will vote to not ship 1.3 until
> >>>>>>some
> >>>>>> >of these issues are fixed.
> >>>>>> >
> >>>>>> >I'll list what I believe must be fixed before 1.3 can ship:
> >>>>>> >
> >>>>>> >1. Delete media.js - Done. I pushed this change and subsequent
> >>>>>> >reordering of phonegap.js concat for dependencies.
> >>>>>> >
> >>>>>> >2. Re-enable console.log to write to event log - I coded up a
> >>>>>>change
> >>>>>> >for this which saved any existing console.log definition and
> >>>>>>re-called
> >>>>>> >after writing to event log.  I have not pushed because I'm not sure
> >>>>>> >what the Playbook side should do.  playBookPluginManager.js is
> >>>>>> >defining the Logger plugin to call console.log which would be an
> >>>>>> >infinite loop if console.log is overridden with a PhoneGap.exec.
> >>>>>> >
> >>>>>> >3. Restore camera and capture native functionality.
> >>>>>> >
> >>>>>> >4. Delete duplicate blackberry.identity and blackberry.system
> >>>>>>feature
> >>>>>> >ids in config.xml.
> >>>>>> >
> >>>>>> >I can live with the other differences though they will require
> >>>>>> >developers to make changes to their projects when they update to
> >>>>>>1.3.
> >>>>>> >
> >>>>>> >I'm on vacation for two weeks after this Friday so my time to make
> >>>>>> >changes is limited.  I'm hesitant to make any change that might
> >>>>>>affect
> >>>>>> >the Playbook implementation since I don't have a Playbook and
> >>>>>>haven't
> >>>>>> >had a chance to setup the environment.
> >>>>>> >
> >>>>>> >On Wed, Dec 7, 2011 at 9:16 AM, Dan Silivestru
> >>>>>><da...@gmail.com>
> >>>>>> >wrote:
> >>>>>> >> I think blackberry.ui.dialog is used for the notification API. At
> >>>>>>least
> >>>>>> >> that's what it looks like to me based on this:
> >>>>>> >>
> >>>>>> >>
> >>>>>> >>
> >>>>>>
> >>>>>>
> https://github.com/callback/callback-blackberry/commit/19c0e686067e36
> >>>>>>a
> >>>>>>5
> >>>>>>63
> >>>>>> >>815435f6ed69ee562dbf9d#L13R194
> >>>>>> >>
> >>>>>> >> Cheers,
> >>>>>> >>
> >>>>>> >> Dan.
> >>>>>> >>
> >>>>>> >> On Tue, Dec 6, 2011 at 1:59 PM, Drew Walters <deedubbu@gmail.com
> >
> >>>>>> wrote:
> >>>>>> >>
> >>>>>> >>> One other thing I forgot to mention.  Is "playbook" the term we
> >>>>>>want
> >>>>>> >>> to reference in the code/build/etc?  I wonder if it would be
> >>>>>>more
> >>>>>> >>> future proof to call this "bbx".  My understanding is that the
> >>>>>> >>> Playbook OS and BBX will be one in the same going forward.
> >>>>>>Maybe
> >>>>>>its
> >>>>>> >>> jumping the gun a bit, since BBX isn't available yet, but I'd
> >>>>>>hate to
> >>>>>> >>> have to rename in a couple of months.
> >>>>>> >>>
> >>>>>> >>> On Tue, Dec 6, 2011 at 11:56 AM, Michael Brooks
> >>>>>> >>> <mi...@michaelbrooks.ca> wrote:
> >>>>>> >>> > Hi Drew,
> >>>>>> >>> >
> >>>>>> >>> > Thanks for the summary and details on what's changed.
> >>>>>> >>> >
> >>>>>> >>> > All of the Playbook support was added by RIM quite a while
> >>>>>>ago,
> >>>>>>but
> >>>>>> >>>the
> >>>>>> >>> > pull request was only merged in recently. During the merge, I
> >>>>>>didn't
> >>>>>> >>>want
> >>>>>> >>> > to make unnecessary changes, so I held off of cleaning up
> >>>>>>parts
> >>>>>>of
> >>>>>> >>>the
> >>>>>> >>> > codebase. Now that we've got Playbook support into the
> >>>>>>BlackBerry
> >>>>>> >>> > repository, we can start discussing and cleaning the codebase.
> >>>>>> >>> >
> >>>>>> >>> > A very important note is that we now need to support both
> >>>>>>BlackBerry
> >>>>>> >>>and
> >>>>>> >>> > Playbook. RIM will be handling most of the AIR code, but we
> >>>>>>need to
> >>>>>> >>> ensure
> >>>>>> >>> > that JavaScript changes for one platform will not break the
> >>>>>>other.
> >>>>>> >>>So,
> >>>>>> >>> all
> >>>>>> >>> > callback-blackberry developers are responsible for compiling,
> >>>>>> >>>running,
> >>>>>> >>> and
> >>>>>> >>> > testing both BlackBerry (handheld) and Playbook (tablet).
> >>>>>> >>> >
> >>>>>> >>> > framework/ext/src/library.xml:
> >>>>>> >>> >>    - PhoneGap feature is now "com.phonegap" instead of
> >>>>>>"phonegap".
> >>>>>> >>> >
> >>>>>> >>> >
> >>>>>> >>> > I'd also like a justification for this change. No other
> >>>>>>WebWorks
> >>>>>> >>> extension
> >>>>>> >>> > uses namespaces, so I'm confused why "phonegap" was changed to
> >>>>>> >>> > "com.phonegap". If there is no reason, then I would like to
> >>>>>>see
> >>>>>>it
> >>>>>> >>> changed
> >>>>>> >>> > back to "phonegap".
> >>>>>> >>> >
> >>>>>> >>> > javascript/capture.js:
> >>>>>> >>> >>    - This is a proper renaming of media.js.
> >>>>>> >>> >>        * Problem is media.js was not deleted so both
> >>>>>>capture.js and
> >>>>>> >>> >> media.js are included and are identical.
> >>>>>> >>> >
> >>>>>> >>> >
> >>>>>> >>> > Good eye. If media.js is redundant, then we should remove it.
> >>>>>> >>> >
> >>>>>> >>> > javascript/console.js:
> >>>>>> >>> >>    - console.log is now only defined if console is undefined.
> >>>>>> >>> >> Previously console.log was always defined.
> >>>>>> >>> >>        * I've been testing on OS 6 and console.log never gets
> >>>>>> >>>defined
> >>>>>> >>> >> since console is defined.  This results in console.log not
> >>>>>>working.
> >>>>>> >>> >> I've had to use phonegap.Logger.log instead.
> >>>>>> >>> >
> >>>>>> >>> >
> >>>>>> >>> > Perhaps clobbering console.log was conflicting the the
> >>>>>>built-in
> >>>>>>Web
> >>>>>> >>> > Inspector for Playbook debugging? We should be holding a
> >>>>>>reference
> >>>>>> >>>to the
> >>>>>> >>> > original console.log, overriding it, and then still calling
> >>>>>>the
> >>>>>> >>>original
> >>>>>> >>> > reference.
> >>>>>> >>> >
> >>>>>> >>> > template/project/project.properties:
> >>>>>> >>> >>    - Properties previously defined in the file are now
> >>>>>>prefixed with
> >>>>>> >>> >> "blackberry".  New properties added for "playbook".
> >>>>>> >>> >>        * I'm confused by "blackberry.sim.password".
> >>>>>>Description
> >>>>>> >>>says
> >>>>>> >>> >> "If you leave this field blank, then you cannot deploy to
> >>>>>> >>>simulator".
> >>>>>> >>> >> I believe this is misleading since the only usage I see for
> >>>>>>it
> >>>>>>in
> >>>>>> >>> >> blackberry.xml is to load the device (not simulator).
> >>>>>> >>> >
> >>>>>> >>> >
> >>>>>> >>> > Agreed. propject.properties has become more complicated and
> >>>>>>I'd
> >>>>>>like
> >>>>>> >>>to
> >>>>>> >>> see
> >>>>>> >>> > it simplified. I think it's doable.
> >>>>>> >>> >
> >>>>>> >>> > javascript/webWorksPluginManager.js:
> >>>>>> >>> >>    - Camera and Capture functionality is now handled by
> >>>>>>blackberry
> >>>>>> >>> >> javascript API instead of native plugins.
> >>>>>> >>> >>        * This is a step backwards as the blackberry
> >>>>>>javascript
> >>>>>>API
> >>>>>> >>> >> lacks some features implemented by the native plugins.  Just
> >>>>>>to
> >>>>>> >>>name a
> >>>>>> >>> >> few: specifying image size for the Camera, and audio
> >>>>>>recording
> >>>>>>for
> >>>>>> >>> >> Capture.
> >>>>>> >>> >
> >>>>>> >>> >
> >>>>>> >>> > My guess is that Playbook uses the WebWorks API, but
> >>>>>>BlackBerry
> >>>>>> >>>should
> >>>>>> >>> not
> >>>>>> >>> > be forced to do the same if it provides additional
> >>>>>>functionality.
> >>>>>> >>> >
> >>>>>> >>> > template/project/build.xml:
> >>>>>> >>> >>    - Build has been split up into blackberry.xml and
> >>>>>>playbook.xml.
> >>>>>> >>> >>    - Building a phone app now requires "ant blackberry build"
> >>>>>>where
> >>>>>> >>> >> before it was "ant build".
> >>>>>> >>> >
> >>>>>> >>> >
> >>>>>> >>> > I helped the RIM guys decided on this solution. It was the
> >>>>>>cleanest
> >>>>>> >>> > approach that we could come up with at the same.
> >>>>>> >>> >
> >>>>>> >>> > template/project/www/config.xml:
> >>>>>> >>> >>    - PhoneGap feature is now "com.phonegap" instead of
> >>>>>>"phonegap".
> >>>>>> >>> >>    - New permissions blackberry.media.camera,
> >>>>>>blackberry.identity,
> >>>>>> >>> >> blackberry.ui.dialog, blackberry.system.
> >>>>>> >>> >>        * I'm confused why blackberry.identity and
> >>>>>>blackberry.system
> >>>>>> >>> >> were added since they already exist in the file.  I'm also
> >>>>>>not
> >>>>>>sure
> >>>>>> >>> >> what is requiring blackberry.ui.dialog.
> >>>>>> >>> >
> >>>>>> >>> >
> >>>>>> >>> > I'm also confused on the duplication and where
> >>>>>>blackberry.ui.dialog
> >>>>>> >>>is
> >>>>>> >>> used.
> >>>>>> >>> >
> >>>>>> >>> > template/project/www/plugins.xml:
> >>>>>> >>> >>    - "Device" is a new required plugin.
> >>>>>> >>> >
> >>>>>> >>> >
> >>>>>> >>> > Yep
> >>>>>> >>> >
> >>>>>> >>> > There are now issues being logged on the missing Playbook
> >>>>>>APIs.
> >>>>>>Until
> >>>>>> >>> > Playbook supports every PhoneGap API, we should ensure that it
> >>>>>>can
> >>>>>> >>> > gracefully fail on the JavaScript side.
> >>>>>> >>> >
> >>>>>> >>> > Thanks again for posting this thread Drew!
> >>>>>> >>> > Michael
> >>>>>> >>> >
> >>>>>> >>> > On Tue, Dec 6, 2011 at 7:49 AM, Drew Walters
> >>>>>><pu...@gmail.com>
> >>>>>> >>>wrote:
> >>>>>> >>> >
> >>>>>> >>> >> I've been playing around with the latest callback-blackberry
> >>>>>>code
> >>>>>> >>> >> which has been merged to include playback support and I have
> >>>>>>run
> >>>>>> >>>into
> >>>>>> >>> >> some things which are worth noting/discussing/fixing.  For
> >>>>>>reference
> >>>>>> >>> >> the code change is here:
> >>>>>> >>> >>
> >>>>>> >>> >>
> >>>>>> >>> >>
> >>>>>> >>>
> >>>>>> >>>
> >>>>>>
> >>>>>>
> https://github.com/callback/callback-blackberry/commit/19c0e686067e36
> >>>>>>a
> >>>>>>5
> >>>>>>6
> >>>>>> >>>3815435f6ed69ee562dbf9d#template/project/www/config.xml
> >>>>>> >>> >>
> >>>>>> >>> >> I've listed below some things which existing BlackBerry
> >>>>>>developers
> >>>>>> >>> >> will need to be made aware of in order to update their
> >>>>>>existing
> >>>>>> >>> >> projects to 1.3. I've also added notes prefixed with '*'
> >>>>>>which
> >>>>>>I
> >>>>>> >>>feel
> >>>>>> >>> >> are defects or at least require further discussion.
> >>>>>> >>> >>
> >>>>>> >>> >> framework/ext/src/library.xml:
> >>>>>> >>> >>    - PhoneGap feature is now "com.phonegap" instead of
> >>>>>>"phonegap".
> >>>>>> >>> >>
> >>>>>> >>> >> javascript/capture.js:
> >>>>>> >>> >>    - This is a proper renaming of media.js.
> >>>>>> >>> >>        * Problem is media.js was not deleted so both
> >>>>>>capture.js and
> >>>>>> >>> >> media.js are included and are identical.
> >>>>>> >>> >>
> >>>>>> >>> >> javascript/console.js:
> >>>>>> >>> >>    - console.log is now only defined if console is undefined.
> >>>>>> >>> >> Previously console.log was always defined.
> >>>>>> >>> >>        * I've been testing on OS 6 and console.log never gets
> >>>>>> >>>defined
> >>>>>> >>> >> since console is defined.  This results in console.log not
> >>>>>>working.
> >>>>>> >>> >> I've had to use phonegap.Logger.log instead.
> >>>>>> >>> >>
> >>>>>> >>> >> template/project/project.properties:
> >>>>>> >>> >>    - Properties previously defined in the file are now
> >>>>>>prefixed with
> >>>>>> >>> >> "blackberry".  New properties added for "playbook".
> >>>>>> >>> >>        * I'm confused by "blackberry.sim.password".
> >>>>>>Description
> >>>>>> >>>says
> >>>>>> >>> >> "If you leave this field blank, then you cannot deploy to
> >>>>>> >>>simulator".
> >>>>>> >>> >> I believe this is misleading since the only usage I see for
> >>>>>>it
> >>>>>>in
> >>>>>> >>> >> blackberry.xml is to load the device (not simulator).
> >>>>>> >>> >>
> >>>>>> >>> >> javascript/webWorksPluginManager.js:
> >>>>>> >>> >>    - Camera and Capture functionality is now handled by
> >>>>>>blackberry
> >>>>>> >>> >> javascript API instead of native plugins.
> >>>>>> >>> >>        * This is a step backwards as the blackberry
> >>>>>>javascript
> >>>>>>API
> >>>>>> >>> >> lacks some features implemented by the native plugins.  Just
> >>>>>>to
> >>>>>> >>>name a
> >>>>>> >>> >> few: specifying image size for the Camera, and audio
> >>>>>>recording
> >>>>>>for
> >>>>>> >>> >> Capture.
> >>>>>> >>> >>
> >>>>>> >>> >> template/project/build.xml:
> >>>>>> >>> >>    - Build has been split up into blackberry.xml and
> >>>>>>playbook.xml.
> >>>>>> >>> >>    - Building a phone app now requires "ant blackberry build"
> >>>>>>where
> >>>>>> >>> >> before it was "ant build".
> >>>>>> >>> >>
> >>>>>> >>> >> template/project/www/config.xml:
> >>>>>> >>> >>    - PhoneGap feature is now "com.phonegap" instead of
> >>>>>>"phonegap".
> >>>>>> >>> >>    - New permissions blackberry.media.camera,
> >>>>>>blackberry.identity,
> >>>>>> >>> >> blackberry.ui.dialog, blackberry.system.
> >>>>>> >>> >>        * I'm confused why blackberry.identity and
> >>>>>>blackberry.system
> >>>>>> >>> >> were added since they already exist in the file.  I'm also
> >>>>>>not
> >>>>>>sure
> >>>>>> >>> >> what is requiring blackberry.ui.dialog.
> >>>>>> >>> >>
> >>>>>> >>> >> template/project/www/plugins.xml:
> >>>>>> >>> >>    - "Device" is a new required plugin.
> >>>>>> >>> >>
> >>>>>> >>>
> >>>>>> >>
> >>>>>> >>
> >>>>>> >>
> >>>>>> >> --
> >>>>>> >> Dan Silivestru
> >>>>>> >> +1 (519) 589-3624
> >>>>>>
> >>>>>>
> >>>>
> >>>> ---------------------------------------------------------------------
> >>>> This transmission (including any attachments) may contain confidential
> >>>>information, privileged material (including material protected by the
> >>>>solicitor-client or other applicable privileges), or constitute
> >>>>non-public information. Any use of this information by anyone other
> >>>>than
> >>>>the intended recipient is prohibited. If you have received this
> >>>>transmission in error, please immediately reply to the sender and
> >>>>delete
> >>>>this information from your system. Use, dissemination, distribution, or
> >>>>reproduction of this transmission by unintended recipients is not
> >>>>authorized and may be unlawful.
> >>
> >
>
>

Re: Playbook code merge discussion

Posted by Filip Maj <fi...@adobe.com>.
One more note on the PlayBook failing tests: pretty much all of the
failing tests on PlayBook are related to the File API, which I seem to
recall the RIM calls explicitly telling me when they were working on it...

APIs such as GPS, Accel, Network, Notification, Contacts all seem to be
working according to the tests.

So, once more, in terms of release notes for 1.3 maybe we can say "Basic
Playbook support, minus the File API" ?

On 11-12-16 3:34 PM, "Filip Maj" <fi...@adobe.com> wrote:

>Hey guys,
>
>Quick update on the state of the BB implementations for 1.3.
>
>1.3.0rc2 currently has approximately 95% of the PhoneGap API tests passing
>on the smartphone, and just over half passing on the PlayBook simulator. I
>don't have a working PlayBook device so rocking the sim - which may not be
>giving us a true reflection of the state of callback/cordova on the
>playbook.
>
>So, obviously some issues on the playbook that I am working through to
>document and fix, but no regressions on the smartphone.
>
>Is that good to tag? I'll be documenting both smartphone and playbook
>issues. Marketing/release notes-wise, can we label 1.3.0 as having "basic
>PlayBook support", or what do we do with respect to that?
>
>On 11-12-15 1:30 PM, "Filip Maj" <fi...@adobe.com> wrote:
>
>>Drew, thanks for the clarification. I am going to double-check both
>>playbook and smartphone implementations and make sure we are golden
>>before
>>tomorrow.
>>
>>On 11-12-15 8:59 AM, "Drew Walters" <de...@gmail.com> wrote:
>>
>>>Ok, I've submitted two pull requests which resolve numbers 3 and 4 from
>>>my list:
>>>
>>>3. Restore camera and capture native functionality.
>>>    https://github.com/callback/callback-blackberry/pull/13
>>>
>>>4. Delete duplicate blackberry.identity and blackberry.system feature
>>>ids in config.xml.
>>>    https://github.com/callback/callback-blackberry/pull/12
>>>
>>>I tested them on OS 5 and OS 6.  I did not merge them because I did
>>>not test on Playbook.  They are both trivial changes but would like
>>>someone else to verify to make sure I haven't broken Playbook.
>>>
>>>On Wed, Dec 14, 2011 at 8:07 PM, Ken Wallis <kw...@rim.com> wrote:
>>>> Gord will look to help fix some of these issues over the next few
>>>>days.
>>>> I assume we don't have write access to Jira, so should we just put on
>>>>this thread which issues we will take on as we take them on, so as not
>>>>to duplicate effort?
>>>>
>>>> ----- Original Message -----
>>>> From: Dave Johnson [mailto:dave.c.johnson@gmail.com]
>>>> Sent: Wednesday, December 14, 2011 08:09 PM
>>>> To: callback-dev@incubator.apache.org
>>>><ca...@incubator.apache.org>
>>>> Subject: Re: Playbook code merge discussion
>>>>
>>>> Yes it's better if playbook has bugs rather than the smartphone having
>>>> regressions.
>>>>
>>>> In that light what's the fastes route to resolution?
>>>>
>>>> On Wed, Dec 14, 2011 at 4:42 PM, Drew Walters <de...@gmail.com>
>>>>wrote:
>>>>> What I am pointing out is regressions in the smartphone
>>>>>implementation
>>>>> because of the playbook merge. Everything I listed worked in phonegap
>>>>>1.2.
>>>>> Not fixing those will break existing apps.
>>>>> On Dec 14, 2011 6:25 PM, "Filip Maj" <fi...@adobe.com> wrote:
>>>>>
>>>>>> I don't think it's a big deal. Yeah some of the APIs are not
>>>>>>working,
>>>>>>but
>>>>>> frankly these same APIs have issues on the regular smartphone
>>>>>> implementation in callback-blackberry so I don't see the real
>>>>>>difference.
>>>>>> If we ship one why not ship both?
>>>>>>
>>>>>> Issues are filed for both playbook and smartphone blackberry
>>>>>> implementations so we know what problems exist. Eventually we will
>>>>>>get to
>>>>>> them.
>>>>>>
>>>>>> Both (smartphone and playbook) approaches work too - if you clone
>>>>>>the
>>>>>>repo
>>>>>> down you can build apps for either the playbook or the smartphone.
>>>>>>
>>>>>>
>>>>>> On 11-12-14 3:15 PM, "Drew Walters" <de...@gmail.com> wrote:
>>>>>>
>>>>>> >Is anyone looking at the changes that need to be made to Blackberry
>>>>>> >based on the Playbook merge?  I will vote to not ship 1.3 until
>>>>>>some
>>>>>> >of these issues are fixed.
>>>>>> >
>>>>>> >I'll list what I believe must be fixed before 1.3 can ship:
>>>>>> >
>>>>>> >1. Delete media.js - Done. I pushed this change and subsequent
>>>>>> >reordering of phonegap.js concat for dependencies.
>>>>>> >
>>>>>> >2. Re-enable console.log to write to event log - I coded up a
>>>>>>change
>>>>>> >for this which saved any existing console.log definition and
>>>>>>re-called
>>>>>> >after writing to event log.  I have not pushed because I'm not sure
>>>>>> >what the Playbook side should do.  playBookPluginManager.js is
>>>>>> >defining the Logger plugin to call console.log which would be an
>>>>>> >infinite loop if console.log is overridden with a PhoneGap.exec.
>>>>>> >
>>>>>> >3. Restore camera and capture native functionality.
>>>>>> >
>>>>>> >4. Delete duplicate blackberry.identity and blackberry.system
>>>>>>feature
>>>>>> >ids in config.xml.
>>>>>> >
>>>>>> >I can live with the other differences though they will require
>>>>>> >developers to make changes to their projects when they update to
>>>>>>1.3.
>>>>>> >
>>>>>> >I'm on vacation for two weeks after this Friday so my time to make
>>>>>> >changes is limited.  I'm hesitant to make any change that might
>>>>>>affect
>>>>>> >the Playbook implementation since I don't have a Playbook and
>>>>>>haven't
>>>>>> >had a chance to setup the environment.
>>>>>> >
>>>>>> >On Wed, Dec 7, 2011 at 9:16 AM, Dan Silivestru
>>>>>><da...@gmail.com>
>>>>>> >wrote:
>>>>>> >> I think blackberry.ui.dialog is used for the notification API. At
>>>>>>least
>>>>>> >> that's what it looks like to me based on this:
>>>>>> >>
>>>>>> >>
>>>>>> >>
>>>>>>
>>>>>>https://github.com/callback/callback-blackberry/commit/19c0e686067e36
>>>>>>a
>>>>>>5
>>>>>>63
>>>>>> >>815435f6ed69ee562dbf9d#L13R194
>>>>>> >>
>>>>>> >> Cheers,
>>>>>> >>
>>>>>> >> Dan.
>>>>>> >>
>>>>>> >> On Tue, Dec 6, 2011 at 1:59 PM, Drew Walters <de...@gmail.com>
>>>>>> wrote:
>>>>>> >>
>>>>>> >>> One other thing I forgot to mention.  Is "playbook" the term we
>>>>>>want
>>>>>> >>> to reference in the code/build/etc?  I wonder if it would be
>>>>>>more
>>>>>> >>> future proof to call this "bbx".  My understanding is that the
>>>>>> >>> Playbook OS and BBX will be one in the same going forward.
>>>>>>Maybe
>>>>>>its
>>>>>> >>> jumping the gun a bit, since BBX isn't available yet, but I'd
>>>>>>hate to
>>>>>> >>> have to rename in a couple of months.
>>>>>> >>>
>>>>>> >>> On Tue, Dec 6, 2011 at 11:56 AM, Michael Brooks
>>>>>> >>> <mi...@michaelbrooks.ca> wrote:
>>>>>> >>> > Hi Drew,
>>>>>> >>> >
>>>>>> >>> > Thanks for the summary and details on what's changed.
>>>>>> >>> >
>>>>>> >>> > All of the Playbook support was added by RIM quite a while
>>>>>>ago,
>>>>>>but
>>>>>> >>>the
>>>>>> >>> > pull request was only merged in recently. During the merge, I
>>>>>>didn't
>>>>>> >>>want
>>>>>> >>> > to make unnecessary changes, so I held off of cleaning up
>>>>>>parts
>>>>>>of
>>>>>> >>>the
>>>>>> >>> > codebase. Now that we've got Playbook support into the
>>>>>>BlackBerry
>>>>>> >>> > repository, we can start discussing and cleaning the codebase.
>>>>>> >>> >
>>>>>> >>> > A very important note is that we now need to support both
>>>>>>BlackBerry
>>>>>> >>>and
>>>>>> >>> > Playbook. RIM will be handling most of the AIR code, but we
>>>>>>need to
>>>>>> >>> ensure
>>>>>> >>> > that JavaScript changes for one platform will not break the
>>>>>>other.
>>>>>> >>>So,
>>>>>> >>> all
>>>>>> >>> > callback-blackberry developers are responsible for compiling,
>>>>>> >>>running,
>>>>>> >>> and
>>>>>> >>> > testing both BlackBerry (handheld) and Playbook (tablet).
>>>>>> >>> >
>>>>>> >>> > framework/ext/src/library.xml:
>>>>>> >>> >>    - PhoneGap feature is now "com.phonegap" instead of
>>>>>>"phonegap".
>>>>>> >>> >
>>>>>> >>> >
>>>>>> >>> > I'd also like a justification for this change. No other
>>>>>>WebWorks
>>>>>> >>> extension
>>>>>> >>> > uses namespaces, so I'm confused why "phonegap" was changed to
>>>>>> >>> > "com.phonegap". If there is no reason, then I would like to
>>>>>>see
>>>>>>it
>>>>>> >>> changed
>>>>>> >>> > back to "phonegap".
>>>>>> >>> >
>>>>>> >>> > javascript/capture.js:
>>>>>> >>> >>    - This is a proper renaming of media.js.
>>>>>> >>> >>        * Problem is media.js was not deleted so both
>>>>>>capture.js and
>>>>>> >>> >> media.js are included and are identical.
>>>>>> >>> >
>>>>>> >>> >
>>>>>> >>> > Good eye. If media.js is redundant, then we should remove it.
>>>>>> >>> >
>>>>>> >>> > javascript/console.js:
>>>>>> >>> >>    - console.log is now only defined if console is undefined.
>>>>>> >>> >> Previously console.log was always defined.
>>>>>> >>> >>        * I've been testing on OS 6 and console.log never gets
>>>>>> >>>defined
>>>>>> >>> >> since console is defined.  This results in console.log not
>>>>>>working.
>>>>>> >>> >> I've had to use phonegap.Logger.log instead.
>>>>>> >>> >
>>>>>> >>> >
>>>>>> >>> > Perhaps clobbering console.log was conflicting the the
>>>>>>built-in
>>>>>>Web
>>>>>> >>> > Inspector for Playbook debugging? We should be holding a
>>>>>>reference
>>>>>> >>>to the
>>>>>> >>> > original console.log, overriding it, and then still calling
>>>>>>the
>>>>>> >>>original
>>>>>> >>> > reference.
>>>>>> >>> >
>>>>>> >>> > template/project/project.properties:
>>>>>> >>> >>    - Properties previously defined in the file are now
>>>>>>prefixed with
>>>>>> >>> >> "blackberry".  New properties added for "playbook".
>>>>>> >>> >>        * I'm confused by "blackberry.sim.password".
>>>>>>Description
>>>>>> >>>says
>>>>>> >>> >> "If you leave this field blank, then you cannot deploy to
>>>>>> >>>simulator".
>>>>>> >>> >> I believe this is misleading since the only usage I see for
>>>>>>it
>>>>>>in
>>>>>> >>> >> blackberry.xml is to load the device (not simulator).
>>>>>> >>> >
>>>>>> >>> >
>>>>>> >>> > Agreed. propject.properties has become more complicated and
>>>>>>I'd
>>>>>>like
>>>>>> >>>to
>>>>>> >>> see
>>>>>> >>> > it simplified. I think it's doable.
>>>>>> >>> >
>>>>>> >>> > javascript/webWorksPluginManager.js:
>>>>>> >>> >>    - Camera and Capture functionality is now handled by
>>>>>>blackberry
>>>>>> >>> >> javascript API instead of native plugins.
>>>>>> >>> >>        * This is a step backwards as the blackberry
>>>>>>javascript
>>>>>>API
>>>>>> >>> >> lacks some features implemented by the native plugins.  Just
>>>>>>to
>>>>>> >>>name a
>>>>>> >>> >> few: specifying image size for the Camera, and audio
>>>>>>recording
>>>>>>for
>>>>>> >>> >> Capture.
>>>>>> >>> >
>>>>>> >>> >
>>>>>> >>> > My guess is that Playbook uses the WebWorks API, but
>>>>>>BlackBerry
>>>>>> >>>should
>>>>>> >>> not
>>>>>> >>> > be forced to do the same if it provides additional
>>>>>>functionality.
>>>>>> >>> >
>>>>>> >>> > template/project/build.xml:
>>>>>> >>> >>    - Build has been split up into blackberry.xml and
>>>>>>playbook.xml.
>>>>>> >>> >>    - Building a phone app now requires "ant blackberry build"
>>>>>>where
>>>>>> >>> >> before it was "ant build".
>>>>>> >>> >
>>>>>> >>> >
>>>>>> >>> > I helped the RIM guys decided on this solution. It was the
>>>>>>cleanest
>>>>>> >>> > approach that we could come up with at the same.
>>>>>> >>> >
>>>>>> >>> > template/project/www/config.xml:
>>>>>> >>> >>    - PhoneGap feature is now "com.phonegap" instead of
>>>>>>"phonegap".
>>>>>> >>> >>    - New permissions blackberry.media.camera,
>>>>>>blackberry.identity,
>>>>>> >>> >> blackberry.ui.dialog, blackberry.system.
>>>>>> >>> >>        * I'm confused why blackberry.identity and
>>>>>>blackberry.system
>>>>>> >>> >> were added since they already exist in the file.  I'm also
>>>>>>not
>>>>>>sure
>>>>>> >>> >> what is requiring blackberry.ui.dialog.
>>>>>> >>> >
>>>>>> >>> >
>>>>>> >>> > I'm also confused on the duplication and where
>>>>>>blackberry.ui.dialog
>>>>>> >>>is
>>>>>> >>> used.
>>>>>> >>> >
>>>>>> >>> > template/project/www/plugins.xml:
>>>>>> >>> >>    - "Device" is a new required plugin.
>>>>>> >>> >
>>>>>> >>> >
>>>>>> >>> > Yep
>>>>>> >>> >
>>>>>> >>> > There are now issues being logged on the missing Playbook
>>>>>>APIs.
>>>>>>Until
>>>>>> >>> > Playbook supports every PhoneGap API, we should ensure that it
>>>>>>can
>>>>>> >>> > gracefully fail on the JavaScript side.
>>>>>> >>> >
>>>>>> >>> > Thanks again for posting this thread Drew!
>>>>>> >>> > Michael
>>>>>> >>> >
>>>>>> >>> > On Tue, Dec 6, 2011 at 7:49 AM, Drew Walters
>>>>>><pu...@gmail.com>
>>>>>> >>>wrote:
>>>>>> >>> >
>>>>>> >>> >> I've been playing around with the latest callback-blackberry
>>>>>>code
>>>>>> >>> >> which has been merged to include playback support and I have
>>>>>>run
>>>>>> >>>into
>>>>>> >>> >> some things which are worth noting/discussing/fixing.  For
>>>>>>reference
>>>>>> >>> >> the code change is here:
>>>>>> >>> >>
>>>>>> >>> >>
>>>>>> >>> >>
>>>>>> >>>
>>>>>> >>>
>>>>>>
>>>>>>https://github.com/callback/callback-blackberry/commit/19c0e686067e36
>>>>>>a
>>>>>>5
>>>>>>6
>>>>>> >>>3815435f6ed69ee562dbf9d#template/project/www/config.xml
>>>>>> >>> >>
>>>>>> >>> >> I've listed below some things which existing BlackBerry
>>>>>>developers
>>>>>> >>> >> will need to be made aware of in order to update their
>>>>>>existing
>>>>>> >>> >> projects to 1.3. I've also added notes prefixed with '*'
>>>>>>which
>>>>>>I
>>>>>> >>>feel
>>>>>> >>> >> are defects or at least require further discussion.
>>>>>> >>> >>
>>>>>> >>> >> framework/ext/src/library.xml:
>>>>>> >>> >>    - PhoneGap feature is now "com.phonegap" instead of
>>>>>>"phonegap".
>>>>>> >>> >>
>>>>>> >>> >> javascript/capture.js:
>>>>>> >>> >>    - This is a proper renaming of media.js.
>>>>>> >>> >>        * Problem is media.js was not deleted so both
>>>>>>capture.js and
>>>>>> >>> >> media.js are included and are identical.
>>>>>> >>> >>
>>>>>> >>> >> javascript/console.js:
>>>>>> >>> >>    - console.log is now only defined if console is undefined.
>>>>>> >>> >> Previously console.log was always defined.
>>>>>> >>> >>        * I've been testing on OS 6 and console.log never gets
>>>>>> >>>defined
>>>>>> >>> >> since console is defined.  This results in console.log not
>>>>>>working.
>>>>>> >>> >> I've had to use phonegap.Logger.log instead.
>>>>>> >>> >>
>>>>>> >>> >> template/project/project.properties:
>>>>>> >>> >>    - Properties previously defined in the file are now
>>>>>>prefixed with
>>>>>> >>> >> "blackberry".  New properties added for "playbook".
>>>>>> >>> >>        * I'm confused by "blackberry.sim.password".
>>>>>>Description
>>>>>> >>>says
>>>>>> >>> >> "If you leave this field blank, then you cannot deploy to
>>>>>> >>>simulator".
>>>>>> >>> >> I believe this is misleading since the only usage I see for
>>>>>>it
>>>>>>in
>>>>>> >>> >> blackberry.xml is to load the device (not simulator).
>>>>>> >>> >>
>>>>>> >>> >> javascript/webWorksPluginManager.js:
>>>>>> >>> >>    - Camera and Capture functionality is now handled by
>>>>>>blackberry
>>>>>> >>> >> javascript API instead of native plugins.
>>>>>> >>> >>        * This is a step backwards as the blackberry
>>>>>>javascript
>>>>>>API
>>>>>> >>> >> lacks some features implemented by the native plugins.  Just
>>>>>>to
>>>>>> >>>name a
>>>>>> >>> >> few: specifying image size for the Camera, and audio
>>>>>>recording
>>>>>>for
>>>>>> >>> >> Capture.
>>>>>> >>> >>
>>>>>> >>> >> template/project/build.xml:
>>>>>> >>> >>    - Build has been split up into blackberry.xml and
>>>>>>playbook.xml.
>>>>>> >>> >>    - Building a phone app now requires "ant blackberry build"
>>>>>>where
>>>>>> >>> >> before it was "ant build".
>>>>>> >>> >>
>>>>>> >>> >> template/project/www/config.xml:
>>>>>> >>> >>    - PhoneGap feature is now "com.phonegap" instead of
>>>>>>"phonegap".
>>>>>> >>> >>    - New permissions blackberry.media.camera,
>>>>>>blackberry.identity,
>>>>>> >>> >> blackberry.ui.dialog, blackberry.system.
>>>>>> >>> >>        * I'm confused why blackberry.identity and
>>>>>>blackberry.system
>>>>>> >>> >> were added since they already exist in the file.  I'm also
>>>>>>not
>>>>>>sure
>>>>>> >>> >> what is requiring blackberry.ui.dialog.
>>>>>> >>> >>
>>>>>> >>> >> template/project/www/plugins.xml:
>>>>>> >>> >>    - "Device" is a new required plugin.
>>>>>> >>> >>
>>>>>> >>>
>>>>>> >>
>>>>>> >>
>>>>>> >>
>>>>>> >> --
>>>>>> >> Dan Silivestru
>>>>>> >> +1 (519) 589-3624
>>>>>>
>>>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> This transmission (including any attachments) may contain confidential
>>>>information, privileged material (including material protected by the
>>>>solicitor-client or other applicable privileges), or constitute
>>>>non-public information. Any use of this information by anyone other
>>>>than
>>>>the intended recipient is prohibited. If you have received this
>>>>transmission in error, please immediately reply to the sender and
>>>>delete
>>>>this information from your system. Use, dissemination, distribution, or
>>>>reproduction of this transmission by unintended recipients is not
>>>>authorized and may be unlawful.
>>
>


Re: Playbook code merge discussion

Posted by Filip Maj <fi...@adobe.com>.
Hey guys,

Quick update on the state of the BB implementations for 1.3.

1.3.0rc2 currently has approximately 95% of the PhoneGap API tests passing
on the smartphone, and just over half passing on the PlayBook simulator. I
don't have a working PlayBook device so rocking the sim - which may not be
giving us a true reflection of the state of callback/cordova on the
playbook.

So, obviously some issues on the playbook that I am working through to
document and fix, but no regressions on the smartphone.

Is that good to tag? I'll be documenting both smartphone and playbook
issues. Marketing/release notes-wise, can we label 1.3.0 as having "basic
PlayBook support", or what do we do with respect to that?

On 11-12-15 1:30 PM, "Filip Maj" <fi...@adobe.com> wrote:

>Drew, thanks for the clarification. I am going to double-check both
>playbook and smartphone implementations and make sure we are golden before
>tomorrow.
>
>On 11-12-15 8:59 AM, "Drew Walters" <de...@gmail.com> wrote:
>
>>Ok, I've submitted two pull requests which resolve numbers 3 and 4 from
>>my list:
>>
>>3. Restore camera and capture native functionality.
>>    https://github.com/callback/callback-blackberry/pull/13
>>
>>4. Delete duplicate blackberry.identity and blackberry.system feature
>>ids in config.xml.
>>    https://github.com/callback/callback-blackberry/pull/12
>>
>>I tested them on OS 5 and OS 6.  I did not merge them because I did
>>not test on Playbook.  They are both trivial changes but would like
>>someone else to verify to make sure I haven't broken Playbook.
>>
>>On Wed, Dec 14, 2011 at 8:07 PM, Ken Wallis <kw...@rim.com> wrote:
>>> Gord will look to help fix some of these issues over the next few days.
>>> I assume we don't have write access to Jira, so should we just put on
>>>this thread which issues we will take on as we take them on, so as not
>>>to duplicate effort?
>>>
>>> ----- Original Message -----
>>> From: Dave Johnson [mailto:dave.c.johnson@gmail.com]
>>> Sent: Wednesday, December 14, 2011 08:09 PM
>>> To: callback-dev@incubator.apache.org
>>><ca...@incubator.apache.org>
>>> Subject: Re: Playbook code merge discussion
>>>
>>> Yes it's better if playbook has bugs rather than the smartphone having
>>> regressions.
>>>
>>> In that light what's the fastes route to resolution?
>>>
>>> On Wed, Dec 14, 2011 at 4:42 PM, Drew Walters <de...@gmail.com>
>>>wrote:
>>>> What I am pointing out is regressions in the smartphone implementation
>>>> because of the playbook merge. Everything I listed worked in phonegap
>>>>1.2.
>>>> Not fixing those will break existing apps.
>>>> On Dec 14, 2011 6:25 PM, "Filip Maj" <fi...@adobe.com> wrote:
>>>>
>>>>> I don't think it's a big deal. Yeah some of the APIs are not working,
>>>>>but
>>>>> frankly these same APIs have issues on the regular smartphone
>>>>> implementation in callback-blackberry so I don't see the real
>>>>>difference.
>>>>> If we ship one why not ship both?
>>>>>
>>>>> Issues are filed for both playbook and smartphone blackberry
>>>>> implementations so we know what problems exist. Eventually we will
>>>>>get to
>>>>> them.
>>>>>
>>>>> Both (smartphone and playbook) approaches work too - if you clone the
>>>>>repo
>>>>> down you can build apps for either the playbook or the smartphone.
>>>>>
>>>>>
>>>>> On 11-12-14 3:15 PM, "Drew Walters" <de...@gmail.com> wrote:
>>>>>
>>>>> >Is anyone looking at the changes that need to be made to Blackberry
>>>>> >based on the Playbook merge?  I will vote to not ship 1.3 until some
>>>>> >of these issues are fixed.
>>>>> >
>>>>> >I'll list what I believe must be fixed before 1.3 can ship:
>>>>> >
>>>>> >1. Delete media.js - Done. I pushed this change and subsequent
>>>>> >reordering of phonegap.js concat for dependencies.
>>>>> >
>>>>> >2. Re-enable console.log to write to event log - I coded up a change
>>>>> >for this which saved any existing console.log definition and
>>>>>re-called
>>>>> >after writing to event log.  I have not pushed because I'm not sure
>>>>> >what the Playbook side should do.  playBookPluginManager.js is
>>>>> >defining the Logger plugin to call console.log which would be an
>>>>> >infinite loop if console.log is overridden with a PhoneGap.exec.
>>>>> >
>>>>> >3. Restore camera and capture native functionality.
>>>>> >
>>>>> >4. Delete duplicate blackberry.identity and blackberry.system
>>>>>feature
>>>>> >ids in config.xml.
>>>>> >
>>>>> >I can live with the other differences though they will require
>>>>> >developers to make changes to their projects when they update to
>>>>>1.3.
>>>>> >
>>>>> >I'm on vacation for two weeks after this Friday so my time to make
>>>>> >changes is limited.  I'm hesitant to make any change that might
>>>>>affect
>>>>> >the Playbook implementation since I don't have a Playbook and
>>>>>haven't
>>>>> >had a chance to setup the environment.
>>>>> >
>>>>> >On Wed, Dec 7, 2011 at 9:16 AM, Dan Silivestru
>>>>><da...@gmail.com>
>>>>> >wrote:
>>>>> >> I think blackberry.ui.dialog is used for the notification API. At
>>>>>least
>>>>> >> that's what it looks like to me based on this:
>>>>> >>
>>>>> >>
>>>>> >>
>>>>>
>>>>>https://github.com/callback/callback-blackberry/commit/19c0e686067e36a
>>>>>5
>>>>>63
>>>>> >>815435f6ed69ee562dbf9d#L13R194
>>>>> >>
>>>>> >> Cheers,
>>>>> >>
>>>>> >> Dan.
>>>>> >>
>>>>> >> On Tue, Dec 6, 2011 at 1:59 PM, Drew Walters <de...@gmail.com>
>>>>> wrote:
>>>>> >>
>>>>> >>> One other thing I forgot to mention.  Is "playbook" the term we
>>>>>want
>>>>> >>> to reference in the code/build/etc?  I wonder if it would be more
>>>>> >>> future proof to call this "bbx".  My understanding is that the
>>>>> >>> Playbook OS and BBX will be one in the same going forward.  Maybe
>>>>>its
>>>>> >>> jumping the gun a bit, since BBX isn't available yet, but I'd
>>>>>hate to
>>>>> >>> have to rename in a couple of months.
>>>>> >>>
>>>>> >>> On Tue, Dec 6, 2011 at 11:56 AM, Michael Brooks
>>>>> >>> <mi...@michaelbrooks.ca> wrote:
>>>>> >>> > Hi Drew,
>>>>> >>> >
>>>>> >>> > Thanks for the summary and details on what's changed.
>>>>> >>> >
>>>>> >>> > All of the Playbook support was added by RIM quite a while ago,
>>>>>but
>>>>> >>>the
>>>>> >>> > pull request was only merged in recently. During the merge, I
>>>>>didn't
>>>>> >>>want
>>>>> >>> > to make unnecessary changes, so I held off of cleaning up parts
>>>>>of
>>>>> >>>the
>>>>> >>> > codebase. Now that we've got Playbook support into the
>>>>>BlackBerry
>>>>> >>> > repository, we can start discussing and cleaning the codebase.
>>>>> >>> >
>>>>> >>> > A very important note is that we now need to support both
>>>>>BlackBerry
>>>>> >>>and
>>>>> >>> > Playbook. RIM will be handling most of the AIR code, but we
>>>>>need to
>>>>> >>> ensure
>>>>> >>> > that JavaScript changes for one platform will not break the
>>>>>other.
>>>>> >>>So,
>>>>> >>> all
>>>>> >>> > callback-blackberry developers are responsible for compiling,
>>>>> >>>running,
>>>>> >>> and
>>>>> >>> > testing both BlackBerry (handheld) and Playbook (tablet).
>>>>> >>> >
>>>>> >>> > framework/ext/src/library.xml:
>>>>> >>> >>    - PhoneGap feature is now "com.phonegap" instead of
>>>>>"phonegap".
>>>>> >>> >
>>>>> >>> >
>>>>> >>> > I'd also like a justification for this change. No other
>>>>>WebWorks
>>>>> >>> extension
>>>>> >>> > uses namespaces, so I'm confused why "phonegap" was changed to
>>>>> >>> > "com.phonegap". If there is no reason, then I would like to see
>>>>>it
>>>>> >>> changed
>>>>> >>> > back to "phonegap".
>>>>> >>> >
>>>>> >>> > javascript/capture.js:
>>>>> >>> >>    - This is a proper renaming of media.js.
>>>>> >>> >>        * Problem is media.js was not deleted so both
>>>>>capture.js and
>>>>> >>> >> media.js are included and are identical.
>>>>> >>> >
>>>>> >>> >
>>>>> >>> > Good eye. If media.js is redundant, then we should remove it.
>>>>> >>> >
>>>>> >>> > javascript/console.js:
>>>>> >>> >>    - console.log is now only defined if console is undefined.
>>>>> >>> >> Previously console.log was always defined.
>>>>> >>> >>        * I've been testing on OS 6 and console.log never gets
>>>>> >>>defined
>>>>> >>> >> since console is defined.  This results in console.log not
>>>>>working.
>>>>> >>> >> I've had to use phonegap.Logger.log instead.
>>>>> >>> >
>>>>> >>> >
>>>>> >>> > Perhaps clobbering console.log was conflicting the the built-in
>>>>>Web
>>>>> >>> > Inspector for Playbook debugging? We should be holding a
>>>>>reference
>>>>> >>>to the
>>>>> >>> > original console.log, overriding it, and then still calling the
>>>>> >>>original
>>>>> >>> > reference.
>>>>> >>> >
>>>>> >>> > template/project/project.properties:
>>>>> >>> >>    - Properties previously defined in the file are now
>>>>>prefixed with
>>>>> >>> >> "blackberry".  New properties added for "playbook".
>>>>> >>> >>        * I'm confused by "blackberry.sim.password".
>>>>>Description
>>>>> >>>says
>>>>> >>> >> "If you leave this field blank, then you cannot deploy to
>>>>> >>>simulator".
>>>>> >>> >> I believe this is misleading since the only usage I see for it
>>>>>in
>>>>> >>> >> blackberry.xml is to load the device (not simulator).
>>>>> >>> >
>>>>> >>> >
>>>>> >>> > Agreed. propject.properties has become more complicated and I'd
>>>>>like
>>>>> >>>to
>>>>> >>> see
>>>>> >>> > it simplified. I think it's doable.
>>>>> >>> >
>>>>> >>> > javascript/webWorksPluginManager.js:
>>>>> >>> >>    - Camera and Capture functionality is now handled by
>>>>>blackberry
>>>>> >>> >> javascript API instead of native plugins.
>>>>> >>> >>        * This is a step backwards as the blackberry javascript
>>>>>API
>>>>> >>> >> lacks some features implemented by the native plugins.  Just
>>>>>to
>>>>> >>>name a
>>>>> >>> >> few: specifying image size for the Camera, and audio recording
>>>>>for
>>>>> >>> >> Capture.
>>>>> >>> >
>>>>> >>> >
>>>>> >>> > My guess is that Playbook uses the WebWorks API, but BlackBerry
>>>>> >>>should
>>>>> >>> not
>>>>> >>> > be forced to do the same if it provides additional
>>>>>functionality.
>>>>> >>> >
>>>>> >>> > template/project/build.xml:
>>>>> >>> >>    - Build has been split up into blackberry.xml and
>>>>>playbook.xml.
>>>>> >>> >>    - Building a phone app now requires "ant blackberry build"
>>>>>where
>>>>> >>> >> before it was "ant build".
>>>>> >>> >
>>>>> >>> >
>>>>> >>> > I helped the RIM guys decided on this solution. It was the
>>>>>cleanest
>>>>> >>> > approach that we could come up with at the same.
>>>>> >>> >
>>>>> >>> > template/project/www/config.xml:
>>>>> >>> >>    - PhoneGap feature is now "com.phonegap" instead of
>>>>>"phonegap".
>>>>> >>> >>    - New permissions blackberry.media.camera,
>>>>>blackberry.identity,
>>>>> >>> >> blackberry.ui.dialog, blackberry.system.
>>>>> >>> >>        * I'm confused why blackberry.identity and
>>>>>blackberry.system
>>>>> >>> >> were added since they already exist in the file.  I'm also not
>>>>>sure
>>>>> >>> >> what is requiring blackberry.ui.dialog.
>>>>> >>> >
>>>>> >>> >
>>>>> >>> > I'm also confused on the duplication and where
>>>>>blackberry.ui.dialog
>>>>> >>>is
>>>>> >>> used.
>>>>> >>> >
>>>>> >>> > template/project/www/plugins.xml:
>>>>> >>> >>    - "Device" is a new required plugin.
>>>>> >>> >
>>>>> >>> >
>>>>> >>> > Yep
>>>>> >>> >
>>>>> >>> > There are now issues being logged on the missing Playbook APIs.
>>>>>Until
>>>>> >>> > Playbook supports every PhoneGap API, we should ensure that it
>>>>>can
>>>>> >>> > gracefully fail on the JavaScript side.
>>>>> >>> >
>>>>> >>> > Thanks again for posting this thread Drew!
>>>>> >>> > Michael
>>>>> >>> >
>>>>> >>> > On Tue, Dec 6, 2011 at 7:49 AM, Drew Walters
>>>>><pu...@gmail.com>
>>>>> >>>wrote:
>>>>> >>> >
>>>>> >>> >> I've been playing around with the latest callback-blackberry
>>>>>code
>>>>> >>> >> which has been merged to include playback support and I have
>>>>>run
>>>>> >>>into
>>>>> >>> >> some things which are worth noting/discussing/fixing.  For
>>>>>reference
>>>>> >>> >> the code change is here:
>>>>> >>> >>
>>>>> >>> >>
>>>>> >>> >>
>>>>> >>>
>>>>> >>>
>>>>>
>>>>>https://github.com/callback/callback-blackberry/commit/19c0e686067e36a
>>>>>5
>>>>>6
>>>>> >>>3815435f6ed69ee562dbf9d#template/project/www/config.xml
>>>>> >>> >>
>>>>> >>> >> I've listed below some things which existing BlackBerry
>>>>>developers
>>>>> >>> >> will need to be made aware of in order to update their
>>>>>existing
>>>>> >>> >> projects to 1.3. I've also added notes prefixed with '*' which
>>>>>I
>>>>> >>>feel
>>>>> >>> >> are defects or at least require further discussion.
>>>>> >>> >>
>>>>> >>> >> framework/ext/src/library.xml:
>>>>> >>> >>    - PhoneGap feature is now "com.phonegap" instead of
>>>>>"phonegap".
>>>>> >>> >>
>>>>> >>> >> javascript/capture.js:
>>>>> >>> >>    - This is a proper renaming of media.js.
>>>>> >>> >>        * Problem is media.js was not deleted so both
>>>>>capture.js and
>>>>> >>> >> media.js are included and are identical.
>>>>> >>> >>
>>>>> >>> >> javascript/console.js:
>>>>> >>> >>    - console.log is now only defined if console is undefined.
>>>>> >>> >> Previously console.log was always defined.
>>>>> >>> >>        * I've been testing on OS 6 and console.log never gets
>>>>> >>>defined
>>>>> >>> >> since console is defined.  This results in console.log not
>>>>>working.
>>>>> >>> >> I've had to use phonegap.Logger.log instead.
>>>>> >>> >>
>>>>> >>> >> template/project/project.properties:
>>>>> >>> >>    - Properties previously defined in the file are now
>>>>>prefixed with
>>>>> >>> >> "blackberry".  New properties added for "playbook".
>>>>> >>> >>        * I'm confused by "blackberry.sim.password".
>>>>>Description
>>>>> >>>says
>>>>> >>> >> "If you leave this field blank, then you cannot deploy to
>>>>> >>>simulator".
>>>>> >>> >> I believe this is misleading since the only usage I see for it
>>>>>in
>>>>> >>> >> blackberry.xml is to load the device (not simulator).
>>>>> >>> >>
>>>>> >>> >> javascript/webWorksPluginManager.js:
>>>>> >>> >>    - Camera and Capture functionality is now handled by
>>>>>blackberry
>>>>> >>> >> javascript API instead of native plugins.
>>>>> >>> >>        * This is a step backwards as the blackberry javascript
>>>>>API
>>>>> >>> >> lacks some features implemented by the native plugins.  Just
>>>>>to
>>>>> >>>name a
>>>>> >>> >> few: specifying image size for the Camera, and audio recording
>>>>>for
>>>>> >>> >> Capture.
>>>>> >>> >>
>>>>> >>> >> template/project/build.xml:
>>>>> >>> >>    - Build has been split up into blackberry.xml and
>>>>>playbook.xml.
>>>>> >>> >>    - Building a phone app now requires "ant blackberry build"
>>>>>where
>>>>> >>> >> before it was "ant build".
>>>>> >>> >>
>>>>> >>> >> template/project/www/config.xml:
>>>>> >>> >>    - PhoneGap feature is now "com.phonegap" instead of
>>>>>"phonegap".
>>>>> >>> >>    - New permissions blackberry.media.camera,
>>>>>blackberry.identity,
>>>>> >>> >> blackberry.ui.dialog, blackberry.system.
>>>>> >>> >>        * I'm confused why blackberry.identity and
>>>>>blackberry.system
>>>>> >>> >> were added since they already exist in the file.  I'm also not
>>>>>sure
>>>>> >>> >> what is requiring blackberry.ui.dialog.
>>>>> >>> >>
>>>>> >>> >> template/project/www/plugins.xml:
>>>>> >>> >>    - "Device" is a new required plugin.
>>>>> >>> >>
>>>>> >>>
>>>>> >>
>>>>> >>
>>>>> >>
>>>>> >> --
>>>>> >> Dan Silivestru
>>>>> >> +1 (519) 589-3624
>>>>>
>>>>>
>>>
>>> ---------------------------------------------------------------------
>>> This transmission (including any attachments) may contain confidential
>>>information, privileged material (including material protected by the
>>>solicitor-client or other applicable privileges), or constitute
>>>non-public information. Any use of this information by anyone other than
>>>the intended recipient is prohibited. If you have received this
>>>transmission in error, please immediately reply to the sender and delete
>>>this information from your system. Use, dissemination, distribution, or
>>>reproduction of this transmission by unintended recipients is not
>>>authorized and may be unlawful.
>


Re: Playbook code merge discussion

Posted by Filip Maj <fi...@adobe.com>.
Drew, thanks for the clarification. I am going to double-check both
playbook and smartphone implementations and make sure we are golden before
tomorrow.

On 11-12-15 8:59 AM, "Drew Walters" <de...@gmail.com> wrote:

>Ok, I've submitted two pull requests which resolve numbers 3 and 4 from
>my list:
>
>3. Restore camera and capture native functionality.
>    https://github.com/callback/callback-blackberry/pull/13
>
>4. Delete duplicate blackberry.identity and blackberry.system feature
>ids in config.xml.
>    https://github.com/callback/callback-blackberry/pull/12
>
>I tested them on OS 5 and OS 6.  I did not merge them because I did
>not test on Playbook.  They are both trivial changes but would like
>someone else to verify to make sure I haven't broken Playbook.
>
>On Wed, Dec 14, 2011 at 8:07 PM, Ken Wallis <kw...@rim.com> wrote:
>> Gord will look to help fix some of these issues over the next few days.
>> I assume we don't have write access to Jira, so should we just put on
>>this thread which issues we will take on as we take them on, so as not
>>to duplicate effort?
>>
>> ----- Original Message -----
>> From: Dave Johnson [mailto:dave.c.johnson@gmail.com]
>> Sent: Wednesday, December 14, 2011 08:09 PM
>> To: callback-dev@incubator.apache.org
>><ca...@incubator.apache.org>
>> Subject: Re: Playbook code merge discussion
>>
>> Yes it's better if playbook has bugs rather than the smartphone having
>> regressions.
>>
>> In that light what's the fastes route to resolution?
>>
>> On Wed, Dec 14, 2011 at 4:42 PM, Drew Walters <de...@gmail.com>
>>wrote:
>>> What I am pointing out is regressions in the smartphone implementation
>>> because of the playbook merge. Everything I listed worked in phonegap
>>>1.2.
>>> Not fixing those will break existing apps.
>>> On Dec 14, 2011 6:25 PM, "Filip Maj" <fi...@adobe.com> wrote:
>>>
>>>> I don't think it's a big deal. Yeah some of the APIs are not working,
>>>>but
>>>> frankly these same APIs have issues on the regular smartphone
>>>> implementation in callback-blackberry so I don't see the real
>>>>difference.
>>>> If we ship one why not ship both?
>>>>
>>>> Issues are filed for both playbook and smartphone blackberry
>>>> implementations so we know what problems exist. Eventually we will
>>>>get to
>>>> them.
>>>>
>>>> Both (smartphone and playbook) approaches work too - if you clone the
>>>>repo
>>>> down you can build apps for either the playbook or the smartphone.
>>>>
>>>>
>>>> On 11-12-14 3:15 PM, "Drew Walters" <de...@gmail.com> wrote:
>>>>
>>>> >Is anyone looking at the changes that need to be made to Blackberry
>>>> >based on the Playbook merge?  I will vote to not ship 1.3 until some
>>>> >of these issues are fixed.
>>>> >
>>>> >I'll list what I believe must be fixed before 1.3 can ship:
>>>> >
>>>> >1. Delete media.js - Done. I pushed this change and subsequent
>>>> >reordering of phonegap.js concat for dependencies.
>>>> >
>>>> >2. Re-enable console.log to write to event log - I coded up a change
>>>> >for this which saved any existing console.log definition and
>>>>re-called
>>>> >after writing to event log.  I have not pushed because I'm not sure
>>>> >what the Playbook side should do.  playBookPluginManager.js is
>>>> >defining the Logger plugin to call console.log which would be an
>>>> >infinite loop if console.log is overridden with a PhoneGap.exec.
>>>> >
>>>> >3. Restore camera and capture native functionality.
>>>> >
>>>> >4. Delete duplicate blackberry.identity and blackberry.system feature
>>>> >ids in config.xml.
>>>> >
>>>> >I can live with the other differences though they will require
>>>> >developers to make changes to their projects when they update to 1.3.
>>>> >
>>>> >I'm on vacation for two weeks after this Friday so my time to make
>>>> >changes is limited.  I'm hesitant to make any change that might
>>>>affect
>>>> >the Playbook implementation since I don't have a Playbook and haven't
>>>> >had a chance to setup the environment.
>>>> >
>>>> >On Wed, Dec 7, 2011 at 9:16 AM, Dan Silivestru
>>>><da...@gmail.com>
>>>> >wrote:
>>>> >> I think blackberry.ui.dialog is used for the notification API. At
>>>>least
>>>> >> that's what it looks like to me based on this:
>>>> >>
>>>> >>
>>>> >>
>>>>
>>>>https://github.com/callback/callback-blackberry/commit/19c0e686067e36a5
>>>>63
>>>> >>815435f6ed69ee562dbf9d#L13R194
>>>> >>
>>>> >> Cheers,
>>>> >>
>>>> >> Dan.
>>>> >>
>>>> >> On Tue, Dec 6, 2011 at 1:59 PM, Drew Walters <de...@gmail.com>
>>>> wrote:
>>>> >>
>>>> >>> One other thing I forgot to mention.  Is "playbook" the term we
>>>>want
>>>> >>> to reference in the code/build/etc?  I wonder if it would be more
>>>> >>> future proof to call this "bbx".  My understanding is that the
>>>> >>> Playbook OS and BBX will be one in the same going forward.  Maybe
>>>>its
>>>> >>> jumping the gun a bit, since BBX isn't available yet, but I'd
>>>>hate to
>>>> >>> have to rename in a couple of months.
>>>> >>>
>>>> >>> On Tue, Dec 6, 2011 at 11:56 AM, Michael Brooks
>>>> >>> <mi...@michaelbrooks.ca> wrote:
>>>> >>> > Hi Drew,
>>>> >>> >
>>>> >>> > Thanks for the summary and details on what's changed.
>>>> >>> >
>>>> >>> > All of the Playbook support was added by RIM quite a while ago,
>>>>but
>>>> >>>the
>>>> >>> > pull request was only merged in recently. During the merge, I
>>>>didn't
>>>> >>>want
>>>> >>> > to make unnecessary changes, so I held off of cleaning up parts
>>>>of
>>>> >>>the
>>>> >>> > codebase. Now that we've got Playbook support into the
>>>>BlackBerry
>>>> >>> > repository, we can start discussing and cleaning the codebase.
>>>> >>> >
>>>> >>> > A very important note is that we now need to support both
>>>>BlackBerry
>>>> >>>and
>>>> >>> > Playbook. RIM will be handling most of the AIR code, but we
>>>>need to
>>>> >>> ensure
>>>> >>> > that JavaScript changes for one platform will not break the
>>>>other.
>>>> >>>So,
>>>> >>> all
>>>> >>> > callback-blackberry developers are responsible for compiling,
>>>> >>>running,
>>>> >>> and
>>>> >>> > testing both BlackBerry (handheld) and Playbook (tablet).
>>>> >>> >
>>>> >>> > framework/ext/src/library.xml:
>>>> >>> >>    - PhoneGap feature is now "com.phonegap" instead of
>>>>"phonegap".
>>>> >>> >
>>>> >>> >
>>>> >>> > I'd also like a justification for this change. No other WebWorks
>>>> >>> extension
>>>> >>> > uses namespaces, so I'm confused why "phonegap" was changed to
>>>> >>> > "com.phonegap". If there is no reason, then I would like to see
>>>>it
>>>> >>> changed
>>>> >>> > back to "phonegap".
>>>> >>> >
>>>> >>> > javascript/capture.js:
>>>> >>> >>    - This is a proper renaming of media.js.
>>>> >>> >>        * Problem is media.js was not deleted so both
>>>>capture.js and
>>>> >>> >> media.js are included and are identical.
>>>> >>> >
>>>> >>> >
>>>> >>> > Good eye. If media.js is redundant, then we should remove it.
>>>> >>> >
>>>> >>> > javascript/console.js:
>>>> >>> >>    - console.log is now only defined if console is undefined.
>>>> >>> >> Previously console.log was always defined.
>>>> >>> >>        * I've been testing on OS 6 and console.log never gets
>>>> >>>defined
>>>> >>> >> since console is defined.  This results in console.log not
>>>>working.
>>>> >>> >> I've had to use phonegap.Logger.log instead.
>>>> >>> >
>>>> >>> >
>>>> >>> > Perhaps clobbering console.log was conflicting the the built-in
>>>>Web
>>>> >>> > Inspector for Playbook debugging? We should be holding a
>>>>reference
>>>> >>>to the
>>>> >>> > original console.log, overriding it, and then still calling the
>>>> >>>original
>>>> >>> > reference.
>>>> >>> >
>>>> >>> > template/project/project.properties:
>>>> >>> >>    - Properties previously defined in the file are now
>>>>prefixed with
>>>> >>> >> "blackberry".  New properties added for "playbook".
>>>> >>> >>        * I'm confused by "blackberry.sim.password".
>>>>Description
>>>> >>>says
>>>> >>> >> "If you leave this field blank, then you cannot deploy to
>>>> >>>simulator".
>>>> >>> >> I believe this is misleading since the only usage I see for it
>>>>in
>>>> >>> >> blackberry.xml is to load the device (not simulator).
>>>> >>> >
>>>> >>> >
>>>> >>> > Agreed. propject.properties has become more complicated and I'd
>>>>like
>>>> >>>to
>>>> >>> see
>>>> >>> > it simplified. I think it's doable.
>>>> >>> >
>>>> >>> > javascript/webWorksPluginManager.js:
>>>> >>> >>    - Camera and Capture functionality is now handled by
>>>>blackberry
>>>> >>> >> javascript API instead of native plugins.
>>>> >>> >>        * This is a step backwards as the blackberry javascript
>>>>API
>>>> >>> >> lacks some features implemented by the native plugins.  Just to
>>>> >>>name a
>>>> >>> >> few: specifying image size for the Camera, and audio recording
>>>>for
>>>> >>> >> Capture.
>>>> >>> >
>>>> >>> >
>>>> >>> > My guess is that Playbook uses the WebWorks API, but BlackBerry
>>>> >>>should
>>>> >>> not
>>>> >>> > be forced to do the same if it provides additional
>>>>functionality.
>>>> >>> >
>>>> >>> > template/project/build.xml:
>>>> >>> >>    - Build has been split up into blackberry.xml and
>>>>playbook.xml.
>>>> >>> >>    - Building a phone app now requires "ant blackberry build"
>>>>where
>>>> >>> >> before it was "ant build".
>>>> >>> >
>>>> >>> >
>>>> >>> > I helped the RIM guys decided on this solution. It was the
>>>>cleanest
>>>> >>> > approach that we could come up with at the same.
>>>> >>> >
>>>> >>> > template/project/www/config.xml:
>>>> >>> >>    - PhoneGap feature is now "com.phonegap" instead of
>>>>"phonegap".
>>>> >>> >>    - New permissions blackberry.media.camera,
>>>>blackberry.identity,
>>>> >>> >> blackberry.ui.dialog, blackberry.system.
>>>> >>> >>        * I'm confused why blackberry.identity and
>>>>blackberry.system
>>>> >>> >> were added since they already exist in the file.  I'm also not
>>>>sure
>>>> >>> >> what is requiring blackberry.ui.dialog.
>>>> >>> >
>>>> >>> >
>>>> >>> > I'm also confused on the duplication and where
>>>>blackberry.ui.dialog
>>>> >>>is
>>>> >>> used.
>>>> >>> >
>>>> >>> > template/project/www/plugins.xml:
>>>> >>> >>    - "Device" is a new required plugin.
>>>> >>> >
>>>> >>> >
>>>> >>> > Yep
>>>> >>> >
>>>> >>> > There are now issues being logged on the missing Playbook APIs.
>>>>Until
>>>> >>> > Playbook supports every PhoneGap API, we should ensure that it
>>>>can
>>>> >>> > gracefully fail on the JavaScript side.
>>>> >>> >
>>>> >>> > Thanks again for posting this thread Drew!
>>>> >>> > Michael
>>>> >>> >
>>>> >>> > On Tue, Dec 6, 2011 at 7:49 AM, Drew Walters <pu...@gmail.com>
>>>> >>>wrote:
>>>> >>> >
>>>> >>> >> I've been playing around with the latest callback-blackberry
>>>>code
>>>> >>> >> which has been merged to include playback support and I have
>>>>run
>>>> >>>into
>>>> >>> >> some things which are worth noting/discussing/fixing.  For
>>>>reference
>>>> >>> >> the code change is here:
>>>> >>> >>
>>>> >>> >>
>>>> >>> >>
>>>> >>>
>>>> >>>
>>>>
>>>>https://github.com/callback/callback-blackberry/commit/19c0e686067e36a5
>>>>6
>>>> >>>3815435f6ed69ee562dbf9d#template/project/www/config.xml
>>>> >>> >>
>>>> >>> >> I've listed below some things which existing BlackBerry
>>>>developers
>>>> >>> >> will need to be made aware of in order to update their existing
>>>> >>> >> projects to 1.3. I've also added notes prefixed with '*' which
>>>>I
>>>> >>>feel
>>>> >>> >> are defects or at least require further discussion.
>>>> >>> >>
>>>> >>> >> framework/ext/src/library.xml:
>>>> >>> >>    - PhoneGap feature is now "com.phonegap" instead of
>>>>"phonegap".
>>>> >>> >>
>>>> >>> >> javascript/capture.js:
>>>> >>> >>    - This is a proper renaming of media.js.
>>>> >>> >>        * Problem is media.js was not deleted so both
>>>>capture.js and
>>>> >>> >> media.js are included and are identical.
>>>> >>> >>
>>>> >>> >> javascript/console.js:
>>>> >>> >>    - console.log is now only defined if console is undefined.
>>>> >>> >> Previously console.log was always defined.
>>>> >>> >>        * I've been testing on OS 6 and console.log never gets
>>>> >>>defined
>>>> >>> >> since console is defined.  This results in console.log not
>>>>working.
>>>> >>> >> I've had to use phonegap.Logger.log instead.
>>>> >>> >>
>>>> >>> >> template/project/project.properties:
>>>> >>> >>    - Properties previously defined in the file are now
>>>>prefixed with
>>>> >>> >> "blackberry".  New properties added for "playbook".
>>>> >>> >>        * I'm confused by "blackberry.sim.password".
>>>>Description
>>>> >>>says
>>>> >>> >> "If you leave this field blank, then you cannot deploy to
>>>> >>>simulator".
>>>> >>> >> I believe this is misleading since the only usage I see for it
>>>>in
>>>> >>> >> blackberry.xml is to load the device (not simulator).
>>>> >>> >>
>>>> >>> >> javascript/webWorksPluginManager.js:
>>>> >>> >>    - Camera and Capture functionality is now handled by
>>>>blackberry
>>>> >>> >> javascript API instead of native plugins.
>>>> >>> >>        * This is a step backwards as the blackberry javascript
>>>>API
>>>> >>> >> lacks some features implemented by the native plugins.  Just to
>>>> >>>name a
>>>> >>> >> few: specifying image size for the Camera, and audio recording
>>>>for
>>>> >>> >> Capture.
>>>> >>> >>
>>>> >>> >> template/project/build.xml:
>>>> >>> >>    - Build has been split up into blackberry.xml and
>>>>playbook.xml.
>>>> >>> >>    - Building a phone app now requires "ant blackberry build"
>>>>where
>>>> >>> >> before it was "ant build".
>>>> >>> >>
>>>> >>> >> template/project/www/config.xml:
>>>> >>> >>    - PhoneGap feature is now "com.phonegap" instead of
>>>>"phonegap".
>>>> >>> >>    - New permissions blackberry.media.camera,
>>>>blackberry.identity,
>>>> >>> >> blackberry.ui.dialog, blackberry.system.
>>>> >>> >>        * I'm confused why blackberry.identity and
>>>>blackberry.system
>>>> >>> >> were added since they already exist in the file.  I'm also not
>>>>sure
>>>> >>> >> what is requiring blackberry.ui.dialog.
>>>> >>> >>
>>>> >>> >> template/project/www/plugins.xml:
>>>> >>> >>    - "Device" is a new required plugin.
>>>> >>> >>
>>>> >>>
>>>> >>
>>>> >>
>>>> >>
>>>> >> --
>>>> >> Dan Silivestru
>>>> >> +1 (519) 589-3624
>>>>
>>>>
>>
>> ---------------------------------------------------------------------
>> This transmission (including any attachments) may contain confidential
>>information, privileged material (including material protected by the
>>solicitor-client or other applicable privileges), or constitute
>>non-public information. Any use of this information by anyone other than
>>the intended recipient is prohibited. If you have received this
>>transmission in error, please immediately reply to the sender and delete
>>this information from your system. Use, dissemination, distribution, or
>>reproduction of this transmission by unintended recipients is not
>>authorized and may be unlawful.


Re: Playbook code merge discussion

Posted by Drew Walters <de...@gmail.com>.
Ok, I've submitted two pull requests which resolve numbers 3 and 4 from my list:

3. Restore camera and capture native functionality.
    https://github.com/callback/callback-blackberry/pull/13

4. Delete duplicate blackberry.identity and blackberry.system feature
ids in config.xml.
    https://github.com/callback/callback-blackberry/pull/12

I tested them on OS 5 and OS 6.  I did not merge them because I did
not test on Playbook.  They are both trivial changes but would like
someone else to verify to make sure I haven't broken Playbook.

On Wed, Dec 14, 2011 at 8:07 PM, Ken Wallis <kw...@rim.com> wrote:
> Gord will look to help fix some of these issues over the next few days.  I assume we don't have write access to Jira, so should we just put on this thread which issues we will take on as we take them on, so as not to duplicate effort?
>
> ----- Original Message -----
> From: Dave Johnson [mailto:dave.c.johnson@gmail.com]
> Sent: Wednesday, December 14, 2011 08:09 PM
> To: callback-dev@incubator.apache.org <ca...@incubator.apache.org>
> Subject: Re: Playbook code merge discussion
>
> Yes it's better if playbook has bugs rather than the smartphone having
> regressions.
>
> In that light what's the fastes route to resolution?
>
> On Wed, Dec 14, 2011 at 4:42 PM, Drew Walters <de...@gmail.com> wrote:
>> What I am pointing out is regressions in the smartphone implementation
>> because of the playbook merge. Everything I listed worked in phonegap 1.2.
>> Not fixing those will break existing apps.
>> On Dec 14, 2011 6:25 PM, "Filip Maj" <fi...@adobe.com> wrote:
>>
>>> I don't think it's a big deal. Yeah some of the APIs are not working, but
>>> frankly these same APIs have issues on the regular smartphone
>>> implementation in callback-blackberry so I don't see the real difference.
>>> If we ship one why not ship both?
>>>
>>> Issues are filed for both playbook and smartphone blackberry
>>> implementations so we know what problems exist. Eventually we will get to
>>> them.
>>>
>>> Both (smartphone and playbook) approaches work too - if you clone the repo
>>> down you can build apps for either the playbook or the smartphone.
>>>
>>>
>>> On 11-12-14 3:15 PM, "Drew Walters" <de...@gmail.com> wrote:
>>>
>>> >Is anyone looking at the changes that need to be made to Blackberry
>>> >based on the Playbook merge?  I will vote to not ship 1.3 until some
>>> >of these issues are fixed.
>>> >
>>> >I'll list what I believe must be fixed before 1.3 can ship:
>>> >
>>> >1. Delete media.js - Done. I pushed this change and subsequent
>>> >reordering of phonegap.js concat for dependencies.
>>> >
>>> >2. Re-enable console.log to write to event log - I coded up a change
>>> >for this which saved any existing console.log definition and re-called
>>> >after writing to event log.  I have not pushed because I'm not sure
>>> >what the Playbook side should do.  playBookPluginManager.js is
>>> >defining the Logger plugin to call console.log which would be an
>>> >infinite loop if console.log is overridden with a PhoneGap.exec.
>>> >
>>> >3. Restore camera and capture native functionality.
>>> >
>>> >4. Delete duplicate blackberry.identity and blackberry.system feature
>>> >ids in config.xml.
>>> >
>>> >I can live with the other differences though they will require
>>> >developers to make changes to their projects when they update to 1.3.
>>> >
>>> >I'm on vacation for two weeks after this Friday so my time to make
>>> >changes is limited.  I'm hesitant to make any change that might affect
>>> >the Playbook implementation since I don't have a Playbook and haven't
>>> >had a chance to setup the environment.
>>> >
>>> >On Wed, Dec 7, 2011 at 9:16 AM, Dan Silivestru <da...@gmail.com>
>>> >wrote:
>>> >> I think blackberry.ui.dialog is used for the notification API. At least
>>> >> that's what it looks like to me based on this:
>>> >>
>>> >>
>>> >>
>>> https://github.com/callback/callback-blackberry/commit/19c0e686067e36a563
>>> >>815435f6ed69ee562dbf9d#L13R194
>>> >>
>>> >> Cheers,
>>> >>
>>> >> Dan.
>>> >>
>>> >> On Tue, Dec 6, 2011 at 1:59 PM, Drew Walters <de...@gmail.com>
>>> wrote:
>>> >>
>>> >>> One other thing I forgot to mention.  Is "playbook" the term we want
>>> >>> to reference in the code/build/etc?  I wonder if it would be more
>>> >>> future proof to call this "bbx".  My understanding is that the
>>> >>> Playbook OS and BBX will be one in the same going forward.  Maybe its
>>> >>> jumping the gun a bit, since BBX isn't available yet, but I'd hate to
>>> >>> have to rename in a couple of months.
>>> >>>
>>> >>> On Tue, Dec 6, 2011 at 11:56 AM, Michael Brooks
>>> >>> <mi...@michaelbrooks.ca> wrote:
>>> >>> > Hi Drew,
>>> >>> >
>>> >>> > Thanks for the summary and details on what's changed.
>>> >>> >
>>> >>> > All of the Playbook support was added by RIM quite a while ago, but
>>> >>>the
>>> >>> > pull request was only merged in recently. During the merge, I didn't
>>> >>>want
>>> >>> > to make unnecessary changes, so I held off of cleaning up parts of
>>> >>>the
>>> >>> > codebase. Now that we've got Playbook support into the BlackBerry
>>> >>> > repository, we can start discussing and cleaning the codebase.
>>> >>> >
>>> >>> > A very important note is that we now need to support both BlackBerry
>>> >>>and
>>> >>> > Playbook. RIM will be handling most of the AIR code, but we need to
>>> >>> ensure
>>> >>> > that JavaScript changes for one platform will not break the other.
>>> >>>So,
>>> >>> all
>>> >>> > callback-blackberry developers are responsible for compiling,
>>> >>>running,
>>> >>> and
>>> >>> > testing both BlackBerry (handheld) and Playbook (tablet).
>>> >>> >
>>> >>> > framework/ext/src/library.xml:
>>> >>> >>    - PhoneGap feature is now "com.phonegap" instead of "phonegap".
>>> >>> >
>>> >>> >
>>> >>> > I'd also like a justification for this change. No other WebWorks
>>> >>> extension
>>> >>> > uses namespaces, so I'm confused why "phonegap" was changed to
>>> >>> > "com.phonegap". If there is no reason, then I would like to see it
>>> >>> changed
>>> >>> > back to "phonegap".
>>> >>> >
>>> >>> > javascript/capture.js:
>>> >>> >>    - This is a proper renaming of media.js.
>>> >>> >>        * Problem is media.js was not deleted so both capture.js and
>>> >>> >> media.js are included and are identical.
>>> >>> >
>>> >>> >
>>> >>> > Good eye. If media.js is redundant, then we should remove it.
>>> >>> >
>>> >>> > javascript/console.js:
>>> >>> >>    - console.log is now only defined if console is undefined.
>>> >>> >> Previously console.log was always defined.
>>> >>> >>        * I've been testing on OS 6 and console.log never gets
>>> >>>defined
>>> >>> >> since console is defined.  This results in console.log not working.
>>> >>> >> I've had to use phonegap.Logger.log instead.
>>> >>> >
>>> >>> >
>>> >>> > Perhaps clobbering console.log was conflicting the the built-in Web
>>> >>> > Inspector for Playbook debugging? We should be holding a reference
>>> >>>to the
>>> >>> > original console.log, overriding it, and then still calling the
>>> >>>original
>>> >>> > reference.
>>> >>> >
>>> >>> > template/project/project.properties:
>>> >>> >>    - Properties previously defined in the file are now prefixed with
>>> >>> >> "blackberry".  New properties added for "playbook".
>>> >>> >>        * I'm confused by "blackberry.sim.password".  Description
>>> >>>says
>>> >>> >> "If you leave this field blank, then you cannot deploy to
>>> >>>simulator".
>>> >>> >> I believe this is misleading since the only usage I see for it in
>>> >>> >> blackberry.xml is to load the device (not simulator).
>>> >>> >
>>> >>> >
>>> >>> > Agreed. propject.properties has become more complicated and I'd like
>>> >>>to
>>> >>> see
>>> >>> > it simplified. I think it's doable.
>>> >>> >
>>> >>> > javascript/webWorksPluginManager.js:
>>> >>> >>    - Camera and Capture functionality is now handled by blackberry
>>> >>> >> javascript API instead of native plugins.
>>> >>> >>        * This is a step backwards as the blackberry javascript API
>>> >>> >> lacks some features implemented by the native plugins.  Just to
>>> >>>name a
>>> >>> >> few: specifying image size for the Camera, and audio recording for
>>> >>> >> Capture.
>>> >>> >
>>> >>> >
>>> >>> > My guess is that Playbook uses the WebWorks API, but BlackBerry
>>> >>>should
>>> >>> not
>>> >>> > be forced to do the same if it provides additional functionality.
>>> >>> >
>>> >>> > template/project/build.xml:
>>> >>> >>    - Build has been split up into blackberry.xml and playbook.xml.
>>> >>> >>    - Building a phone app now requires "ant blackberry build" where
>>> >>> >> before it was "ant build".
>>> >>> >
>>> >>> >
>>> >>> > I helped the RIM guys decided on this solution. It was the cleanest
>>> >>> > approach that we could come up with at the same.
>>> >>> >
>>> >>> > template/project/www/config.xml:
>>> >>> >>    - PhoneGap feature is now "com.phonegap" instead of "phonegap".
>>> >>> >>    - New permissions blackberry.media.camera, blackberry.identity,
>>> >>> >> blackberry.ui.dialog, blackberry.system.
>>> >>> >>        * I'm confused why blackberry.identity and blackberry.system
>>> >>> >> were added since they already exist in the file.  I'm also not sure
>>> >>> >> what is requiring blackberry.ui.dialog.
>>> >>> >
>>> >>> >
>>> >>> > I'm also confused on the duplication and where blackberry.ui.dialog
>>> >>>is
>>> >>> used.
>>> >>> >
>>> >>> > template/project/www/plugins.xml:
>>> >>> >>    - "Device" is a new required plugin.
>>> >>> >
>>> >>> >
>>> >>> > Yep
>>> >>> >
>>> >>> > There are now issues being logged on the missing Playbook APIs. Until
>>> >>> > Playbook supports every PhoneGap API, we should ensure that it can
>>> >>> > gracefully fail on the JavaScript side.
>>> >>> >
>>> >>> > Thanks again for posting this thread Drew!
>>> >>> > Michael
>>> >>> >
>>> >>> > On Tue, Dec 6, 2011 at 7:49 AM, Drew Walters <pu...@gmail.com>
>>> >>>wrote:
>>> >>> >
>>> >>> >> I've been playing around with the latest callback-blackberry code
>>> >>> >> which has been merged to include playback support and I have run
>>> >>>into
>>> >>> >> some things which are worth noting/discussing/fixing.  For reference
>>> >>> >> the code change is here:
>>> >>> >>
>>> >>> >>
>>> >>> >>
>>> >>>
>>> >>>
>>> https://github.com/callback/callback-blackberry/commit/19c0e686067e36a56
>>> >>>3815435f6ed69ee562dbf9d#template/project/www/config.xml
>>> >>> >>
>>> >>> >> I've listed below some things which existing BlackBerry developers
>>> >>> >> will need to be made aware of in order to update their existing
>>> >>> >> projects to 1.3. I've also added notes prefixed with '*' which I
>>> >>>feel
>>> >>> >> are defects or at least require further discussion.
>>> >>> >>
>>> >>> >> framework/ext/src/library.xml:
>>> >>> >>    - PhoneGap feature is now "com.phonegap" instead of "phonegap".
>>> >>> >>
>>> >>> >> javascript/capture.js:
>>> >>> >>    - This is a proper renaming of media.js.
>>> >>> >>        * Problem is media.js was not deleted so both capture.js and
>>> >>> >> media.js are included and are identical.
>>> >>> >>
>>> >>> >> javascript/console.js:
>>> >>> >>    - console.log is now only defined if console is undefined.
>>> >>> >> Previously console.log was always defined.
>>> >>> >>        * I've been testing on OS 6 and console.log never gets
>>> >>>defined
>>> >>> >> since console is defined.  This results in console.log not working.
>>> >>> >> I've had to use phonegap.Logger.log instead.
>>> >>> >>
>>> >>> >> template/project/project.properties:
>>> >>> >>    - Properties previously defined in the file are now prefixed with
>>> >>> >> "blackberry".  New properties added for "playbook".
>>> >>> >>        * I'm confused by "blackberry.sim.password".  Description
>>> >>>says
>>> >>> >> "If you leave this field blank, then you cannot deploy to
>>> >>>simulator".
>>> >>> >> I believe this is misleading since the only usage I see for it in
>>> >>> >> blackberry.xml is to load the device (not simulator).
>>> >>> >>
>>> >>> >> javascript/webWorksPluginManager.js:
>>> >>> >>    - Camera and Capture functionality is now handled by blackberry
>>> >>> >> javascript API instead of native plugins.
>>> >>> >>        * This is a step backwards as the blackberry javascript API
>>> >>> >> lacks some features implemented by the native plugins.  Just to
>>> >>>name a
>>> >>> >> few: specifying image size for the Camera, and audio recording for
>>> >>> >> Capture.
>>> >>> >>
>>> >>> >> template/project/build.xml:
>>> >>> >>    - Build has been split up into blackberry.xml and playbook.xml.
>>> >>> >>    - Building a phone app now requires "ant blackberry build" where
>>> >>> >> before it was "ant build".
>>> >>> >>
>>> >>> >> template/project/www/config.xml:
>>> >>> >>    - PhoneGap feature is now "com.phonegap" instead of "phonegap".
>>> >>> >>    - New permissions blackberry.media.camera, blackberry.identity,
>>> >>> >> blackberry.ui.dialog, blackberry.system.
>>> >>> >>        * I'm confused why blackberry.identity and blackberry.system
>>> >>> >> were added since they already exist in the file.  I'm also not sure
>>> >>> >> what is requiring blackberry.ui.dialog.
>>> >>> >>
>>> >>> >> template/project/www/plugins.xml:
>>> >>> >>    - "Device" is a new required plugin.
>>> >>> >>
>>> >>>
>>> >>
>>> >>
>>> >>
>>> >> --
>>> >> Dan Silivestru
>>> >> +1 (519) 589-3624
>>>
>>>
>
> ---------------------------------------------------------------------
> This transmission (including any attachments) may contain confidential information, privileged material (including material protected by the solicitor-client or other applicable privileges), or constitute non-public information. Any use of this information by anyone other than the intended recipient is prohibited. If you have received this transmission in error, please immediately reply to the sender and delete this information from your system. Use, dissemination, distribution, or reproduction of this transmission by unintended recipients is not authorized and may be unlawful.

Re: Playbook code merge discussion

Posted by Ken Wallis <kw...@rim.com>.
Gord will look to help fix some of these issues over the next few days.  I assume we don't have write access to Jira, so should we just put on this thread which issues we will take on as we take them on, so as not to duplicate effort?

----- Original Message -----
From: Dave Johnson [mailto:dave.c.johnson@gmail.com]
Sent: Wednesday, December 14, 2011 08:09 PM
To: callback-dev@incubator.apache.org <ca...@incubator.apache.org>
Subject: Re: Playbook code merge discussion

Yes it's better if playbook has bugs rather than the smartphone having
regressions.

In that light what's the fastes route to resolution?

On Wed, Dec 14, 2011 at 4:42 PM, Drew Walters <de...@gmail.com> wrote:
> What I am pointing out is regressions in the smartphone implementation
> because of the playbook merge. Everything I listed worked in phonegap 1.2.
> Not fixing those will break existing apps.
> On Dec 14, 2011 6:25 PM, "Filip Maj" <fi...@adobe.com> wrote:
>
>> I don't think it's a big deal. Yeah some of the APIs are not working, but
>> frankly these same APIs have issues on the regular smartphone
>> implementation in callback-blackberry so I don't see the real difference.
>> If we ship one why not ship both?
>>
>> Issues are filed for both playbook and smartphone blackberry
>> implementations so we know what problems exist. Eventually we will get to
>> them.
>>
>> Both (smartphone and playbook) approaches work too - if you clone the repo
>> down you can build apps for either the playbook or the smartphone.
>>
>>
>> On 11-12-14 3:15 PM, "Drew Walters" <de...@gmail.com> wrote:
>>
>> >Is anyone looking at the changes that need to be made to Blackberry
>> >based on the Playbook merge?  I will vote to not ship 1.3 until some
>> >of these issues are fixed.
>> >
>> >I'll list what I believe must be fixed before 1.3 can ship:
>> >
>> >1. Delete media.js - Done. I pushed this change and subsequent
>> >reordering of phonegap.js concat for dependencies.
>> >
>> >2. Re-enable console.log to write to event log - I coded up a change
>> >for this which saved any existing console.log definition and re-called
>> >after writing to event log.  I have not pushed because I'm not sure
>> >what the Playbook side should do.  playBookPluginManager.js is
>> >defining the Logger plugin to call console.log which would be an
>> >infinite loop if console.log is overridden with a PhoneGap.exec.
>> >
>> >3. Restore camera and capture native functionality.
>> >
>> >4. Delete duplicate blackberry.identity and blackberry.system feature
>> >ids in config.xml.
>> >
>> >I can live with the other differences though they will require
>> >developers to make changes to their projects when they update to 1.3.
>> >
>> >I'm on vacation for two weeks after this Friday so my time to make
>> >changes is limited.  I'm hesitant to make any change that might affect
>> >the Playbook implementation since I don't have a Playbook and haven't
>> >had a chance to setup the environment.
>> >
>> >On Wed, Dec 7, 2011 at 9:16 AM, Dan Silivestru <da...@gmail.com>
>> >wrote:
>> >> I think blackberry.ui.dialog is used for the notification API. At least
>> >> that's what it looks like to me based on this:
>> >>
>> >>
>> >>
>> https://github.com/callback/callback-blackberry/commit/19c0e686067e36a563
>> >>815435f6ed69ee562dbf9d#L13R194
>> >>
>> >> Cheers,
>> >>
>> >> Dan.
>> >>
>> >> On Tue, Dec 6, 2011 at 1:59 PM, Drew Walters <de...@gmail.com>
>> wrote:
>> >>
>> >>> One other thing I forgot to mention.  Is "playbook" the term we want
>> >>> to reference in the code/build/etc?  I wonder if it would be more
>> >>> future proof to call this "bbx".  My understanding is that the
>> >>> Playbook OS and BBX will be one in the same going forward.  Maybe its
>> >>> jumping the gun a bit, since BBX isn't available yet, but I'd hate to
>> >>> have to rename in a couple of months.
>> >>>
>> >>> On Tue, Dec 6, 2011 at 11:56 AM, Michael Brooks
>> >>> <mi...@michaelbrooks.ca> wrote:
>> >>> > Hi Drew,
>> >>> >
>> >>> > Thanks for the summary and details on what's changed.
>> >>> >
>> >>> > All of the Playbook support was added by RIM quite a while ago, but
>> >>>the
>> >>> > pull request was only merged in recently. During the merge, I didn't
>> >>>want
>> >>> > to make unnecessary changes, so I held off of cleaning up parts of
>> >>>the
>> >>> > codebase. Now that we've got Playbook support into the BlackBerry
>> >>> > repository, we can start discussing and cleaning the codebase.
>> >>> >
>> >>> > A very important note is that we now need to support both BlackBerry
>> >>>and
>> >>> > Playbook. RIM will be handling most of the AIR code, but we need to
>> >>> ensure
>> >>> > that JavaScript changes for one platform will not break the other.
>> >>>So,
>> >>> all
>> >>> > callback-blackberry developers are responsible for compiling,
>> >>>running,
>> >>> and
>> >>> > testing both BlackBerry (handheld) and Playbook (tablet).
>> >>> >
>> >>> > framework/ext/src/library.xml:
>> >>> >>    - PhoneGap feature is now "com.phonegap" instead of "phonegap".
>> >>> >
>> >>> >
>> >>> > I'd also like a justification for this change. No other WebWorks
>> >>> extension
>> >>> > uses namespaces, so I'm confused why "phonegap" was changed to
>> >>> > "com.phonegap". If there is no reason, then I would like to see it
>> >>> changed
>> >>> > back to "phonegap".
>> >>> >
>> >>> > javascript/capture.js:
>> >>> >>    - This is a proper renaming of media.js.
>> >>> >>        * Problem is media.js was not deleted so both capture.js and
>> >>> >> media.js are included and are identical.
>> >>> >
>> >>> >
>> >>> > Good eye. If media.js is redundant, then we should remove it.
>> >>> >
>> >>> > javascript/console.js:
>> >>> >>    - console.log is now only defined if console is undefined.
>> >>> >> Previously console.log was always defined.
>> >>> >>        * I've been testing on OS 6 and console.log never gets
>> >>>defined
>> >>> >> since console is defined.  This results in console.log not working.
>> >>> >> I've had to use phonegap.Logger.log instead.
>> >>> >
>> >>> >
>> >>> > Perhaps clobbering console.log was conflicting the the built-in Web
>> >>> > Inspector for Playbook debugging? We should be holding a reference
>> >>>to the
>> >>> > original console.log, overriding it, and then still calling the
>> >>>original
>> >>> > reference.
>> >>> >
>> >>> > template/project/project.properties:
>> >>> >>    - Properties previously defined in the file are now prefixed with
>> >>> >> "blackberry".  New properties added for "playbook".
>> >>> >>        * I'm confused by "blackberry.sim.password".  Description
>> >>>says
>> >>> >> "If you leave this field blank, then you cannot deploy to
>> >>>simulator".
>> >>> >> I believe this is misleading since the only usage I see for it in
>> >>> >> blackberry.xml is to load the device (not simulator).
>> >>> >
>> >>> >
>> >>> > Agreed. propject.properties has become more complicated and I'd like
>> >>>to
>> >>> see
>> >>> > it simplified. I think it's doable.
>> >>> >
>> >>> > javascript/webWorksPluginManager.js:
>> >>> >>    - Camera and Capture functionality is now handled by blackberry
>> >>> >> javascript API instead of native plugins.
>> >>> >>        * This is a step backwards as the blackberry javascript API
>> >>> >> lacks some features implemented by the native plugins.  Just to
>> >>>name a
>> >>> >> few: specifying image size for the Camera, and audio recording for
>> >>> >> Capture.
>> >>> >
>> >>> >
>> >>> > My guess is that Playbook uses the WebWorks API, but BlackBerry
>> >>>should
>> >>> not
>> >>> > be forced to do the same if it provides additional functionality.
>> >>> >
>> >>> > template/project/build.xml:
>> >>> >>    - Build has been split up into blackberry.xml and playbook.xml.
>> >>> >>    - Building a phone app now requires "ant blackberry build" where
>> >>> >> before it was "ant build".
>> >>> >
>> >>> >
>> >>> > I helped the RIM guys decided on this solution. It was the cleanest
>> >>> > approach that we could come up with at the same.
>> >>> >
>> >>> > template/project/www/config.xml:
>> >>> >>    - PhoneGap feature is now "com.phonegap" instead of "phonegap".
>> >>> >>    - New permissions blackberry.media.camera, blackberry.identity,
>> >>> >> blackberry.ui.dialog, blackberry.system.
>> >>> >>        * I'm confused why blackberry.identity and blackberry.system
>> >>> >> were added since they already exist in the file.  I'm also not sure
>> >>> >> what is requiring blackberry.ui.dialog.
>> >>> >
>> >>> >
>> >>> > I'm also confused on the duplication and where blackberry.ui.dialog
>> >>>is
>> >>> used.
>> >>> >
>> >>> > template/project/www/plugins.xml:
>> >>> >>    - "Device" is a new required plugin.
>> >>> >
>> >>> >
>> >>> > Yep
>> >>> >
>> >>> > There are now issues being logged on the missing Playbook APIs. Until
>> >>> > Playbook supports every PhoneGap API, we should ensure that it can
>> >>> > gracefully fail on the JavaScript side.
>> >>> >
>> >>> > Thanks again for posting this thread Drew!
>> >>> > Michael
>> >>> >
>> >>> > On Tue, Dec 6, 2011 at 7:49 AM, Drew Walters <pu...@gmail.com>
>> >>>wrote:
>> >>> >
>> >>> >> I've been playing around with the latest callback-blackberry code
>> >>> >> which has been merged to include playback support and I have run
>> >>>into
>> >>> >> some things which are worth noting/discussing/fixing.  For reference
>> >>> >> the code change is here:
>> >>> >>
>> >>> >>
>> >>> >>
>> >>>
>> >>>
>> https://github.com/callback/callback-blackberry/commit/19c0e686067e36a56
>> >>>3815435f6ed69ee562dbf9d#template/project/www/config.xml
>> >>> >>
>> >>> >> I've listed below some things which existing BlackBerry developers
>> >>> >> will need to be made aware of in order to update their existing
>> >>> >> projects to 1.3. I've also added notes prefixed with '*' which I
>> >>>feel
>> >>> >> are defects or at least require further discussion.
>> >>> >>
>> >>> >> framework/ext/src/library.xml:
>> >>> >>    - PhoneGap feature is now "com.phonegap" instead of "phonegap".
>> >>> >>
>> >>> >> javascript/capture.js:
>> >>> >>    - This is a proper renaming of media.js.
>> >>> >>        * Problem is media.js was not deleted so both capture.js and
>> >>> >> media.js are included and are identical.
>> >>> >>
>> >>> >> javascript/console.js:
>> >>> >>    - console.log is now only defined if console is undefined.
>> >>> >> Previously console.log was always defined.
>> >>> >>        * I've been testing on OS 6 and console.log never gets
>> >>>defined
>> >>> >> since console is defined.  This results in console.log not working.
>> >>> >> I've had to use phonegap.Logger.log instead.
>> >>> >>
>> >>> >> template/project/project.properties:
>> >>> >>    - Properties previously defined in the file are now prefixed with
>> >>> >> "blackberry".  New properties added for "playbook".
>> >>> >>        * I'm confused by "blackberry.sim.password".  Description
>> >>>says
>> >>> >> "If you leave this field blank, then you cannot deploy to
>> >>>simulator".
>> >>> >> I believe this is misleading since the only usage I see for it in
>> >>> >> blackberry.xml is to load the device (not simulator).
>> >>> >>
>> >>> >> javascript/webWorksPluginManager.js:
>> >>> >>    - Camera and Capture functionality is now handled by blackberry
>> >>> >> javascript API instead of native plugins.
>> >>> >>        * This is a step backwards as the blackberry javascript API
>> >>> >> lacks some features implemented by the native plugins.  Just to
>> >>>name a
>> >>> >> few: specifying image size for the Camera, and audio recording for
>> >>> >> Capture.
>> >>> >>
>> >>> >> template/project/build.xml:
>> >>> >>    - Build has been split up into blackberry.xml and playbook.xml.
>> >>> >>    - Building a phone app now requires "ant blackberry build" where
>> >>> >> before it was "ant build".
>> >>> >>
>> >>> >> template/project/www/config.xml:
>> >>> >>    - PhoneGap feature is now "com.phonegap" instead of "phonegap".
>> >>> >>    - New permissions blackberry.media.camera, blackberry.identity,
>> >>> >> blackberry.ui.dialog, blackberry.system.
>> >>> >>        * I'm confused why blackberry.identity and blackberry.system
>> >>> >> were added since they already exist in the file.  I'm also not sure
>> >>> >> what is requiring blackberry.ui.dialog.
>> >>> >>
>> >>> >> template/project/www/plugins.xml:
>> >>> >>    - "Device" is a new required plugin.
>> >>> >>
>> >>>
>> >>
>> >>
>> >>
>> >> --
>> >> Dan Silivestru
>> >> +1 (519) 589-3624
>>
>>

---------------------------------------------------------------------
This transmission (including any attachments) may contain confidential information, privileged material (including material protected by the solicitor-client or other applicable privileges), or constitute non-public information. Any use of this information by anyone other than the intended recipient is prohibited. If you have received this transmission in error, please immediately reply to the sender and delete this information from your system. Use, dissemination, distribution, or reproduction of this transmission by unintended recipients is not authorized and may be unlawful.

Re: Playbook code merge discussion

Posted by Dave Johnson <da...@gmail.com>.
Yes it's better if playbook has bugs rather than the smartphone having
regressions.

In that light what's the fastes route to resolution?

On Wed, Dec 14, 2011 at 4:42 PM, Drew Walters <de...@gmail.com> wrote:
> What I am pointing out is regressions in the smartphone implementation
> because of the playbook merge. Everything I listed worked in phonegap 1.2.
> Not fixing those will break existing apps.
> On Dec 14, 2011 6:25 PM, "Filip Maj" <fi...@adobe.com> wrote:
>
>> I don't think it's a big deal. Yeah some of the APIs are not working, but
>> frankly these same APIs have issues on the regular smartphone
>> implementation in callback-blackberry so I don't see the real difference.
>> If we ship one why not ship both?
>>
>> Issues are filed for both playbook and smartphone blackberry
>> implementations so we know what problems exist. Eventually we will get to
>> them.
>>
>> Both (smartphone and playbook) approaches work too - if you clone the repo
>> down you can build apps for either the playbook or the smartphone.
>>
>>
>> On 11-12-14 3:15 PM, "Drew Walters" <de...@gmail.com> wrote:
>>
>> >Is anyone looking at the changes that need to be made to Blackberry
>> >based on the Playbook merge?  I will vote to not ship 1.3 until some
>> >of these issues are fixed.
>> >
>> >I'll list what I believe must be fixed before 1.3 can ship:
>> >
>> >1. Delete media.js - Done. I pushed this change and subsequent
>> >reordering of phonegap.js concat for dependencies.
>> >
>> >2. Re-enable console.log to write to event log - I coded up a change
>> >for this which saved any existing console.log definition and re-called
>> >after writing to event log.  I have not pushed because I'm not sure
>> >what the Playbook side should do.  playBookPluginManager.js is
>> >defining the Logger plugin to call console.log which would be an
>> >infinite loop if console.log is overridden with a PhoneGap.exec.
>> >
>> >3. Restore camera and capture native functionality.
>> >
>> >4. Delete duplicate blackberry.identity and blackberry.system feature
>> >ids in config.xml.
>> >
>> >I can live with the other differences though they will require
>> >developers to make changes to their projects when they update to 1.3.
>> >
>> >I'm on vacation for two weeks after this Friday so my time to make
>> >changes is limited.  I'm hesitant to make any change that might affect
>> >the Playbook implementation since I don't have a Playbook and haven't
>> >had a chance to setup the environment.
>> >
>> >On Wed, Dec 7, 2011 at 9:16 AM, Dan Silivestru <da...@gmail.com>
>> >wrote:
>> >> I think blackberry.ui.dialog is used for the notification API. At least
>> >> that's what it looks like to me based on this:
>> >>
>> >>
>> >>
>> https://github.com/callback/callback-blackberry/commit/19c0e686067e36a563
>> >>815435f6ed69ee562dbf9d#L13R194
>> >>
>> >> Cheers,
>> >>
>> >> Dan.
>> >>
>> >> On Tue, Dec 6, 2011 at 1:59 PM, Drew Walters <de...@gmail.com>
>> wrote:
>> >>
>> >>> One other thing I forgot to mention.  Is "playbook" the term we want
>> >>> to reference in the code/build/etc?  I wonder if it would be more
>> >>> future proof to call this "bbx".  My understanding is that the
>> >>> Playbook OS and BBX will be one in the same going forward.  Maybe its
>> >>> jumping the gun a bit, since BBX isn't available yet, but I'd hate to
>> >>> have to rename in a couple of months.
>> >>>
>> >>> On Tue, Dec 6, 2011 at 11:56 AM, Michael Brooks
>> >>> <mi...@michaelbrooks.ca> wrote:
>> >>> > Hi Drew,
>> >>> >
>> >>> > Thanks for the summary and details on what's changed.
>> >>> >
>> >>> > All of the Playbook support was added by RIM quite a while ago, but
>> >>>the
>> >>> > pull request was only merged in recently. During the merge, I didn't
>> >>>want
>> >>> > to make unnecessary changes, so I held off of cleaning up parts of
>> >>>the
>> >>> > codebase. Now that we've got Playbook support into the BlackBerry
>> >>> > repository, we can start discussing and cleaning the codebase.
>> >>> >
>> >>> > A very important note is that we now need to support both BlackBerry
>> >>>and
>> >>> > Playbook. RIM will be handling most of the AIR code, but we need to
>> >>> ensure
>> >>> > that JavaScript changes for one platform will not break the other.
>> >>>So,
>> >>> all
>> >>> > callback-blackberry developers are responsible for compiling,
>> >>>running,
>> >>> and
>> >>> > testing both BlackBerry (handheld) and Playbook (tablet).
>> >>> >
>> >>> > framework/ext/src/library.xml:
>> >>> >>    - PhoneGap feature is now "com.phonegap" instead of "phonegap".
>> >>> >
>> >>> >
>> >>> > I'd also like a justification for this change. No other WebWorks
>> >>> extension
>> >>> > uses namespaces, so I'm confused why "phonegap" was changed to
>> >>> > "com.phonegap". If there is no reason, then I would like to see it
>> >>> changed
>> >>> > back to "phonegap".
>> >>> >
>> >>> > javascript/capture.js:
>> >>> >>    - This is a proper renaming of media.js.
>> >>> >>        * Problem is media.js was not deleted so both capture.js and
>> >>> >> media.js are included and are identical.
>> >>> >
>> >>> >
>> >>> > Good eye. If media.js is redundant, then we should remove it.
>> >>> >
>> >>> > javascript/console.js:
>> >>> >>    - console.log is now only defined if console is undefined.
>> >>> >> Previously console.log was always defined.
>> >>> >>        * I've been testing on OS 6 and console.log never gets
>> >>>defined
>> >>> >> since console is defined.  This results in console.log not working.
>> >>> >> I've had to use phonegap.Logger.log instead.
>> >>> >
>> >>> >
>> >>> > Perhaps clobbering console.log was conflicting the the built-in Web
>> >>> > Inspector for Playbook debugging? We should be holding a reference
>> >>>to the
>> >>> > original console.log, overriding it, and then still calling the
>> >>>original
>> >>> > reference.
>> >>> >
>> >>> > template/project/project.properties:
>> >>> >>    - Properties previously defined in the file are now prefixed with
>> >>> >> "blackberry".  New properties added for "playbook".
>> >>> >>        * I'm confused by "blackberry.sim.password".  Description
>> >>>says
>> >>> >> "If you leave this field blank, then you cannot deploy to
>> >>>simulator".
>> >>> >> I believe this is misleading since the only usage I see for it in
>> >>> >> blackberry.xml is to load the device (not simulator).
>> >>> >
>> >>> >
>> >>> > Agreed. propject.properties has become more complicated and I'd like
>> >>>to
>> >>> see
>> >>> > it simplified. I think it's doable.
>> >>> >
>> >>> > javascript/webWorksPluginManager.js:
>> >>> >>    - Camera and Capture functionality is now handled by blackberry
>> >>> >> javascript API instead of native plugins.
>> >>> >>        * This is a step backwards as the blackberry javascript API
>> >>> >> lacks some features implemented by the native plugins.  Just to
>> >>>name a
>> >>> >> few: specifying image size for the Camera, and audio recording for
>> >>> >> Capture.
>> >>> >
>> >>> >
>> >>> > My guess is that Playbook uses the WebWorks API, but BlackBerry
>> >>>should
>> >>> not
>> >>> > be forced to do the same if it provides additional functionality.
>> >>> >
>> >>> > template/project/build.xml:
>> >>> >>    - Build has been split up into blackberry.xml and playbook.xml.
>> >>> >>    - Building a phone app now requires "ant blackberry build" where
>> >>> >> before it was "ant build".
>> >>> >
>> >>> >
>> >>> > I helped the RIM guys decided on this solution. It was the cleanest
>> >>> > approach that we could come up with at the same.
>> >>> >
>> >>> > template/project/www/config.xml:
>> >>> >>    - PhoneGap feature is now "com.phonegap" instead of "phonegap".
>> >>> >>    - New permissions blackberry.media.camera, blackberry.identity,
>> >>> >> blackberry.ui.dialog, blackberry.system.
>> >>> >>        * I'm confused why blackberry.identity and blackberry.system
>> >>> >> were added since they already exist in the file.  I'm also not sure
>> >>> >> what is requiring blackberry.ui.dialog.
>> >>> >
>> >>> >
>> >>> > I'm also confused on the duplication and where blackberry.ui.dialog
>> >>>is
>> >>> used.
>> >>> >
>> >>> > template/project/www/plugins.xml:
>> >>> >>    - "Device" is a new required plugin.
>> >>> >
>> >>> >
>> >>> > Yep
>> >>> >
>> >>> > There are now issues being logged on the missing Playbook APIs. Until
>> >>> > Playbook supports every PhoneGap API, we should ensure that it can
>> >>> > gracefully fail on the JavaScript side.
>> >>> >
>> >>> > Thanks again for posting this thread Drew!
>> >>> > Michael
>> >>> >
>> >>> > On Tue, Dec 6, 2011 at 7:49 AM, Drew Walters <pu...@gmail.com>
>> >>>wrote:
>> >>> >
>> >>> >> I've been playing around with the latest callback-blackberry code
>> >>> >> which has been merged to include playback support and I have run
>> >>>into
>> >>> >> some things which are worth noting/discussing/fixing.  For reference
>> >>> >> the code change is here:
>> >>> >>
>> >>> >>
>> >>> >>
>> >>>
>> >>>
>> https://github.com/callback/callback-blackberry/commit/19c0e686067e36a56
>> >>>3815435f6ed69ee562dbf9d#template/project/www/config.xml
>> >>> >>
>> >>> >> I've listed below some things which existing BlackBerry developers
>> >>> >> will need to be made aware of in order to update their existing
>> >>> >> projects to 1.3. I've also added notes prefixed with '*' which I
>> >>>feel
>> >>> >> are defects or at least require further discussion.
>> >>> >>
>> >>> >> framework/ext/src/library.xml:
>> >>> >>    - PhoneGap feature is now "com.phonegap" instead of "phonegap".
>> >>> >>
>> >>> >> javascript/capture.js:
>> >>> >>    - This is a proper renaming of media.js.
>> >>> >>        * Problem is media.js was not deleted so both capture.js and
>> >>> >> media.js are included and are identical.
>> >>> >>
>> >>> >> javascript/console.js:
>> >>> >>    - console.log is now only defined if console is undefined.
>> >>> >> Previously console.log was always defined.
>> >>> >>        * I've been testing on OS 6 and console.log never gets
>> >>>defined
>> >>> >> since console is defined.  This results in console.log not working.
>> >>> >> I've had to use phonegap.Logger.log instead.
>> >>> >>
>> >>> >> template/project/project.properties:
>> >>> >>    - Properties previously defined in the file are now prefixed with
>> >>> >> "blackberry".  New properties added for "playbook".
>> >>> >>        * I'm confused by "blackberry.sim.password".  Description
>> >>>says
>> >>> >> "If you leave this field blank, then you cannot deploy to
>> >>>simulator".
>> >>> >> I believe this is misleading since the only usage I see for it in
>> >>> >> blackberry.xml is to load the device (not simulator).
>> >>> >>
>> >>> >> javascript/webWorksPluginManager.js:
>> >>> >>    - Camera and Capture functionality is now handled by blackberry
>> >>> >> javascript API instead of native plugins.
>> >>> >>        * This is a step backwards as the blackberry javascript API
>> >>> >> lacks some features implemented by the native plugins.  Just to
>> >>>name a
>> >>> >> few: specifying image size for the Camera, and audio recording for
>> >>> >> Capture.
>> >>> >>
>> >>> >> template/project/build.xml:
>> >>> >>    - Build has been split up into blackberry.xml and playbook.xml.
>> >>> >>    - Building a phone app now requires "ant blackberry build" where
>> >>> >> before it was "ant build".
>> >>> >>
>> >>> >> template/project/www/config.xml:
>> >>> >>    - PhoneGap feature is now "com.phonegap" instead of "phonegap".
>> >>> >>    - New permissions blackberry.media.camera, blackberry.identity,
>> >>> >> blackberry.ui.dialog, blackberry.system.
>> >>> >>        * I'm confused why blackberry.identity and blackberry.system
>> >>> >> were added since they already exist in the file.  I'm also not sure
>> >>> >> what is requiring blackberry.ui.dialog.
>> >>> >>
>> >>> >> template/project/www/plugins.xml:
>> >>> >>    - "Device" is a new required plugin.
>> >>> >>
>> >>>
>> >>
>> >>
>> >>
>> >> --
>> >> Dan Silivestru
>> >> +1 (519) 589-3624
>>
>>

Re: Playbook code merge discussion

Posted by Simon MacDonald <si...@gmail.com>.
I'm with Drew on this one. PhoneGap 1.3 should be at least as good as 1.2.
If we've identified areas where we've regressed they should be fixed before
we ship 1.3.

Simon
On Dec 14, 2011 7:42 PM, "Drew Walters" <de...@gmail.com> wrote:

> What I am pointing out is regressions in the smartphone implementation
> because of the playbook merge. Everything I listed worked in phonegap 1.2.
> Not fixing those will break existing apps.
> On Dec 14, 2011 6:25 PM, "Filip Maj" <fi...@adobe.com> wrote:
>
> > I don't think it's a big deal. Yeah some of the APIs are not working, but
> > frankly these same APIs have issues on the regular smartphone
> > implementation in callback-blackberry so I don't see the real difference.
> > If we ship one why not ship both?
> >
> > Issues are filed for both playbook and smartphone blackberry
> > implementations so we know what problems exist. Eventually we will get to
> > them.
> >
> > Both (smartphone and playbook) approaches work too - if you clone the
> repo
> > down you can build apps for either the playbook or the smartphone.
> >
> >
> > On 11-12-14 3:15 PM, "Drew Walters" <de...@gmail.com> wrote:
> >
> > >Is anyone looking at the changes that need to be made to Blackberry
> > >based on the Playbook merge?  I will vote to not ship 1.3 until some
> > >of these issues are fixed.
> > >
> > >I'll list what I believe must be fixed before 1.3 can ship:
> > >
> > >1. Delete media.js - Done. I pushed this change and subsequent
> > >reordering of phonegap.js concat for dependencies.
> > >
> > >2. Re-enable console.log to write to event log - I coded up a change
> > >for this which saved any existing console.log definition and re-called
> > >after writing to event log.  I have not pushed because I'm not sure
> > >what the Playbook side should do.  playBookPluginManager.js is
> > >defining the Logger plugin to call console.log which would be an
> > >infinite loop if console.log is overridden with a PhoneGap.exec.
> > >
> > >3. Restore camera and capture native functionality.
> > >
> > >4. Delete duplicate blackberry.identity and blackberry.system feature
> > >ids in config.xml.
> > >
> > >I can live with the other differences though they will require
> > >developers to make changes to their projects when they update to 1.3.
> > >
> > >I'm on vacation for two weeks after this Friday so my time to make
> > >changes is limited.  I'm hesitant to make any change that might affect
> > >the Playbook implementation since I don't have a Playbook and haven't
> > >had a chance to setup the environment.
> > >
> > >On Wed, Dec 7, 2011 at 9:16 AM, Dan Silivestru <
> dan.silivestru@gmail.com>
> > >wrote:
> > >> I think blackberry.ui.dialog is used for the notification API. At
> least
> > >> that's what it looks like to me based on this:
> > >>
> > >>
> > >>
> >
> https://github.com/callback/callback-blackberry/commit/19c0e686067e36a563
> > >>815435f6ed69ee562dbf9d#L13R194
> > >>
> > >> Cheers,
> > >>
> > >> Dan.
> > >>
> > >> On Tue, Dec 6, 2011 at 1:59 PM, Drew Walters <de...@gmail.com>
> > wrote:
> > >>
> > >>> One other thing I forgot to mention.  Is "playbook" the term we want
> > >>> to reference in the code/build/etc?  I wonder if it would be more
> > >>> future proof to call this "bbx".  My understanding is that the
> > >>> Playbook OS and BBX will be one in the same going forward.  Maybe its
> > >>> jumping the gun a bit, since BBX isn't available yet, but I'd hate to
> > >>> have to rename in a couple of months.
> > >>>
> > >>> On Tue, Dec 6, 2011 at 11:56 AM, Michael Brooks
> > >>> <mi...@michaelbrooks.ca> wrote:
> > >>> > Hi Drew,
> > >>> >
> > >>> > Thanks for the summary and details on what's changed.
> > >>> >
> > >>> > All of the Playbook support was added by RIM quite a while ago, but
> > >>>the
> > >>> > pull request was only merged in recently. During the merge, I
> didn't
> > >>>want
> > >>> > to make unnecessary changes, so I held off of cleaning up parts of
> > >>>the
> > >>> > codebase. Now that we've got Playbook support into the BlackBerry
> > >>> > repository, we can start discussing and cleaning the codebase.
> > >>> >
> > >>> > A very important note is that we now need to support both
> BlackBerry
> > >>>and
> > >>> > Playbook. RIM will be handling most of the AIR code, but we need to
> > >>> ensure
> > >>> > that JavaScript changes for one platform will not break the other.
> > >>>So,
> > >>> all
> > >>> > callback-blackberry developers are responsible for compiling,
> > >>>running,
> > >>> and
> > >>> > testing both BlackBerry (handheld) and Playbook (tablet).
> > >>> >
> > >>> > framework/ext/src/library.xml:
> > >>> >>    - PhoneGap feature is now "com.phonegap" instead of "phonegap".
> > >>> >
> > >>> >
> > >>> > I'd also like a justification for this change. No other WebWorks
> > >>> extension
> > >>> > uses namespaces, so I'm confused why "phonegap" was changed to
> > >>> > "com.phonegap". If there is no reason, then I would like to see it
> > >>> changed
> > >>> > back to "phonegap".
> > >>> >
> > >>> > javascript/capture.js:
> > >>> >>    - This is a proper renaming of media.js.
> > >>> >>        * Problem is media.js was not deleted so both capture.js
> and
> > >>> >> media.js are included and are identical.
> > >>> >
> > >>> >
> > >>> > Good eye. If media.js is redundant, then we should remove it.
> > >>> >
> > >>> > javascript/console.js:
> > >>> >>    - console.log is now only defined if console is undefined.
> > >>> >> Previously console.log was always defined.
> > >>> >>        * I've been testing on OS 6 and console.log never gets
> > >>>defined
> > >>> >> since console is defined.  This results in console.log not
> working.
> > >>> >> I've had to use phonegap.Logger.log instead.
> > >>> >
> > >>> >
> > >>> > Perhaps clobbering console.log was conflicting the the built-in Web
> > >>> > Inspector for Playbook debugging? We should be holding a reference
> > >>>to the
> > >>> > original console.log, overriding it, and then still calling the
> > >>>original
> > >>> > reference.
> > >>> >
> > >>> > template/project/project.properties:
> > >>> >>    - Properties previously defined in the file are now prefixed
> with
> > >>> >> "blackberry".  New properties added for "playbook".
> > >>> >>        * I'm confused by "blackberry.sim.password".  Description
> > >>>says
> > >>> >> "If you leave this field blank, then you cannot deploy to
> > >>>simulator".
> > >>> >> I believe this is misleading since the only usage I see for it in
> > >>> >> blackberry.xml is to load the device (not simulator).
> > >>> >
> > >>> >
> > >>> > Agreed. propject.properties has become more complicated and I'd
> like
> > >>>to
> > >>> see
> > >>> > it simplified. I think it's doable.
> > >>> >
> > >>> > javascript/webWorksPluginManager.js:
> > >>> >>    - Camera and Capture functionality is now handled by blackberry
> > >>> >> javascript API instead of native plugins.
> > >>> >>        * This is a step backwards as the blackberry javascript API
> > >>> >> lacks some features implemented by the native plugins.  Just to
> > >>>name a
> > >>> >> few: specifying image size for the Camera, and audio recording for
> > >>> >> Capture.
> > >>> >
> > >>> >
> > >>> > My guess is that Playbook uses the WebWorks API, but BlackBerry
> > >>>should
> > >>> not
> > >>> > be forced to do the same if it provides additional functionality.
> > >>> >
> > >>> > template/project/build.xml:
> > >>> >>    - Build has been split up into blackberry.xml and playbook.xml.
> > >>> >>    - Building a phone app now requires "ant blackberry build"
> where
> > >>> >> before it was "ant build".
> > >>> >
> > >>> >
> > >>> > I helped the RIM guys decided on this solution. It was the cleanest
> > >>> > approach that we could come up with at the same.
> > >>> >
> > >>> > template/project/www/config.xml:
> > >>> >>    - PhoneGap feature is now "com.phonegap" instead of "phonegap".
> > >>> >>    - New permissions blackberry.media.camera, blackberry.identity,
> > >>> >> blackberry.ui.dialog, blackberry.system.
> > >>> >>        * I'm confused why blackberry.identity and
> blackberry.system
> > >>> >> were added since they already exist in the file.  I'm also not
> sure
> > >>> >> what is requiring blackberry.ui.dialog.
> > >>> >
> > >>> >
> > >>> > I'm also confused on the duplication and where blackberry.ui.dialog
> > >>>is
> > >>> used.
> > >>> >
> > >>> > template/project/www/plugins.xml:
> > >>> >>    - "Device" is a new required plugin.
> > >>> >
> > >>> >
> > >>> > Yep
> > >>> >
> > >>> > There are now issues being logged on the missing Playbook APIs.
> Until
> > >>> > Playbook supports every PhoneGap API, we should ensure that it can
> > >>> > gracefully fail on the JavaScript side.
> > >>> >
> > >>> > Thanks again for posting this thread Drew!
> > >>> > Michael
> > >>> >
> > >>> > On Tue, Dec 6, 2011 at 7:49 AM, Drew Walters <pu...@gmail.com>
> > >>>wrote:
> > >>> >
> > >>> >> I've been playing around with the latest callback-blackberry code
> > >>> >> which has been merged to include playback support and I have run
> > >>>into
> > >>> >> some things which are worth noting/discussing/fixing.  For
> reference
> > >>> >> the code change is here:
> > >>> >>
> > >>> >>
> > >>> >>
> > >>>
> > >>>
> > https://github.com/callback/callback-blackberry/commit/19c0e686067e36a56
> > >>>3815435f6ed69ee562dbf9d#template/project/www/config.xml
> > >>> >>
> > >>> >> I've listed below some things which existing BlackBerry developers
> > >>> >> will need to be made aware of in order to update their existing
> > >>> >> projects to 1.3. I've also added notes prefixed with '*' which I
> > >>>feel
> > >>> >> are defects or at least require further discussion.
> > >>> >>
> > >>> >> framework/ext/src/library.xml:
> > >>> >>    - PhoneGap feature is now "com.phonegap" instead of "phonegap".
> > >>> >>
> > >>> >> javascript/capture.js:
> > >>> >>    - This is a proper renaming of media.js.
> > >>> >>        * Problem is media.js was not deleted so both capture.js
> and
> > >>> >> media.js are included and are identical.
> > >>> >>
> > >>> >> javascript/console.js:
> > >>> >>    - console.log is now only defined if console is undefined.
> > >>> >> Previously console.log was always defined.
> > >>> >>        * I've been testing on OS 6 and console.log never gets
> > >>>defined
> > >>> >> since console is defined.  This results in console.log not
> working.
> > >>> >> I've had to use phonegap.Logger.log instead.
> > >>> >>
> > >>> >> template/project/project.properties:
> > >>> >>    - Properties previously defined in the file are now prefixed
> with
> > >>> >> "blackberry".  New properties added for "playbook".
> > >>> >>        * I'm confused by "blackberry.sim.password".  Description
> > >>>says
> > >>> >> "If you leave this field blank, then you cannot deploy to
> > >>>simulator".
> > >>> >> I believe this is misleading since the only usage I see for it in
> > >>> >> blackberry.xml is to load the device (not simulator).
> > >>> >>
> > >>> >> javascript/webWorksPluginManager.js:
> > >>> >>    - Camera and Capture functionality is now handled by blackberry
> > >>> >> javascript API instead of native plugins.
> > >>> >>        * This is a step backwards as the blackberry javascript API
> > >>> >> lacks some features implemented by the native plugins.  Just to
> > >>>name a
> > >>> >> few: specifying image size for the Camera, and audio recording for
> > >>> >> Capture.
> > >>> >>
> > >>> >> template/project/build.xml:
> > >>> >>    - Build has been split up into blackberry.xml and playbook.xml.
> > >>> >>    - Building a phone app now requires "ant blackberry build"
> where
> > >>> >> before it was "ant build".
> > >>> >>
> > >>> >> template/project/www/config.xml:
> > >>> >>    - PhoneGap feature is now "com.phonegap" instead of "phonegap".
> > >>> >>    - New permissions blackberry.media.camera, blackberry.identity,
> > >>> >> blackberry.ui.dialog, blackberry.system.
> > >>> >>        * I'm confused why blackberry.identity and
> blackberry.system
> > >>> >> were added since they already exist in the file.  I'm also not
> sure
> > >>> >> what is requiring blackberry.ui.dialog.
> > >>> >>
> > >>> >> template/project/www/plugins.xml:
> > >>> >>    - "Device" is a new required plugin.
> > >>> >>
> > >>>
> > >>
> > >>
> > >>
> > >> --
> > >> Dan Silivestru
> > >> +1 (519) 589-3624
> >
> >
>

Re: Playbook code merge discussion

Posted by Drew Walters <de...@gmail.com>.
What I am pointing out is regressions in the smartphone implementation
because of the playbook merge. Everything I listed worked in phonegap 1.2.
Not fixing those will break existing apps.
On Dec 14, 2011 6:25 PM, "Filip Maj" <fi...@adobe.com> wrote:

> I don't think it's a big deal. Yeah some of the APIs are not working, but
> frankly these same APIs have issues on the regular smartphone
> implementation in callback-blackberry so I don't see the real difference.
> If we ship one why not ship both?
>
> Issues are filed for both playbook and smartphone blackberry
> implementations so we know what problems exist. Eventually we will get to
> them.
>
> Both (smartphone and playbook) approaches work too - if you clone the repo
> down you can build apps for either the playbook or the smartphone.
>
>
> On 11-12-14 3:15 PM, "Drew Walters" <de...@gmail.com> wrote:
>
> >Is anyone looking at the changes that need to be made to Blackberry
> >based on the Playbook merge?  I will vote to not ship 1.3 until some
> >of these issues are fixed.
> >
> >I'll list what I believe must be fixed before 1.3 can ship:
> >
> >1. Delete media.js - Done. I pushed this change and subsequent
> >reordering of phonegap.js concat for dependencies.
> >
> >2. Re-enable console.log to write to event log - I coded up a change
> >for this which saved any existing console.log definition and re-called
> >after writing to event log.  I have not pushed because I'm not sure
> >what the Playbook side should do.  playBookPluginManager.js is
> >defining the Logger plugin to call console.log which would be an
> >infinite loop if console.log is overridden with a PhoneGap.exec.
> >
> >3. Restore camera and capture native functionality.
> >
> >4. Delete duplicate blackberry.identity and blackberry.system feature
> >ids in config.xml.
> >
> >I can live with the other differences though they will require
> >developers to make changes to their projects when they update to 1.3.
> >
> >I'm on vacation for two weeks after this Friday so my time to make
> >changes is limited.  I'm hesitant to make any change that might affect
> >the Playbook implementation since I don't have a Playbook and haven't
> >had a chance to setup the environment.
> >
> >On Wed, Dec 7, 2011 at 9:16 AM, Dan Silivestru <da...@gmail.com>
> >wrote:
> >> I think blackberry.ui.dialog is used for the notification API. At least
> >> that's what it looks like to me based on this:
> >>
> >>
> >>
> https://github.com/callback/callback-blackberry/commit/19c0e686067e36a563
> >>815435f6ed69ee562dbf9d#L13R194
> >>
> >> Cheers,
> >>
> >> Dan.
> >>
> >> On Tue, Dec 6, 2011 at 1:59 PM, Drew Walters <de...@gmail.com>
> wrote:
> >>
> >>> One other thing I forgot to mention.  Is "playbook" the term we want
> >>> to reference in the code/build/etc?  I wonder if it would be more
> >>> future proof to call this "bbx".  My understanding is that the
> >>> Playbook OS and BBX will be one in the same going forward.  Maybe its
> >>> jumping the gun a bit, since BBX isn't available yet, but I'd hate to
> >>> have to rename in a couple of months.
> >>>
> >>> On Tue, Dec 6, 2011 at 11:56 AM, Michael Brooks
> >>> <mi...@michaelbrooks.ca> wrote:
> >>> > Hi Drew,
> >>> >
> >>> > Thanks for the summary and details on what's changed.
> >>> >
> >>> > All of the Playbook support was added by RIM quite a while ago, but
> >>>the
> >>> > pull request was only merged in recently. During the merge, I didn't
> >>>want
> >>> > to make unnecessary changes, so I held off of cleaning up parts of
> >>>the
> >>> > codebase. Now that we've got Playbook support into the BlackBerry
> >>> > repository, we can start discussing and cleaning the codebase.
> >>> >
> >>> > A very important note is that we now need to support both BlackBerry
> >>>and
> >>> > Playbook. RIM will be handling most of the AIR code, but we need to
> >>> ensure
> >>> > that JavaScript changes for one platform will not break the other.
> >>>So,
> >>> all
> >>> > callback-blackberry developers are responsible for compiling,
> >>>running,
> >>> and
> >>> > testing both BlackBerry (handheld) and Playbook (tablet).
> >>> >
> >>> > framework/ext/src/library.xml:
> >>> >>    - PhoneGap feature is now "com.phonegap" instead of "phonegap".
> >>> >
> >>> >
> >>> > I'd also like a justification for this change. No other WebWorks
> >>> extension
> >>> > uses namespaces, so I'm confused why "phonegap" was changed to
> >>> > "com.phonegap". If there is no reason, then I would like to see it
> >>> changed
> >>> > back to "phonegap".
> >>> >
> >>> > javascript/capture.js:
> >>> >>    - This is a proper renaming of media.js.
> >>> >>        * Problem is media.js was not deleted so both capture.js and
> >>> >> media.js are included and are identical.
> >>> >
> >>> >
> >>> > Good eye. If media.js is redundant, then we should remove it.
> >>> >
> >>> > javascript/console.js:
> >>> >>    - console.log is now only defined if console is undefined.
> >>> >> Previously console.log was always defined.
> >>> >>        * I've been testing on OS 6 and console.log never gets
> >>>defined
> >>> >> since console is defined.  This results in console.log not working.
> >>> >> I've had to use phonegap.Logger.log instead.
> >>> >
> >>> >
> >>> > Perhaps clobbering console.log was conflicting the the built-in Web
> >>> > Inspector for Playbook debugging? We should be holding a reference
> >>>to the
> >>> > original console.log, overriding it, and then still calling the
> >>>original
> >>> > reference.
> >>> >
> >>> > template/project/project.properties:
> >>> >>    - Properties previously defined in the file are now prefixed with
> >>> >> "blackberry".  New properties added for "playbook".
> >>> >>        * I'm confused by "blackberry.sim.password".  Description
> >>>says
> >>> >> "If you leave this field blank, then you cannot deploy to
> >>>simulator".
> >>> >> I believe this is misleading since the only usage I see for it in
> >>> >> blackberry.xml is to load the device (not simulator).
> >>> >
> >>> >
> >>> > Agreed. propject.properties has become more complicated and I'd like
> >>>to
> >>> see
> >>> > it simplified. I think it's doable.
> >>> >
> >>> > javascript/webWorksPluginManager.js:
> >>> >>    - Camera and Capture functionality is now handled by blackberry
> >>> >> javascript API instead of native plugins.
> >>> >>        * This is a step backwards as the blackberry javascript API
> >>> >> lacks some features implemented by the native plugins.  Just to
> >>>name a
> >>> >> few: specifying image size for the Camera, and audio recording for
> >>> >> Capture.
> >>> >
> >>> >
> >>> > My guess is that Playbook uses the WebWorks API, but BlackBerry
> >>>should
> >>> not
> >>> > be forced to do the same if it provides additional functionality.
> >>> >
> >>> > template/project/build.xml:
> >>> >>    - Build has been split up into blackberry.xml and playbook.xml.
> >>> >>    - Building a phone app now requires "ant blackberry build" where
> >>> >> before it was "ant build".
> >>> >
> >>> >
> >>> > I helped the RIM guys decided on this solution. It was the cleanest
> >>> > approach that we could come up with at the same.
> >>> >
> >>> > template/project/www/config.xml:
> >>> >>    - PhoneGap feature is now "com.phonegap" instead of "phonegap".
> >>> >>    - New permissions blackberry.media.camera, blackberry.identity,
> >>> >> blackberry.ui.dialog, blackberry.system.
> >>> >>        * I'm confused why blackberry.identity and blackberry.system
> >>> >> were added since they already exist in the file.  I'm also not sure
> >>> >> what is requiring blackberry.ui.dialog.
> >>> >
> >>> >
> >>> > I'm also confused on the duplication and where blackberry.ui.dialog
> >>>is
> >>> used.
> >>> >
> >>> > template/project/www/plugins.xml:
> >>> >>    - "Device" is a new required plugin.
> >>> >
> >>> >
> >>> > Yep
> >>> >
> >>> > There are now issues being logged on the missing Playbook APIs. Until
> >>> > Playbook supports every PhoneGap API, we should ensure that it can
> >>> > gracefully fail on the JavaScript side.
> >>> >
> >>> > Thanks again for posting this thread Drew!
> >>> > Michael
> >>> >
> >>> > On Tue, Dec 6, 2011 at 7:49 AM, Drew Walters <pu...@gmail.com>
> >>>wrote:
> >>> >
> >>> >> I've been playing around with the latest callback-blackberry code
> >>> >> which has been merged to include playback support and I have run
> >>>into
> >>> >> some things which are worth noting/discussing/fixing.  For reference
> >>> >> the code change is here:
> >>> >>
> >>> >>
> >>> >>
> >>>
> >>>
> https://github.com/callback/callback-blackberry/commit/19c0e686067e36a56
> >>>3815435f6ed69ee562dbf9d#template/project/www/config.xml
> >>> >>
> >>> >> I've listed below some things which existing BlackBerry developers
> >>> >> will need to be made aware of in order to update their existing
> >>> >> projects to 1.3. I've also added notes prefixed with '*' which I
> >>>feel
> >>> >> are defects or at least require further discussion.
> >>> >>
> >>> >> framework/ext/src/library.xml:
> >>> >>    - PhoneGap feature is now "com.phonegap" instead of "phonegap".
> >>> >>
> >>> >> javascript/capture.js:
> >>> >>    - This is a proper renaming of media.js.
> >>> >>        * Problem is media.js was not deleted so both capture.js and
> >>> >> media.js are included and are identical.
> >>> >>
> >>> >> javascript/console.js:
> >>> >>    - console.log is now only defined if console is undefined.
> >>> >> Previously console.log was always defined.
> >>> >>        * I've been testing on OS 6 and console.log never gets
> >>>defined
> >>> >> since console is defined.  This results in console.log not working.
> >>> >> I've had to use phonegap.Logger.log instead.
> >>> >>
> >>> >> template/project/project.properties:
> >>> >>    - Properties previously defined in the file are now prefixed with
> >>> >> "blackberry".  New properties added for "playbook".
> >>> >>        * I'm confused by "blackberry.sim.password".  Description
> >>>says
> >>> >> "If you leave this field blank, then you cannot deploy to
> >>>simulator".
> >>> >> I believe this is misleading since the only usage I see for it in
> >>> >> blackberry.xml is to load the device (not simulator).
> >>> >>
> >>> >> javascript/webWorksPluginManager.js:
> >>> >>    - Camera and Capture functionality is now handled by blackberry
> >>> >> javascript API instead of native plugins.
> >>> >>        * This is a step backwards as the blackberry javascript API
> >>> >> lacks some features implemented by the native plugins.  Just to
> >>>name a
> >>> >> few: specifying image size for the Camera, and audio recording for
> >>> >> Capture.
> >>> >>
> >>> >> template/project/build.xml:
> >>> >>    - Build has been split up into blackberry.xml and playbook.xml.
> >>> >>    - Building a phone app now requires "ant blackberry build" where
> >>> >> before it was "ant build".
> >>> >>
> >>> >> template/project/www/config.xml:
> >>> >>    - PhoneGap feature is now "com.phonegap" instead of "phonegap".
> >>> >>    - New permissions blackberry.media.camera, blackberry.identity,
> >>> >> blackberry.ui.dialog, blackberry.system.
> >>> >>        * I'm confused why blackberry.identity and blackberry.system
> >>> >> were added since they already exist in the file.  I'm also not sure
> >>> >> what is requiring blackberry.ui.dialog.
> >>> >>
> >>> >> template/project/www/plugins.xml:
> >>> >>    - "Device" is a new required plugin.
> >>> >>
> >>>
> >>
> >>
> >>
> >> --
> >> Dan Silivestru
> >> +1 (519) 589-3624
>
>

Re: Playbook code merge discussion

Posted by Filip Maj <fi...@adobe.com>.
I don't think it's a big deal. Yeah some of the APIs are not working, but
frankly these same APIs have issues on the regular smartphone
implementation in callback-blackberry so I don't see the real difference.
If we ship one why not ship both?

Issues are filed for both playbook and smartphone blackberry
implementations so we know what problems exist. Eventually we will get to
them.

Both (smartphone and playbook) approaches work too - if you clone the repo
down you can build apps for either the playbook or the smartphone.


On 11-12-14 3:15 PM, "Drew Walters" <de...@gmail.com> wrote:

>Is anyone looking at the changes that need to be made to Blackberry
>based on the Playbook merge?  I will vote to not ship 1.3 until some
>of these issues are fixed.
>
>I'll list what I believe must be fixed before 1.3 can ship:
>
>1. Delete media.js - Done. I pushed this change and subsequent
>reordering of phonegap.js concat for dependencies.
>
>2. Re-enable console.log to write to event log - I coded up a change
>for this which saved any existing console.log definition and re-called
>after writing to event log.  I have not pushed because I'm not sure
>what the Playbook side should do.  playBookPluginManager.js is
>defining the Logger plugin to call console.log which would be an
>infinite loop if console.log is overridden with a PhoneGap.exec.
>
>3. Restore camera and capture native functionality.
>
>4. Delete duplicate blackberry.identity and blackberry.system feature
>ids in config.xml.
>
>I can live with the other differences though they will require
>developers to make changes to their projects when they update to 1.3.
>
>I'm on vacation for two weeks after this Friday so my time to make
>changes is limited.  I'm hesitant to make any change that might affect
>the Playbook implementation since I don't have a Playbook and haven't
>had a chance to setup the environment.
>
>On Wed, Dec 7, 2011 at 9:16 AM, Dan Silivestru <da...@gmail.com>
>wrote:
>> I think blackberry.ui.dialog is used for the notification API. At least
>> that's what it looks like to me based on this:
>>
>> 
>>https://github.com/callback/callback-blackberry/commit/19c0e686067e36a563
>>815435f6ed69ee562dbf9d#L13R194
>>
>> Cheers,
>>
>> Dan.
>>
>> On Tue, Dec 6, 2011 at 1:59 PM, Drew Walters <de...@gmail.com> wrote:
>>
>>> One other thing I forgot to mention.  Is "playbook" the term we want
>>> to reference in the code/build/etc?  I wonder if it would be more
>>> future proof to call this "bbx".  My understanding is that the
>>> Playbook OS and BBX will be one in the same going forward.  Maybe its
>>> jumping the gun a bit, since BBX isn't available yet, but I'd hate to
>>> have to rename in a couple of months.
>>>
>>> On Tue, Dec 6, 2011 at 11:56 AM, Michael Brooks
>>> <mi...@michaelbrooks.ca> wrote:
>>> > Hi Drew,
>>> >
>>> > Thanks for the summary and details on what's changed.
>>> >
>>> > All of the Playbook support was added by RIM quite a while ago, but
>>>the
>>> > pull request was only merged in recently. During the merge, I didn't
>>>want
>>> > to make unnecessary changes, so I held off of cleaning up parts of
>>>the
>>> > codebase. Now that we've got Playbook support into the BlackBerry
>>> > repository, we can start discussing and cleaning the codebase.
>>> >
>>> > A very important note is that we now need to support both BlackBerry
>>>and
>>> > Playbook. RIM will be handling most of the AIR code, but we need to
>>> ensure
>>> > that JavaScript changes for one platform will not break the other.
>>>So,
>>> all
>>> > callback-blackberry developers are responsible for compiling,
>>>running,
>>> and
>>> > testing both BlackBerry (handheld) and Playbook (tablet).
>>> >
>>> > framework/ext/src/library.xml:
>>> >>    - PhoneGap feature is now "com.phonegap" instead of "phonegap".
>>> >
>>> >
>>> > I'd also like a justification for this change. No other WebWorks
>>> extension
>>> > uses namespaces, so I'm confused why "phonegap" was changed to
>>> > "com.phonegap". If there is no reason, then I would like to see it
>>> changed
>>> > back to "phonegap".
>>> >
>>> > javascript/capture.js:
>>> >>    - This is a proper renaming of media.js.
>>> >>        * Problem is media.js was not deleted so both capture.js and
>>> >> media.js are included and are identical.
>>> >
>>> >
>>> > Good eye. If media.js is redundant, then we should remove it.
>>> >
>>> > javascript/console.js:
>>> >>    - console.log is now only defined if console is undefined.
>>> >> Previously console.log was always defined.
>>> >>        * I've been testing on OS 6 and console.log never gets
>>>defined
>>> >> since console is defined.  This results in console.log not working.
>>> >> I've had to use phonegap.Logger.log instead.
>>> >
>>> >
>>> > Perhaps clobbering console.log was conflicting the the built-in Web
>>> > Inspector for Playbook debugging? We should be holding a reference
>>>to the
>>> > original console.log, overriding it, and then still calling the
>>>original
>>> > reference.
>>> >
>>> > template/project/project.properties:
>>> >>    - Properties previously defined in the file are now prefixed with
>>> >> "blackberry".  New properties added for "playbook".
>>> >>        * I'm confused by "blackberry.sim.password".  Description
>>>says
>>> >> "If you leave this field blank, then you cannot deploy to
>>>simulator".
>>> >> I believe this is misleading since the only usage I see for it in
>>> >> blackberry.xml is to load the device (not simulator).
>>> >
>>> >
>>> > Agreed. propject.properties has become more complicated and I'd like
>>>to
>>> see
>>> > it simplified. I think it's doable.
>>> >
>>> > javascript/webWorksPluginManager.js:
>>> >>    - Camera and Capture functionality is now handled by blackberry
>>> >> javascript API instead of native plugins.
>>> >>        * This is a step backwards as the blackberry javascript API
>>> >> lacks some features implemented by the native plugins.  Just to
>>>name a
>>> >> few: specifying image size for the Camera, and audio recording for
>>> >> Capture.
>>> >
>>> >
>>> > My guess is that Playbook uses the WebWorks API, but BlackBerry
>>>should
>>> not
>>> > be forced to do the same if it provides additional functionality.
>>> >
>>> > template/project/build.xml:
>>> >>    - Build has been split up into blackberry.xml and playbook.xml.
>>> >>    - Building a phone app now requires "ant blackberry build" where
>>> >> before it was "ant build".
>>> >
>>> >
>>> > I helped the RIM guys decided on this solution. It was the cleanest
>>> > approach that we could come up with at the same.
>>> >
>>> > template/project/www/config.xml:
>>> >>    - PhoneGap feature is now "com.phonegap" instead of "phonegap".
>>> >>    - New permissions blackberry.media.camera, blackberry.identity,
>>> >> blackberry.ui.dialog, blackberry.system.
>>> >>        * I'm confused why blackberry.identity and blackberry.system
>>> >> were added since they already exist in the file.  I'm also not sure
>>> >> what is requiring blackberry.ui.dialog.
>>> >
>>> >
>>> > I'm also confused on the duplication and where blackberry.ui.dialog
>>>is
>>> used.
>>> >
>>> > template/project/www/plugins.xml:
>>> >>    - "Device" is a new required plugin.
>>> >
>>> >
>>> > Yep
>>> >
>>> > There are now issues being logged on the missing Playbook APIs. Until
>>> > Playbook supports every PhoneGap API, we should ensure that it can
>>> > gracefully fail on the JavaScript side.
>>> >
>>> > Thanks again for posting this thread Drew!
>>> > Michael
>>> >
>>> > On Tue, Dec 6, 2011 at 7:49 AM, Drew Walters <pu...@gmail.com>
>>>wrote:
>>> >
>>> >> I've been playing around with the latest callback-blackberry code
>>> >> which has been merged to include playback support and I have run
>>>into
>>> >> some things which are worth noting/discussing/fixing.  For reference
>>> >> the code change is here:
>>> >>
>>> >>
>>> >>
>>> 
>>>https://github.com/callback/callback-blackberry/commit/19c0e686067e36a56
>>>3815435f6ed69ee562dbf9d#template/project/www/config.xml
>>> >>
>>> >> I've listed below some things which existing BlackBerry developers
>>> >> will need to be made aware of in order to update their existing
>>> >> projects to 1.3. I've also added notes prefixed with '*' which I
>>>feel
>>> >> are defects or at least require further discussion.
>>> >>
>>> >> framework/ext/src/library.xml:
>>> >>    - PhoneGap feature is now "com.phonegap" instead of "phonegap".
>>> >>
>>> >> javascript/capture.js:
>>> >>    - This is a proper renaming of media.js.
>>> >>        * Problem is media.js was not deleted so both capture.js and
>>> >> media.js are included and are identical.
>>> >>
>>> >> javascript/console.js:
>>> >>    - console.log is now only defined if console is undefined.
>>> >> Previously console.log was always defined.
>>> >>        * I've been testing on OS 6 and console.log never gets
>>>defined
>>> >> since console is defined.  This results in console.log not working.
>>> >> I've had to use phonegap.Logger.log instead.
>>> >>
>>> >> template/project/project.properties:
>>> >>    - Properties previously defined in the file are now prefixed with
>>> >> "blackberry".  New properties added for "playbook".
>>> >>        * I'm confused by "blackberry.sim.password".  Description
>>>says
>>> >> "If you leave this field blank, then you cannot deploy to
>>>simulator".
>>> >> I believe this is misleading since the only usage I see for it in
>>> >> blackberry.xml is to load the device (not simulator).
>>> >>
>>> >> javascript/webWorksPluginManager.js:
>>> >>    - Camera and Capture functionality is now handled by blackberry
>>> >> javascript API instead of native plugins.
>>> >>        * This is a step backwards as the blackberry javascript API
>>> >> lacks some features implemented by the native plugins.  Just to
>>>name a
>>> >> few: specifying image size for the Camera, and audio recording for
>>> >> Capture.
>>> >>
>>> >> template/project/build.xml:
>>> >>    - Build has been split up into blackberry.xml and playbook.xml.
>>> >>    - Building a phone app now requires "ant blackberry build" where
>>> >> before it was "ant build".
>>> >>
>>> >> template/project/www/config.xml:
>>> >>    - PhoneGap feature is now "com.phonegap" instead of "phonegap".
>>> >>    - New permissions blackberry.media.camera, blackberry.identity,
>>> >> blackberry.ui.dialog, blackberry.system.
>>> >>        * I'm confused why blackberry.identity and blackberry.system
>>> >> were added since they already exist in the file.  I'm also not sure
>>> >> what is requiring blackberry.ui.dialog.
>>> >>
>>> >> template/project/www/plugins.xml:
>>> >>    - "Device" is a new required plugin.
>>> >>
>>>
>>
>>
>>
>> --
>> Dan Silivestru
>> +1 (519) 589-3624


Re: Playbook code merge discussion

Posted by Drew Walters <de...@gmail.com>.
Is anyone looking at the changes that need to be made to Blackberry
based on the Playbook merge?  I will vote to not ship 1.3 until some
of these issues are fixed.

I'll list what I believe must be fixed before 1.3 can ship:

1. Delete media.js - Done. I pushed this change and subsequent
reordering of phonegap.js concat for dependencies.

2. Re-enable console.log to write to event log - I coded up a change
for this which saved any existing console.log definition and re-called
after writing to event log.  I have not pushed because I'm not sure
what the Playbook side should do.  playBookPluginManager.js is
defining the Logger plugin to call console.log which would be an
infinite loop if console.log is overridden with a PhoneGap.exec.

3. Restore camera and capture native functionality.

4. Delete duplicate blackberry.identity and blackberry.system feature
ids in config.xml.

I can live with the other differences though they will require
developers to make changes to their projects when they update to 1.3.

I'm on vacation for two weeks after this Friday so my time to make
changes is limited.  I'm hesitant to make any change that might affect
the Playbook implementation since I don't have a Playbook and haven't
had a chance to setup the environment.

On Wed, Dec 7, 2011 at 9:16 AM, Dan Silivestru <da...@gmail.com> wrote:
> I think blackberry.ui.dialog is used for the notification API. At least
> that's what it looks like to me based on this:
>
> https://github.com/callback/callback-blackberry/commit/19c0e686067e36a563815435f6ed69ee562dbf9d#L13R194
>
> Cheers,
>
> Dan.
>
> On Tue, Dec 6, 2011 at 1:59 PM, Drew Walters <de...@gmail.com> wrote:
>
>> One other thing I forgot to mention.  Is "playbook" the term we want
>> to reference in the code/build/etc?  I wonder if it would be more
>> future proof to call this "bbx".  My understanding is that the
>> Playbook OS and BBX will be one in the same going forward.  Maybe its
>> jumping the gun a bit, since BBX isn't available yet, but I'd hate to
>> have to rename in a couple of months.
>>
>> On Tue, Dec 6, 2011 at 11:56 AM, Michael Brooks
>> <mi...@michaelbrooks.ca> wrote:
>> > Hi Drew,
>> >
>> > Thanks for the summary and details on what's changed.
>> >
>> > All of the Playbook support was added by RIM quite a while ago, but the
>> > pull request was only merged in recently. During the merge, I didn't want
>> > to make unnecessary changes, so I held off of cleaning up parts of the
>> > codebase. Now that we've got Playbook support into the BlackBerry
>> > repository, we can start discussing and cleaning the codebase.
>> >
>> > A very important note is that we now need to support both BlackBerry and
>> > Playbook. RIM will be handling most of the AIR code, but we need to
>> ensure
>> > that JavaScript changes for one platform will not break the other. So,
>> all
>> > callback-blackberry developers are responsible for compiling, running,
>> and
>> > testing both BlackBerry (handheld) and Playbook (tablet).
>> >
>> > framework/ext/src/library.xml:
>> >>    - PhoneGap feature is now "com.phonegap" instead of "phonegap".
>> >
>> >
>> > I'd also like a justification for this change. No other WebWorks
>> extension
>> > uses namespaces, so I'm confused why "phonegap" was changed to
>> > "com.phonegap". If there is no reason, then I would like to see it
>> changed
>> > back to "phonegap".
>> >
>> > javascript/capture.js:
>> >>    - This is a proper renaming of media.js.
>> >>        * Problem is media.js was not deleted so both capture.js and
>> >> media.js are included and are identical.
>> >
>> >
>> > Good eye. If media.js is redundant, then we should remove it.
>> >
>> > javascript/console.js:
>> >>    - console.log is now only defined if console is undefined.
>> >> Previously console.log was always defined.
>> >>        * I've been testing on OS 6 and console.log never gets defined
>> >> since console is defined.  This results in console.log not working.
>> >> I've had to use phonegap.Logger.log instead.
>> >
>> >
>> > Perhaps clobbering console.log was conflicting the the built-in Web
>> > Inspector for Playbook debugging? We should be holding a reference to the
>> > original console.log, overriding it, and then still calling the original
>> > reference.
>> >
>> > template/project/project.properties:
>> >>    - Properties previously defined in the file are now prefixed with
>> >> "blackberry".  New properties added for "playbook".
>> >>        * I'm confused by "blackberry.sim.password".  Description says
>> >> "If you leave this field blank, then you cannot deploy to simulator".
>> >> I believe this is misleading since the only usage I see for it in
>> >> blackberry.xml is to load the device (not simulator).
>> >
>> >
>> > Agreed. propject.properties has become more complicated and I'd like to
>> see
>> > it simplified. I think it's doable.
>> >
>> > javascript/webWorksPluginManager.js:
>> >>    - Camera and Capture functionality is now handled by blackberry
>> >> javascript API instead of native plugins.
>> >>        * This is a step backwards as the blackberry javascript API
>> >> lacks some features implemented by the native plugins.  Just to name a
>> >> few: specifying image size for the Camera, and audio recording for
>> >> Capture.
>> >
>> >
>> > My guess is that Playbook uses the WebWorks API, but BlackBerry should
>> not
>> > be forced to do the same if it provides additional functionality.
>> >
>> > template/project/build.xml:
>> >>    - Build has been split up into blackberry.xml and playbook.xml.
>> >>    - Building a phone app now requires "ant blackberry build" where
>> >> before it was "ant build".
>> >
>> >
>> > I helped the RIM guys decided on this solution. It was the cleanest
>> > approach that we could come up with at the same.
>> >
>> > template/project/www/config.xml:
>> >>    - PhoneGap feature is now "com.phonegap" instead of "phonegap".
>> >>    - New permissions blackberry.media.camera, blackberry.identity,
>> >> blackberry.ui.dialog, blackberry.system.
>> >>        * I'm confused why blackberry.identity and blackberry.system
>> >> were added since they already exist in the file.  I'm also not sure
>> >> what is requiring blackberry.ui.dialog.
>> >
>> >
>> > I'm also confused on the duplication and where blackberry.ui.dialog is
>> used.
>> >
>> > template/project/www/plugins.xml:
>> >>    - "Device" is a new required plugin.
>> >
>> >
>> > Yep
>> >
>> > There are now issues being logged on the missing Playbook APIs. Until
>> > Playbook supports every PhoneGap API, we should ensure that it can
>> > gracefully fail on the JavaScript side.
>> >
>> > Thanks again for posting this thread Drew!
>> > Michael
>> >
>> > On Tue, Dec 6, 2011 at 7:49 AM, Drew Walters <pu...@gmail.com> wrote:
>> >
>> >> I've been playing around with the latest callback-blackberry code
>> >> which has been merged to include playback support and I have run into
>> >> some things which are worth noting/discussing/fixing.  For reference
>> >> the code change is here:
>> >>
>> >>
>> >>
>> https://github.com/callback/callback-blackberry/commit/19c0e686067e36a563815435f6ed69ee562dbf9d#template/project/www/config.xml
>> >>
>> >> I've listed below some things which existing BlackBerry developers
>> >> will need to be made aware of in order to update their existing
>> >> projects to 1.3. I've also added notes prefixed with '*' which I feel
>> >> are defects or at least require further discussion.
>> >>
>> >> framework/ext/src/library.xml:
>> >>    - PhoneGap feature is now "com.phonegap" instead of "phonegap".
>> >>
>> >> javascript/capture.js:
>> >>    - This is a proper renaming of media.js.
>> >>        * Problem is media.js was not deleted so both capture.js and
>> >> media.js are included and are identical.
>> >>
>> >> javascript/console.js:
>> >>    - console.log is now only defined if console is undefined.
>> >> Previously console.log was always defined.
>> >>        * I've been testing on OS 6 and console.log never gets defined
>> >> since console is defined.  This results in console.log not working.
>> >> I've had to use phonegap.Logger.log instead.
>> >>
>> >> template/project/project.properties:
>> >>    - Properties previously defined in the file are now prefixed with
>> >> "blackberry".  New properties added for "playbook".
>> >>        * I'm confused by "blackberry.sim.password".  Description says
>> >> "If you leave this field blank, then you cannot deploy to simulator".
>> >> I believe this is misleading since the only usage I see for it in
>> >> blackberry.xml is to load the device (not simulator).
>> >>
>> >> javascript/webWorksPluginManager.js:
>> >>    - Camera and Capture functionality is now handled by blackberry
>> >> javascript API instead of native plugins.
>> >>        * This is a step backwards as the blackberry javascript API
>> >> lacks some features implemented by the native plugins.  Just to name a
>> >> few: specifying image size for the Camera, and audio recording for
>> >> Capture.
>> >>
>> >> template/project/build.xml:
>> >>    - Build has been split up into blackberry.xml and playbook.xml.
>> >>    - Building a phone app now requires "ant blackberry build" where
>> >> before it was "ant build".
>> >>
>> >> template/project/www/config.xml:
>> >>    - PhoneGap feature is now "com.phonegap" instead of "phonegap".
>> >>    - New permissions blackberry.media.camera, blackberry.identity,
>> >> blackberry.ui.dialog, blackberry.system.
>> >>        * I'm confused why blackberry.identity and blackberry.system
>> >> were added since they already exist in the file.  I'm also not sure
>> >> what is requiring blackberry.ui.dialog.
>> >>
>> >> template/project/www/plugins.xml:
>> >>    - "Device" is a new required plugin.
>> >>
>>
>
>
>
> --
> Dan Silivestru
> +1 (519) 589-3624

Re: Playbook code merge discussion

Posted by Dan Silivestru <da...@gmail.com>.
I think blackberry.ui.dialog is used for the notification API. At least
that's what it looks like to me based on this:

https://github.com/callback/callback-blackberry/commit/19c0e686067e36a563815435f6ed69ee562dbf9d#L13R194

Cheers,

Dan.

On Tue, Dec 6, 2011 at 1:59 PM, Drew Walters <de...@gmail.com> wrote:

> One other thing I forgot to mention.  Is "playbook" the term we want
> to reference in the code/build/etc?  I wonder if it would be more
> future proof to call this "bbx".  My understanding is that the
> Playbook OS and BBX will be one in the same going forward.  Maybe its
> jumping the gun a bit, since BBX isn't available yet, but I'd hate to
> have to rename in a couple of months.
>
> On Tue, Dec 6, 2011 at 11:56 AM, Michael Brooks
> <mi...@michaelbrooks.ca> wrote:
> > Hi Drew,
> >
> > Thanks for the summary and details on what's changed.
> >
> > All of the Playbook support was added by RIM quite a while ago, but the
> > pull request was only merged in recently. During the merge, I didn't want
> > to make unnecessary changes, so I held off of cleaning up parts of the
> > codebase. Now that we've got Playbook support into the BlackBerry
> > repository, we can start discussing and cleaning the codebase.
> >
> > A very important note is that we now need to support both BlackBerry and
> > Playbook. RIM will be handling most of the AIR code, but we need to
> ensure
> > that JavaScript changes for one platform will not break the other. So,
> all
> > callback-blackberry developers are responsible for compiling, running,
> and
> > testing both BlackBerry (handheld) and Playbook (tablet).
> >
> > framework/ext/src/library.xml:
> >>    - PhoneGap feature is now "com.phonegap" instead of "phonegap".
> >
> >
> > I'd also like a justification for this change. No other WebWorks
> extension
> > uses namespaces, so I'm confused why "phonegap" was changed to
> > "com.phonegap". If there is no reason, then I would like to see it
> changed
> > back to "phonegap".
> >
> > javascript/capture.js:
> >>    - This is a proper renaming of media.js.
> >>        * Problem is media.js was not deleted so both capture.js and
> >> media.js are included and are identical.
> >
> >
> > Good eye. If media.js is redundant, then we should remove it.
> >
> > javascript/console.js:
> >>    - console.log is now only defined if console is undefined.
> >> Previously console.log was always defined.
> >>        * I've been testing on OS 6 and console.log never gets defined
> >> since console is defined.  This results in console.log not working.
> >> I've had to use phonegap.Logger.log instead.
> >
> >
> > Perhaps clobbering console.log was conflicting the the built-in Web
> > Inspector for Playbook debugging? We should be holding a reference to the
> > original console.log, overriding it, and then still calling the original
> > reference.
> >
> > template/project/project.properties:
> >>    - Properties previously defined in the file are now prefixed with
> >> "blackberry".  New properties added for "playbook".
> >>        * I'm confused by "blackberry.sim.password".  Description says
> >> "If you leave this field blank, then you cannot deploy to simulator".
> >> I believe this is misleading since the only usage I see for it in
> >> blackberry.xml is to load the device (not simulator).
> >
> >
> > Agreed. propject.properties has become more complicated and I'd like to
> see
> > it simplified. I think it's doable.
> >
> > javascript/webWorksPluginManager.js:
> >>    - Camera and Capture functionality is now handled by blackberry
> >> javascript API instead of native plugins.
> >>        * This is a step backwards as the blackberry javascript API
> >> lacks some features implemented by the native plugins.  Just to name a
> >> few: specifying image size for the Camera, and audio recording for
> >> Capture.
> >
> >
> > My guess is that Playbook uses the WebWorks API, but BlackBerry should
> not
> > be forced to do the same if it provides additional functionality.
> >
> > template/project/build.xml:
> >>    - Build has been split up into blackberry.xml and playbook.xml.
> >>    - Building a phone app now requires "ant blackberry build" where
> >> before it was "ant build".
> >
> >
> > I helped the RIM guys decided on this solution. It was the cleanest
> > approach that we could come up with at the same.
> >
> > template/project/www/config.xml:
> >>    - PhoneGap feature is now "com.phonegap" instead of "phonegap".
> >>    - New permissions blackberry.media.camera, blackberry.identity,
> >> blackberry.ui.dialog, blackberry.system.
> >>        * I'm confused why blackberry.identity and blackberry.system
> >> were added since they already exist in the file.  I'm also not sure
> >> what is requiring blackberry.ui.dialog.
> >
> >
> > I'm also confused on the duplication and where blackberry.ui.dialog is
> used.
> >
> > template/project/www/plugins.xml:
> >>    - "Device" is a new required plugin.
> >
> >
> > Yep
> >
> > There are now issues being logged on the missing Playbook APIs. Until
> > Playbook supports every PhoneGap API, we should ensure that it can
> > gracefully fail on the JavaScript side.
> >
> > Thanks again for posting this thread Drew!
> > Michael
> >
> > On Tue, Dec 6, 2011 at 7:49 AM, Drew Walters <pu...@gmail.com> wrote:
> >
> >> I've been playing around with the latest callback-blackberry code
> >> which has been merged to include playback support and I have run into
> >> some things which are worth noting/discussing/fixing.  For reference
> >> the code change is here:
> >>
> >>
> >>
> https://github.com/callback/callback-blackberry/commit/19c0e686067e36a563815435f6ed69ee562dbf9d#template/project/www/config.xml
> >>
> >> I've listed below some things which existing BlackBerry developers
> >> will need to be made aware of in order to update their existing
> >> projects to 1.3. I've also added notes prefixed with '*' which I feel
> >> are defects or at least require further discussion.
> >>
> >> framework/ext/src/library.xml:
> >>    - PhoneGap feature is now "com.phonegap" instead of "phonegap".
> >>
> >> javascript/capture.js:
> >>    - This is a proper renaming of media.js.
> >>        * Problem is media.js was not deleted so both capture.js and
> >> media.js are included and are identical.
> >>
> >> javascript/console.js:
> >>    - console.log is now only defined if console is undefined.
> >> Previously console.log was always defined.
> >>        * I've been testing on OS 6 and console.log never gets defined
> >> since console is defined.  This results in console.log not working.
> >> I've had to use phonegap.Logger.log instead.
> >>
> >> template/project/project.properties:
> >>    - Properties previously defined in the file are now prefixed with
> >> "blackberry".  New properties added for "playbook".
> >>        * I'm confused by "blackberry.sim.password".  Description says
> >> "If you leave this field blank, then you cannot deploy to simulator".
> >> I believe this is misleading since the only usage I see for it in
> >> blackberry.xml is to load the device (not simulator).
> >>
> >> javascript/webWorksPluginManager.js:
> >>    - Camera and Capture functionality is now handled by blackberry
> >> javascript API instead of native plugins.
> >>        * This is a step backwards as the blackberry javascript API
> >> lacks some features implemented by the native plugins.  Just to name a
> >> few: specifying image size for the Camera, and audio recording for
> >> Capture.
> >>
> >> template/project/build.xml:
> >>    - Build has been split up into blackberry.xml and playbook.xml.
> >>    - Building a phone app now requires "ant blackberry build" where
> >> before it was "ant build".
> >>
> >> template/project/www/config.xml:
> >>    - PhoneGap feature is now "com.phonegap" instead of "phonegap".
> >>    - New permissions blackberry.media.camera, blackberry.identity,
> >> blackberry.ui.dialog, blackberry.system.
> >>        * I'm confused why blackberry.identity and blackberry.system
> >> were added since they already exist in the file.  I'm also not sure
> >> what is requiring blackberry.ui.dialog.
> >>
> >> template/project/www/plugins.xml:
> >>    - "Device" is a new required plugin.
> >>
>



-- 
Dan Silivestru
+1 (519) 589-3624

Re: Playbook code merge discussion

Posted by Drew Walters <de...@gmail.com>.
One other thing I forgot to mention.  Is "playbook" the term we want
to reference in the code/build/etc?  I wonder if it would be more
future proof to call this "bbx".  My understanding is that the
Playbook OS and BBX will be one in the same going forward.  Maybe its
jumping the gun a bit, since BBX isn't available yet, but I'd hate to
have to rename in a couple of months.

On Tue, Dec 6, 2011 at 11:56 AM, Michael Brooks
<mi...@michaelbrooks.ca> wrote:
> Hi Drew,
>
> Thanks for the summary and details on what's changed.
>
> All of the Playbook support was added by RIM quite a while ago, but the
> pull request was only merged in recently. During the merge, I didn't want
> to make unnecessary changes, so I held off of cleaning up parts of the
> codebase. Now that we've got Playbook support into the BlackBerry
> repository, we can start discussing and cleaning the codebase.
>
> A very important note is that we now need to support both BlackBerry and
> Playbook. RIM will be handling most of the AIR code, but we need to ensure
> that JavaScript changes for one platform will not break the other. So, all
> callback-blackberry developers are responsible for compiling, running, and
> testing both BlackBerry (handheld) and Playbook (tablet).
>
> framework/ext/src/library.xml:
>>    - PhoneGap feature is now "com.phonegap" instead of "phonegap".
>
>
> I'd also like a justification for this change. No other WebWorks extension
> uses namespaces, so I'm confused why "phonegap" was changed to
> "com.phonegap". If there is no reason, then I would like to see it changed
> back to "phonegap".
>
> javascript/capture.js:
>>    - This is a proper renaming of media.js.
>>        * Problem is media.js was not deleted so both capture.js and
>> media.js are included and are identical.
>
>
> Good eye. If media.js is redundant, then we should remove it.
>
> javascript/console.js:
>>    - console.log is now only defined if console is undefined.
>> Previously console.log was always defined.
>>        * I've been testing on OS 6 and console.log never gets defined
>> since console is defined.  This results in console.log not working.
>> I've had to use phonegap.Logger.log instead.
>
>
> Perhaps clobbering console.log was conflicting the the built-in Web
> Inspector for Playbook debugging? We should be holding a reference to the
> original console.log, overriding it, and then still calling the original
> reference.
>
> template/project/project.properties:
>>    - Properties previously defined in the file are now prefixed with
>> "blackberry".  New properties added for "playbook".
>>        * I'm confused by "blackberry.sim.password".  Description says
>> "If you leave this field blank, then you cannot deploy to simulator".
>> I believe this is misleading since the only usage I see for it in
>> blackberry.xml is to load the device (not simulator).
>
>
> Agreed. propject.properties has become more complicated and I'd like to see
> it simplified. I think it's doable.
>
> javascript/webWorksPluginManager.js:
>>    - Camera and Capture functionality is now handled by blackberry
>> javascript API instead of native plugins.
>>        * This is a step backwards as the blackberry javascript API
>> lacks some features implemented by the native plugins.  Just to name a
>> few: specifying image size for the Camera, and audio recording for
>> Capture.
>
>
> My guess is that Playbook uses the WebWorks API, but BlackBerry should not
> be forced to do the same if it provides additional functionality.
>
> template/project/build.xml:
>>    - Build has been split up into blackberry.xml and playbook.xml.
>>    - Building a phone app now requires "ant blackberry build" where
>> before it was "ant build".
>
>
> I helped the RIM guys decided on this solution. It was the cleanest
> approach that we could come up with at the same.
>
> template/project/www/config.xml:
>>    - PhoneGap feature is now "com.phonegap" instead of "phonegap".
>>    - New permissions blackberry.media.camera, blackberry.identity,
>> blackberry.ui.dialog, blackberry.system.
>>        * I'm confused why blackberry.identity and blackberry.system
>> were added since they already exist in the file.  I'm also not sure
>> what is requiring blackberry.ui.dialog.
>
>
> I'm also confused on the duplication and where blackberry.ui.dialog is used.
>
> template/project/www/plugins.xml:
>>    - "Device" is a new required plugin.
>
>
> Yep
>
> There are now issues being logged on the missing Playbook APIs. Until
> Playbook supports every PhoneGap API, we should ensure that it can
> gracefully fail on the JavaScript side.
>
> Thanks again for posting this thread Drew!
> Michael
>
> On Tue, Dec 6, 2011 at 7:49 AM, Drew Walters <pu...@gmail.com> wrote:
>
>> I've been playing around with the latest callback-blackberry code
>> which has been merged to include playback support and I have run into
>> some things which are worth noting/discussing/fixing.  For reference
>> the code change is here:
>>
>>
>> https://github.com/callback/callback-blackberry/commit/19c0e686067e36a563815435f6ed69ee562dbf9d#template/project/www/config.xml
>>
>> I've listed below some things which existing BlackBerry developers
>> will need to be made aware of in order to update their existing
>> projects to 1.3. I've also added notes prefixed with '*' which I feel
>> are defects or at least require further discussion.
>>
>> framework/ext/src/library.xml:
>>    - PhoneGap feature is now "com.phonegap" instead of "phonegap".
>>
>> javascript/capture.js:
>>    - This is a proper renaming of media.js.
>>        * Problem is media.js was not deleted so both capture.js and
>> media.js are included and are identical.
>>
>> javascript/console.js:
>>    - console.log is now only defined if console is undefined.
>> Previously console.log was always defined.
>>        * I've been testing on OS 6 and console.log never gets defined
>> since console is defined.  This results in console.log not working.
>> I've had to use phonegap.Logger.log instead.
>>
>> template/project/project.properties:
>>    - Properties previously defined in the file are now prefixed with
>> "blackberry".  New properties added for "playbook".
>>        * I'm confused by "blackberry.sim.password".  Description says
>> "If you leave this field blank, then you cannot deploy to simulator".
>> I believe this is misleading since the only usage I see for it in
>> blackberry.xml is to load the device (not simulator).
>>
>> javascript/webWorksPluginManager.js:
>>    - Camera and Capture functionality is now handled by blackberry
>> javascript API instead of native plugins.
>>        * This is a step backwards as the blackberry javascript API
>> lacks some features implemented by the native plugins.  Just to name a
>> few: specifying image size for the Camera, and audio recording for
>> Capture.
>>
>> template/project/build.xml:
>>    - Build has been split up into blackberry.xml and playbook.xml.
>>    - Building a phone app now requires "ant blackberry build" where
>> before it was "ant build".
>>
>> template/project/www/config.xml:
>>    - PhoneGap feature is now "com.phonegap" instead of "phonegap".
>>    - New permissions blackberry.media.camera, blackberry.identity,
>> blackberry.ui.dialog, blackberry.system.
>>        * I'm confused why blackberry.identity and blackberry.system
>> were added since they already exist in the file.  I'm also not sure
>> what is requiring blackberry.ui.dialog.
>>
>> template/project/www/plugins.xml:
>>    - "Device" is a new required plugin.
>>

Re: Playbook code merge discussion

Posted by Michael Brooks <mi...@michaelbrooks.ca>.
Hi Drew,

Thanks for the summary and details on what's changed.

All of the Playbook support was added by RIM quite a while ago, but the
pull request was only merged in recently. During the merge, I didn't want
to make unnecessary changes, so I held off of cleaning up parts of the
codebase. Now that we've got Playbook support into the BlackBerry
repository, we can start discussing and cleaning the codebase.

A very important note is that we now need to support both BlackBerry and
Playbook. RIM will be handling most of the AIR code, but we need to ensure
that JavaScript changes for one platform will not break the other. So, all
callback-blackberry developers are responsible for compiling, running, and
testing both BlackBerry (handheld) and Playbook (tablet).

framework/ext/src/library.xml:
>    - PhoneGap feature is now "com.phonegap" instead of "phonegap".


I'd also like a justification for this change. No other WebWorks extension
uses namespaces, so I'm confused why "phonegap" was changed to
"com.phonegap". If there is no reason, then I would like to see it changed
back to "phonegap".

javascript/capture.js:
>    - This is a proper renaming of media.js.
>        * Problem is media.js was not deleted so both capture.js and
> media.js are included and are identical.


Good eye. If media.js is redundant, then we should remove it.

javascript/console.js:
>    - console.log is now only defined if console is undefined.
> Previously console.log was always defined.
>        * I've been testing on OS 6 and console.log never gets defined
> since console is defined.  This results in console.log not working.
> I've had to use phonegap.Logger.log instead.


Perhaps clobbering console.log was conflicting the the built-in Web
Inspector for Playbook debugging? We should be holding a reference to the
original console.log, overriding it, and then still calling the original
reference.

template/project/project.properties:
>    - Properties previously defined in the file are now prefixed with
> "blackberry".  New properties added for "playbook".
>        * I'm confused by "blackberry.sim.password".  Description says
> "If you leave this field blank, then you cannot deploy to simulator".
> I believe this is misleading since the only usage I see for it in
> blackberry.xml is to load the device (not simulator).


Agreed. propject.properties has become more complicated and I'd like to see
it simplified. I think it's doable.

javascript/webWorksPluginManager.js:
>    - Camera and Capture functionality is now handled by blackberry
> javascript API instead of native plugins.
>        * This is a step backwards as the blackberry javascript API
> lacks some features implemented by the native plugins.  Just to name a
> few: specifying image size for the Camera, and audio recording for
> Capture.


My guess is that Playbook uses the WebWorks API, but BlackBerry should not
be forced to do the same if it provides additional functionality.

template/project/build.xml:
>    - Build has been split up into blackberry.xml and playbook.xml.
>    - Building a phone app now requires "ant blackberry build" where
> before it was "ant build".


I helped the RIM guys decided on this solution. It was the cleanest
approach that we could come up with at the same.

template/project/www/config.xml:
>    - PhoneGap feature is now "com.phonegap" instead of "phonegap".
>    - New permissions blackberry.media.camera, blackberry.identity,
> blackberry.ui.dialog, blackberry.system.
>        * I'm confused why blackberry.identity and blackberry.system
> were added since they already exist in the file.  I'm also not sure
> what is requiring blackberry.ui.dialog.


I'm also confused on the duplication and where blackberry.ui.dialog is used.

template/project/www/plugins.xml:
>    - "Device" is a new required plugin.


Yep

There are now issues being logged on the missing Playbook APIs. Until
Playbook supports every PhoneGap API, we should ensure that it can
gracefully fail on the JavaScript side.

Thanks again for posting this thread Drew!
Michael

On Tue, Dec 6, 2011 at 7:49 AM, Drew Walters <pu...@gmail.com> wrote:

> I've been playing around with the latest callback-blackberry code
> which has been merged to include playback support and I have run into
> some things which are worth noting/discussing/fixing.  For reference
> the code change is here:
>
>
> https://github.com/callback/callback-blackberry/commit/19c0e686067e36a563815435f6ed69ee562dbf9d#template/project/www/config.xml
>
> I've listed below some things which existing BlackBerry developers
> will need to be made aware of in order to update their existing
> projects to 1.3. I've also added notes prefixed with '*' which I feel
> are defects or at least require further discussion.
>
> framework/ext/src/library.xml:
>    - PhoneGap feature is now "com.phonegap" instead of "phonegap".
>
> javascript/capture.js:
>    - This is a proper renaming of media.js.
>        * Problem is media.js was not deleted so both capture.js and
> media.js are included and are identical.
>
> javascript/console.js:
>    - console.log is now only defined if console is undefined.
> Previously console.log was always defined.
>        * I've been testing on OS 6 and console.log never gets defined
> since console is defined.  This results in console.log not working.
> I've had to use phonegap.Logger.log instead.
>
> template/project/project.properties:
>    - Properties previously defined in the file are now prefixed with
> "blackberry".  New properties added for "playbook".
>        * I'm confused by "blackberry.sim.password".  Description says
> "If you leave this field blank, then you cannot deploy to simulator".
> I believe this is misleading since the only usage I see for it in
> blackberry.xml is to load the device (not simulator).
>
> javascript/webWorksPluginManager.js:
>    - Camera and Capture functionality is now handled by blackberry
> javascript API instead of native plugins.
>        * This is a step backwards as the blackberry javascript API
> lacks some features implemented by the native plugins.  Just to name a
> few: specifying image size for the Camera, and audio recording for
> Capture.
>
> template/project/build.xml:
>    - Build has been split up into blackberry.xml and playbook.xml.
>    - Building a phone app now requires "ant blackberry build" where
> before it was "ant build".
>
> template/project/www/config.xml:
>    - PhoneGap feature is now "com.phonegap" instead of "phonegap".
>    - New permissions blackberry.media.camera, blackberry.identity,
> blackberry.ui.dialog, blackberry.system.
>        * I'm confused why blackberry.identity and blackberry.system
> were added since they already exist in the file.  I'm also not sure
> what is requiring blackberry.ui.dialog.
>
> template/project/www/plugins.xml:
>    - "Device" is a new required plugin.
>