You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by Jesse <pu...@gmail.com> on 2013/06/26 01:36:01 UTC

Plugin Loading method

Open question:

How do we plan to load plugins in 3.0.0 ?

a) Load cordova_plugins.json via XHR
b) Load cordova_plugins.js via script injection

Currently we attempt (a) and failing that attempt (b). [1]
Currently (a) fails on WP7+8, part of which is the subject of the 'events'
thread.  [2]

It would be nice if we could just decide on one approach, and abandon the
other.

plugman I believe is currently spitting out both files. [3]

[1] http://markmail.org/message/w3ypbuxi2duxlqcx
[2] http://callback.markmail.org/thread/pwuyo4jiwxu5r5m5
[3]
https://git-wip-us.apache.org/repos/asf?p=cordova-plugman.git;a=blobdiff;f=src/prepare.js;h=e4ad09070425f568fcdfdc93ce93c2f0b4b36ee3;hp=800c8e14519876f04e65b1adf4141495a51e4d92;hb=e411b46dad371fb2ac72f55b74ce6b019253176b;hpb=ee5cc7777ea99c2e28b4d7a10fbd7bb1263f9705


@purplecabbage
risingj.com

Re: Plugin Loading method

Posted by Filip Maj <fi...@adobe.com>.
Thx Shaz

On 6/26/13 9:57 AM, "Shazron" <sh...@gmail.com> wrote:

>Added issue: https://issues.apache.org/jira/browse/CB-4016
>
>
>On Wed, Jun 26, 2013 at 9:52 AM, Filip Maj <fi...@adobe.com> wrote:
>
>> Let's chalk that up so consolidate to the one WP-compatible approach for
>> 3.0
>>
>> On 6/25/13 4:40 PM, "Andrew Grieve" <ag...@chromium.org> wrote:
>>
>> >Yeah, I don't like that we have two approaches. We have a valid reason
>>to
>> >use b (windows phone), so let's use it.
>> >
>> >
>> >On Tue, Jun 25, 2013 at 7:36 PM, Jesse <pu...@gmail.com> wrote:
>> >
>> >> Open question:
>> >>
>> >> How do we plan to load plugins in 3.0.0 ?
>> >>
>> >> a) Load cordova_plugins.json via XHR
>> >> b) Load cordova_plugins.js via script injection
>> >>
>> >> Currently we attempt (a) and failing that attempt (b). [1]
>> >> Currently (a) fails on WP7+8, part of which is the subject of the
>> >>'events'
>> >> thread.  [2]
>> >>
>> >> It would be nice if we could just decide on one approach, and abandon
>> >>the
>> >> other.
>> >>
>> >> plugman I believe is currently spitting out both files. [3]
>> >>
>> >> [1] http://markmail.org/message/w3ypbuxi2duxlqcx
>> >> [2] http://callback.markmail.org/thread/pwuyo4jiwxu5r5m5
>> >> [3]
>> >>
>> >>
>> 
>>>>https://git-wip-us.apache.org/repos/asf?p=cordova-plugman.git;a=blobdif
>>>>f
>> ;
>> 
>>>>f=src/prepare.js;h=e4ad09070425f568fcdfdc93ce93c2f0b4b36ee3;hp=800c8e14
>>>>51
>> 
>>>>9876f04e65b1adf4141495a51e4d92;hb=e411b46dad371fb2ac72f55b74ce6b0192531
>>>>76
>> >>b;hpb=ee5cc7777ea99c2e28b4d7a10fbd7bb1263f9705
>> >>
>> >>
>> >> @purplecabbage
>> >> risingj.com
>> >>
>>
>>


Re: Plugin Loading method

Posted by Shazron <sh...@gmail.com>.
Added issue: https://issues.apache.org/jira/browse/CB-4016


On Wed, Jun 26, 2013 at 9:52 AM, Filip Maj <fi...@adobe.com> wrote:

> Let's chalk that up so consolidate to the one WP-compatible approach for
> 3.0
>
> On 6/25/13 4:40 PM, "Andrew Grieve" <ag...@chromium.org> wrote:
>
> >Yeah, I don't like that we have two approaches. We have a valid reason to
> >use b (windows phone), so let's use it.
> >
> >
> >On Tue, Jun 25, 2013 at 7:36 PM, Jesse <pu...@gmail.com> wrote:
> >
> >> Open question:
> >>
> >> How do we plan to load plugins in 3.0.0 ?
> >>
> >> a) Load cordova_plugins.json via XHR
> >> b) Load cordova_plugins.js via script injection
> >>
> >> Currently we attempt (a) and failing that attempt (b). [1]
> >> Currently (a) fails on WP7+8, part of which is the subject of the
> >>'events'
> >> thread.  [2]
> >>
> >> It would be nice if we could just decide on one approach, and abandon
> >>the
> >> other.
> >>
> >> plugman I believe is currently spitting out both files. [3]
> >>
> >> [1] http://markmail.org/message/w3ypbuxi2duxlqcx
> >> [2] http://callback.markmail.org/thread/pwuyo4jiwxu5r5m5
> >> [3]
> >>
> >>
> >>https://git-wip-us.apache.org/repos/asf?p=cordova-plugman.git;a=blobdiff
> ;
> >>f=src/prepare.js;h=e4ad09070425f568fcdfdc93ce93c2f0b4b36ee3;hp=800c8e1451
> >>9876f04e65b1adf4141495a51e4d92;hb=e411b46dad371fb2ac72f55b74ce6b019253176
> >>b;hpb=ee5cc7777ea99c2e28b4d7a10fbd7bb1263f9705
> >>
> >>
> >> @purplecabbage
> >> risingj.com
> >>
>
>

Re: Plugin Loading method

Posted by Filip Maj <fi...@adobe.com>.
Let's chalk that up so consolidate to the one WP-compatible approach for
3.0

On 6/25/13 4:40 PM, "Andrew Grieve" <ag...@chromium.org> wrote:

>Yeah, I don't like that we have two approaches. We have a valid reason to
>use b (windows phone), so let's use it.
>
>
>On Tue, Jun 25, 2013 at 7:36 PM, Jesse <pu...@gmail.com> wrote:
>
>> Open question:
>>
>> How do we plan to load plugins in 3.0.0 ?
>>
>> a) Load cordova_plugins.json via XHR
>> b) Load cordova_plugins.js via script injection
>>
>> Currently we attempt (a) and failing that attempt (b). [1]
>> Currently (a) fails on WP7+8, part of which is the subject of the
>>'events'
>> thread.  [2]
>>
>> It would be nice if we could just decide on one approach, and abandon
>>the
>> other.
>>
>> plugman I believe is currently spitting out both files. [3]
>>
>> [1] http://markmail.org/message/w3ypbuxi2duxlqcx
>> [2] http://callback.markmail.org/thread/pwuyo4jiwxu5r5m5
>> [3]
>>
>> 
>>https://git-wip-us.apache.org/repos/asf?p=cordova-plugman.git;a=blobdiff;
>>f=src/prepare.js;h=e4ad09070425f568fcdfdc93ce93c2f0b4b36ee3;hp=800c8e1451
>>9876f04e65b1adf4141495a51e4d92;hb=e411b46dad371fb2ac72f55b74ce6b019253176
>>b;hpb=ee5cc7777ea99c2e28b4d7a10fbd7bb1263f9705
>>
>>
>> @purplecabbage
>> risingj.com
>>


Re: Plugin Loading method

Posted by Andrew Grieve <ag...@chromium.org>.
Yeah, I don't like that we have two approaches. We have a valid reason to
use b (windows phone), so let's use it.


On Tue, Jun 25, 2013 at 7:36 PM, Jesse <pu...@gmail.com> wrote:

> Open question:
>
> How do we plan to load plugins in 3.0.0 ?
>
> a) Load cordova_plugins.json via XHR
> b) Load cordova_plugins.js via script injection
>
> Currently we attempt (a) and failing that attempt (b). [1]
> Currently (a) fails on WP7+8, part of which is the subject of the 'events'
> thread.  [2]
>
> It would be nice if we could just decide on one approach, and abandon the
> other.
>
> plugman I believe is currently spitting out both files. [3]
>
> [1] http://markmail.org/message/w3ypbuxi2duxlqcx
> [2] http://callback.markmail.org/thread/pwuyo4jiwxu5r5m5
> [3]
>
> https://git-wip-us.apache.org/repos/asf?p=cordova-plugman.git;a=blobdiff;f=src/prepare.js;h=e4ad09070425f568fcdfdc93ce93c2f0b4b36ee3;hp=800c8e14519876f04e65b1adf4141495a51e4d92;hb=e411b46dad371fb2ac72f55b74ce6b019253176b;hpb=ee5cc7777ea99c2e28b4d7a10fbd7bb1263f9705
>
>
> @purplecabbage
> risingj.com
>