WP8 Replacement for BaseCommand.InvokeCustomScript?

2013-04-15 Thread Don Coleman
BaseCommand.InvokeCustomScript is marked as obsolete in cordova-wp8. My plugin has native code fire a JavaScript event. On Android I do this with plugin.webView.sendJavascript(command). On WP8, I can't access the webView, so I use a custom script to fire the event. Is there a replacement for Bas

Re: iOS: The future of whitelisting

2013-04-15 Thread Kevin Hawkins
Thanks Andrew. Content filtering may be a way to go, if that's possible. Is granular pattern-based whitelisting available in iOS? I thought it only went down to the host pattern level. Cheers, Kevin On Mon, Apr 15, 2013 at 4:52 PM, Andrew Grieve wrote: > Sounds like CSP (content security p

Re: iOS ScreenCapture plugin for Cordova

2013-04-15 Thread Aaron Charbonneau
Plugman is a pretty cool little tool! I was able to get the ScreenCapture plugin working with it fairly easily for both iOS and Android, here it is: https://github.com/Charbs09/ScreenCapture Right now it only supports Cordova 2.3.0 and higher since that is the version I started development with.

Re: Add Cordova-failed-to-initialize logic right into cordova.js

2013-04-15 Thread Andrew Grieve
Done. https://issues.apache.org/jira/browse/CB-3044 On Mon, Apr 15, 2013 at 4:56 PM, Shazron wrote: > +1 > > > On Mon, Apr 15, 2013 at 12:49 PM, Andrew Grieve >wrote: > > > We have this in many of our tests, but why not just put it right in > > cordova.js? > > > > e.g. > > > > var timerId = nu

Re: iOS: The future of whitelisting

2013-04-15 Thread Andrew Grieve
Sounds like CSP (content security policy) will fill your needs, but we'll have to wait for webviews to support it. So, it sounds like this applies to hosted web apps only? E.g., if this was a file:// based app, you would want to bundle icons with your app. Would pattern-based white-list not cover

Re: New directory structure in cordova-cli's future branch

2013-04-15 Thread Brian LeRoux
I'd rather we did not go ahead w/ the new directory structure. It offers no functional benefit, and comes at an upgrade cost for ppl using the CLI tools today. On Mon, Apr 15, 2013 at 12:46 PM, Andrew Grieve wrote: > Just catching up on the past week of emails and it's not clear that there > was

Re: iOS: The future of whitelisting

2013-04-15 Thread Kevin Hawkins
The biggest issue we have with the current whitelisting in iOS, which I do consider overreaching, is that it applies to every class of request that comes out of the Cordova web view. This is most problematic with images. I can't include stock service provider icons from e.g. twitter.com or facebo

board report for april

2013-04-15 Thread Brian LeRoux
Not totally sure why but I'm getting a message that we have a report for April (even though I don't think we do b/c we should be quarterly.) Anyhow. Doesn't matter. I've been tracking stuff here. [1] Let me know if there's anything of note to add. [1] https://github.com/cordova/apache-board-repo

Re: iOS ScreenCapture plugin for Cordova

2013-04-15 Thread Aaron Charbonneau
Max: That's a great tip, I added the parameter labels as you suggested, thanks! Brian: I'll try to get this going with Plugman and let you know how it goes. Thanks! -Aaron On Mon, Apr 15, 2013 at 1:10 PM, Brian LeRoux wrote: > My only feedback would be to see if you can get it working w/ Plug

Re: Wiki: Immutable Page

2013-04-15 Thread Shazron
Read the wiki spam thread. On Mon, Apr 15, 2013 at 2:10 PM, Simon MacDonald wrote: > It'll get fixed soon. Shaz is spearheading the reduction of wiki spam. > This immutable page thing shall pass. > Simon Mac Donald > http://hi.im/simonmacdonald > > > On Mon, Apr 15, 2013 at 5:09 PM, Filip Maj w

Re: Wiki: Immutable Page

2013-04-15 Thread Simon MacDonald
It'll get fixed soon. Shaz is spearheading the reduction of wiki spam. This immutable page thing shall pass. Simon Mac Donald http://hi.im/simonmacdonald On Mon, Apr 15, 2013 at 5:09 PM, Filip Maj wrote: > Zuh? Can't edit page? What'd I miss? >

Wiki: Immutable Page

2013-04-15 Thread Filip Maj
Zuh? Can't edit page? What'd I miss?

Re: Add Cordova-failed-to-initialize logic right into cordova.js

2013-04-15 Thread Shazron
+1 On Mon, Apr 15, 2013 at 12:49 PM, Andrew Grieve wrote: > We have this in many of our tests, but why not just put it right in > cordova.js? > > e.g. > > var timerId = null; > document.addEventListener('deviceready', function() { > window.clearTimeout(timerId); > }, false); > timerId = window

Re: Add Cordova-failed-to-initialize logic right into cordova.js

2013-04-15 Thread Filip Maj
Hah.. Yeah why this hasn't been done sooner.. Couldn't tell you On 4/15/13 12:49 PM, "Andrew Grieve" wrote: >We have this in many of our tests, but why not just put it right in >cordova.js? > >e.g. > >var timerId = null; >document.addEventListener('deviceready', function() { > window.clearTimeo

Re: iOS: The future of whitelisting

2013-04-15 Thread Shazron
For the overlay thing, at least for iOS if we have a new window option for "toolbar=[yes|no]" this would have almost the desired effect, if we take out the animation. On Mon, Apr 15, 2013 at 1:44 PM, Andrew Grieve wrote: > Kevin - the iOS CDVURLProtocol was changed (2.5ish) to only filter reque

Re: iOS: The future of whitelisting

2013-04-15 Thread Andrew Grieve
Kevin - the iOS CDVURLProtocol was changed (2.5ish) to only filter requests from Cordova WebViews. I'd be interested in hearing if you still think it's over-reaching. I think the only real way to protect your app is to not have any third-party scripts in it. We have an outstanding issue to create

Re: iOS ScreenCapture plugin for Cordova

2013-04-15 Thread Brian LeRoux
My only feedback would be to see if you can get it working w/ Plugman! [1] (And if not lets file issues [2] to ensure it can.) [1] https://github.com/apache/cordova-plugman [2] http://issues.cordova.io On Mon, Apr 15, 2013 at 11:01 AM, Max Woghiren wrote: > Hi Aaron, > > One quick, general O

Add Cordova-failed-to-initialize logic right into cordova.js

2013-04-15 Thread Andrew Grieve
We have this in many of our tests, but why not just put it right in cordova.js? e.g. var timerId = null; document.addEventListener('deviceready', function() { window.clearTimeout(timerId); }, false); timerId = window.setTimeout(function() { console.log('Cordova failed to initialized due to th

Re: New directory structure in cordova-cli's future branch

2013-04-15 Thread Andrew Grieve
Just catching up on the past week of emails and it's not clear that there was a consensus here. By the sounds of it though: 1. Lots of users are using Cordova-CLI (master branch) 2. Cordova-CLI's "future" branch has non-backwards-compatible changes. 3. One of these changes is the directory structu

Re: Spam control in the Wiki

2013-04-15 Thread Simon MacDonald
Yeah, I think we all owe Shaz a preferred beverage of his choice for this. Simon Mac Donald http://hi.im/simonmacdonald On Mon, Apr 15, 2013 at 3:08 PM, Michal Mocny wrote: > Thank you! > > > On Mon, Apr 15, 2013 at 2:51 PM, Shazron wrote: > > > So the issue has been resolved: > > https://is

Re: Spam control in the Wiki

2013-04-15 Thread Michal Mocny
Thank you! On Mon, Apr 15, 2013 at 2:51 PM, Shazron wrote: > So the issue has been resolved: > https://issues.apache.org/jira/browse/INFRA-6131 > > But there is still a problem - I don't have access to these pages to add > people: > - http://wiki.apache.org/cordova/ContributorsGroup > - http://

Re: Spam control in the Wiki

2013-04-15 Thread Shazron
So the issue has been resolved: https://issues.apache.org/jira/browse/INFRA-6131 But there is still a problem - I don't have access to these pages to add people: - http://wiki.apache.org/cordova/ContributorsGroup - http://wiki.apache.org/cordova/AdminGroup Thus, I think no one can edit/add any pa

Re: The plugin repos and reality

2013-04-15 Thread Anis KADRI
Same position as Braden. We can always add this later. There are more urgent issues right now like fixing the uninstall action and plugin dependencies. On Mon, Apr 15, 2013 at 10:46 AM, Braden Shepherdson wrote: > Hrm. I don't see specifying it as so terrible. It would also unify the > directiv

Re: iOS ScreenCapture plugin for Cordova

2013-04-15 Thread Max Woghiren
Hi Aaron, One quick, general Objective-C thing I noticed: when creating messages, it's helpful (and recommended) for readability to write declarations like this: - (void)getScreenBitsWithCaptureOptions:(NSObject*)captureOptions compareOptions:(NSObject*)compareOptions captureCount:(int)captureCou

Re: BlackBerry BB10 Repos on GitHub

2013-04-15 Thread Filip Maj
Go with a pull req / side branch for now and give everyone a month to poke at it. On 4/15/13 10:43 AM, "Jeffrey Heifetz" wrote: >Sounds awesome. Should we issue a pull request and someone will push to a >branch, or would you like to give myself or Bryan commit access to do it >ourselves. > >We c

Re: The plugin repos and reality

2013-04-15 Thread Braden Shepherdson
Hrm. I don't see specifying it as so terrible. It would also unify the directive and its target-dir parameter between iOS and Android: specifying paths relative to some src directory inside the bundle. My intern mentioned today that if you have #include "somesubdir/foo.h" or any other paths, it w

Re: BlackBerry BB10 Repos on GitHub

2013-04-15 Thread Jeffrey Heifetz
Sounds awesome. Should we issue a pull request and someone will push to a branch, or would you like to give myself or Bryan commit access to do it ourselves. We can push a "blackberry10" branch for everyone to look at and continue to update there while giving the community a chance to play. As p

Re: Node as a dependency for android tooling.

2013-04-15 Thread Brian LeRoux
Yes, agree On Mon, Apr 15, 2013 at 10:12 AM, Filip Maj wrote: > The "free" maintenance is a compelling reason to add node as a dependency. > > I'll also flip and support this move but let's not focus on this just yet. > Maybe file the issues and slate them for post-3.0. > > On 4/13/13 3:05 PM,

Re: The plugin repos and reality

2013-04-15 Thread Filip Maj
So it looks like for iOS plugman support there is one outstanding issue Shaz has: https://issues.apache.org/jira/browse/CB-2717 Re: default installation of iOS code into plugins folder. Braden & Anis can you comment? This looks like it would need a tweak in the spec so I would like to get other

Re: [Android] The Deprecation of Froyo

2013-04-15 Thread Filip Maj
Looks like we have consensus Joe is going to be happy :) On 4/15/13 10:24 AM, "Andrew Grieve" wrote: >+1 DROP! > > >On Wed, Apr 10, 2013 at 6:04 PM, Shazron wrote: > >> My Nexus One latest upgradeable OS is 2.3.6 >> >> +1 for dropping fwiw >> >> >> On Wed, Apr 10, 2013 at 2:58 PM, Lorin Beer >

Re: [Android] CB-2303: Is this a good idea?

2013-04-15 Thread Andrew Grieve
I like the feature, but if it's required only for 2.3, then I'd say let's not do it. On Wed, Apr 10, 2013 at 6:20 PM, Joe Bowser wrote: > https://issues.apache.org/jira/browse/CB-2303 > > My gut says that this isn't a good idea, because this attaches to > console.error and is device specific. H

Re: [Android] The Deprecation of Froyo

2013-04-15 Thread Andrew Grieve
+1 DROP! On Wed, Apr 10, 2013 at 6:04 PM, Shazron wrote: > My Nexus One latest upgradeable OS is 2.3.6 > > +1 for dropping fwiw > > > On Wed, Apr 10, 2013 at 2:58 PM, Lorin Beer >wrote: > > > +1 for dropping > > > > Steve found a Nexus One in his filing cabinet last week, wonder what that > >

Re: BlackBerry BB10 Repos on GitHub

2013-04-15 Thread Filip Maj
+1 Pretty sure we can rewrite any history so it would probably be two commits: a giant delete and a giant add. On 4/15/13 10:14 AM, "Brian LeRoux" wrote: >Yep. Could be as simple as a hard reset to the latest SHA from GitHub if >the above is fulfilled. (Maybe start it in a new branch on Apache

Re: BlackBerry BB10 Repos on GitHub

2013-04-15 Thread Brian LeRoux
Yep. Could be as simple as a hard reset to the latest SHA from GitHub if the above is fulfilled. (Maybe start it in a new branch on Apache Git for us to review in the meantime.) On Mon, Apr 15, 2013 at 10:04 AM, Filip Maj wrote: > WRT to BlackBerry since node is already required, it's not an "e

Re: Node as a dependency for android tooling.

2013-04-15 Thread Filip Maj
The "free" maintenance is a compelling reason to add node as a dependency. I'll also flip and support this move but let's not focus on this just yet. Maybe file the issues and slate them for post-3.0. On 4/13/13 3:05 PM, "Jarrod Overson" wrote: >Cordova may also gain extra hands and support in

Re: BlackBerry BB10 Repos on GitHub

2013-04-15 Thread Filip Maj
WRT to BlackBerry since node is already required, it's not an "extra" dependency. The other thread is related to Android (and possibly iOS/windows). As long as the new BB repo supports: 1. Plugin design and documentation on how to do so 2. Command line scripts [1] 3. Can run mobile spec and passe

Re: Module IDs and relative requiring

2013-04-15 Thread Andrew Grieve
Like it! On Tue, Apr 9, 2013 at 2:12 PM, Braden Shepherdson wrote: > Sounds good to me. > > The lack of dots in the js-module name is a new restriction you'll have to > write code to defend against, but I would be surprised to see any existing > plugins violate it. > > Braden > > > On Tue, Apr 9

iOS ScreenCapture plugin for Cordova

2013-04-15 Thread Aaron Charbonneau
Hello Everyone, I recently shared my code for a screen capture plugin for Android Cordova not too long back, and since then have been working on an iOS version. It exposes the same api's to javascript and behaves identically between the two platforms. The goal of these plugins is to provide a way

Re: BlackBerry BB10 Repos on GitHub

2013-04-15 Thread Lorin Beer
First steps are to bring your repo in line with the current workflow and cross platform tool chain. A for instance is the create script: the other platforms use bash scripts for the 'create' command, and BlackBerry's BB10 repo is dependent on Node. There is an ongoing discussion on the list concern

Re: BlackBerry BB10 Repos on GitHub

2013-04-15 Thread Jeffrey Heifetz
So now that the code has been out for a bit we'd like to start talking about getting the code into the 2.7 release. There are no longer any hacks or hoops to getting it running and anyone interested can try it out. Mobile spec results are about on par with the previous implementation and will cont