Hey All,

If you haven't checked out issue CB-3393[1], you should. I believe this is
a pretty big problem and brings into question the way we are loading
plugins.

Using an absolute path is not going to work as Braden suggests in the
comments of the issue. He proposes adding code to cordova.js that will
search for the cordova_plugins.json file and reference it correctly. This
feels very hacky to me and will lead to more issues. I believe we need to
reconsider how we are loading plugins.

I am hoping more people decide to chime in on this discussion.

[1] - https://issues.apache.org/jira/browse/CB-3393


On Wed, May 15, 2013 at 9:12 AM, Steven Gill <[email protected]> wrote:

> Hey Bryan,
>
> Thanks for chiming in. I realized this after I made the change yesterday.
> Tracking it with https://issues.apache.org/jira/browse/CB-3393
>
> Cheers,
> -Steve
> On May 15, 2013 5:34 AM, "Bryan Higgins" <[email protected]> wrote:
>
>> Thanks Steve. I meant to bring that commit up on the list.
>>
>> The problem is that the relative reference to cordova_plugins.json only
>> works when the page is in the same directory as that file. Is that also an
>> issue on ios/android? If so, is there a standard cross platform way to
>> reference a file in the root of a cordova app?
>>
>> We had to do something similar in plugman. This has not yet been merged
>> in:
>>
>>
>> https://github.com/blackberry/cordova-plugman/commit/7f8b704b6d4eb7419caa56faee743f841bc987bd
>>
>>
>> On Tue, May 14, 2013 at 8:03 PM, Steven Gill <[email protected]>
>> wrote:
>>
>> > Hey All,
>> >
>> > The BB10 stuff got merged into cordova.js. The following commit breaks
>> > plugin_loader for ios + android.
>> >
>> >
>> https://github.com/apache/cordova-js/commit/8d59461c6f796f2c88a0eae2467cc663897ccce9
>> > .
>> > I am going to remove the slash for now.
>> >
>> > -Steve
>> >
>>
>

Reply via email to