cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shazron <shaz...@gmail.com>
Subject Re: cordova.exec bridge for OS X
Date Thu, 07 Mar 2013 01:27:18 GMT
Just checked in plugin support - NetworkConnection core plugin is
implemented (passes Network mob-spec 4/4), and Device plugin as well, but
it stubs out of some of the info (only passes Device mob-spec 3/6).


A lot of the code was adapted from the iOS code.


On Tue, Mar 5, 2013 at 12:50 PM, Shazron <shazron@gmail.com> wrote:

> Yeah, it was just a proof of concept. All I need to do now is just add the
> platform specific exec.js and we will have our own OS X cordova.js, it
> won't work for all the APIs though, since we don't have all the core
> plugins implemented.
>
>
> On Tue, Mar 5, 2013 at 8:41 AM, David Lewis <lewisde@gmail.com> wrote:
>
>> That answers my next question. I was just trying to find the
>> cordova.osx.js
>> for 2.4. The build in 2.4 doesn't actually load Cordova.
>>
>> Thanks.
>>
>>
>> On Tue, Mar 5, 2013 at 2:23 AM, Shazron <shazron@gmail.com> wrote:
>>
>> > FYI
>> > https://issues.apache.org/jira/browse/CB-2621
>> >
>> > The bridge works but it has no plugins to call yet.
>> >
>> > The bridge is by binding an object at window.cordovabridge which has a
>> > native exec function. My initial idea is to keep using the opaque
>> > callbackId reference like iOS for possible plugin re-use.
>> >
>> > We don't have to do that of course, since we can keep a JavaScriptCore C
>> > API reference to the actual JavaScript callbacks and call them directly,
>> > not sure of adding this added complexity for plugin authors (we can have
>> > wrappers of course).
>> >
>>
>
>

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