Re: Unifying the config.xml

2013-04-17 Thread Gorkem Ercan
Hey Fil, Please let me know if I can help with anything. -- Gorkem On Tue, Apr 9, 2013 at 12:18 PM, Filip Maj wrote: > Hey Gorkem, > > There is a bunch of housework to do around merging the PR. Thank you for > providing two implementations, but we have to be sure that all other > platforms at l

Re: [iOS] iOSExec

2013-04-17 Thread Ian Clelland
If it's going to be actually removed in 2.7, I would suggest that we should put a notice to that affect--immediately--in the 2.6 docs. It looks like that wording has been there since the 2.1 docs, so developers have certainly been warned for some time. On the other hand, keeping the deprecation no

Re: [iOS] iOSExec

2013-04-17 Thread Shazron
It's deprecated, see "Deprecated Plugin Signature Note": http://docs.phonegap.com/en/2.6.0/guide_plugin-development_ios_index.md.html#Developing%20a%20Plugin%20on%20iOS ... although I don't think we print out a notice currently. I propose that we remove it for the next version, it's definitely mo

[iOS] iOSExec

2013-04-17 Thread Anis KADRI
Hello, Any reason why we keep on supporting the old exec signature on iOS ? [1] [1] https://git-wip-us.apache.org/repos/asf?p=cordova-js.git;a=blob;f=lib/ios/exec.js;h=5e237d968cb948438fc92694d9288d72c9c3a7ac;hb=125dca530923a44a8f44f68f5e1970cbdd4e7faf#l132 -a

Re: plugman + plugin spec final q's

2013-04-17 Thread Filip Maj
After chatting with Anis on IRC I think I understand your point a bit better with respect to plugin vs. app permissions. I believe our move from to in an application's config.xml should solve this issue. That is, if the application developer explicitly lists out permissions they deem as necessar

Re: plugman + plugin spec final q's

2013-04-17 Thread Filip Maj
Perfect, lets roll with this for now then. Next step: write tests for plugman. We're getting closer.. On 4/17/13 4:16 PM, "Jesse" wrote: >Yes, element would work fine for wp7+8 as well. >I then see no other need for the element. > >parent="/Deployment/App/Capabilities"> > > >

Re: plugman + plugin spec final q's

2013-04-17 Thread Jesse
Yes, element would work fine for wp7+8 as well. I then see no other need for the element. @purplecabbage risingj.com On Wed, Apr 17, 2013 at 4:04 PM, Filip Maj wrote: > Nope nothing being forced on anyone here. I agree with you: developers > should be aware of the pla

Re: plugman + plugin spec final q's

2013-04-17 Thread Filip Maj
Nope nothing being forced on anyone here. I agree with you: developers should be aware of the platforms they are targeting and should understand how their app works, regardless if its written with a cross-platform framework or not. We are talking about a spec helping standardize the way bits of fu

Re: plugman + plugin spec final q's

2013-04-17 Thread Jesse
The use case is any app that has any additional native functionality added by the developer. ( every app I have ever written ) Otherwise we force an all or nothing stance with cordova use, Android, iOS, wp7, wp8 all support using cordova as a view in an otherwise strictly native app, or adding a n

Re: plugman + plugin spec final q's

2013-04-17 Thread Filip Maj
>However, I do not think that removing permissions will end well. Looking >at the bigger picture, I can think of many cases where a permission is >required by the app itself, and should remain regardless of any plugin. > This needs to be decided by the app developer themselves imho. Can you prov

Re: plugman + plugin spec final q's

2013-04-17 Thread Brian LeRoux
This is a good point. Might be better to warn about unused permissions. (And offer an audit command for cleanup/release purposes.) On Wed, Apr 17, 2013 at 3:13 PM, Jesse wrote: > I think we do have consensus on , you can ignore the entire > discussion of as it is up to the app developer to 'req

Re: plugman + plugin spec final q's

2013-04-17 Thread Jesse
I think we do have consensus on , you can ignore the entire discussion of as it is up to the app developer to 'require' and not the plugin developer. However, I do not think that removing permissions will end well. Looking at the bigger picture, I can think of many cases where a permission is re

Re: plugman + plugin spec final q's

2013-04-17 Thread Filip Maj
>Is it possible to re-do the platform modifications on every `cordova >prepare` by running through each plugin.xml? That way, on uninstall you >needn't do anything, just remove the plugin and run prepare again. This >would also make it possible to make changes to a plugin's native code >without

Re: plugman + plugin spec final q's

2013-04-17 Thread Michal Mocny
On Wed, Apr 17, 2013 at 5:44 PM, Michal Mocny wrote: > Is it possible to re-do the platform modifications on every `cordova > prepare` by running through each plugin.xml? That way, on uninstall you > needn't do anything, just remove the plugin and run prepare again. This > would also make it po

Re: plugman + plugin spec final q's

2013-04-17 Thread Michal Mocny
Is it possible to re-do the platform modifications on every `cordova prepare` by running through each plugin.xml? That way, on uninstall you needn't do anything, just remove the plugin and run prepare again. This would also make it possible to make changes to a plugin's native code without reinst

Re: plugman + plugin spec final q's

2013-04-17 Thread Filip Maj
K I will hold off on until we come to a consensus. You're right in that we could put it in as a child to .. Duplication can be easily prevented (check if permission exists already before adding it). Removing config-file stuff during a plugin uninstall is trickier.. If two plugins depend on the sa

Re: plugman + plugin spec final q's

2013-04-17 Thread Anis KADRI
On Wed, Apr 17, 2013 at 2:07 PM, Michal Mocny wrote: > To add a few more thoughts RE: URL to find plugin universe: > > - We could also support an apt style model where the user has a personal > global list of repositories specified, and the tools use that list to find > plugins referenced by name

Re: plugman + plugin spec final q's

2013-04-17 Thread Anis KADRI
On Wed, Apr 17, 2013 at 9:59 AM, Filip Maj wrote: > Max, yeah, at the top of the plugman readme (in both future and master I > believe), the usage docs don't specify --install or --uninstall as an > available command, but those commands are referenced right after the usage > section. I'd be in fa

Re: plugman + plugin spec final q's

2013-04-17 Thread Michal Mocny
To add a few more thoughts RE: URL to find plugin universe: - We could also support an apt style model where the user has a personal global list of repositories specified, and the tools use that list to find plugins referenced by name, starting with a single default (or a cordova-core universe and

Re: plugman + plugin spec final q's

2013-04-17 Thread Jesse
Good point Don, the requirements should be out of scope for a plugin developer. I agree that ultimately this is a choice that the developer should make for their own app. @purplecabbage risingj.com On Wed, Apr 17, 2013 at 1:22 PM, Don Coleman wrote: > On Windows Phone the permission required t

Re: Making WebView's WebSQL work on Android 3.0+

2013-04-17 Thread Ian Clelland
On Wed, Apr 17, 2013 at 2:50 PM, Joe Bowser wrote: > So, there isn't a CORS issue with Android? > > I can neither confirm nor deny the existence of the alleged CORS issue on Android :) I'll probably know more about that tomorrow; I'll let you know what I find. If we're using OkHttp, though, we

Re: Migrating to

2013-04-17 Thread Lorin Beer
+1 On Wed, Apr 17, 2013 at 1:20 PM, Jeffrey Heifetz wrote: > +1 > > On 13-04-17 4:14 PM, "Joe Bowser" wrote: > > >+1 for deprecate now, remove 3.0 > > > >On Wed, Apr 17, 2013 at 12:15 PM, Shazron wrote: > >> +1 for deprecate now, remove 3.0 > >> > >> > >> On Wed, Apr 17, 2013 at 10:00 AM, Fili

Re: Making WebView's WebSQL work on Android 3.0+

2013-04-17 Thread Michael Brooks
Thanks for the details Ian. In our experience, by-passing CORS policies is a HUGE bonus for most developers. It would be rad if you can find a nice hackity-hack to get around this so that we can also take advantage of WebSQL :) Michael On Wed, Apr 17, 2013 at 12:50 PM, Joe Bowser wrote: > So,

Re: plugman + plugin spec final q's

2013-04-17 Thread Don Coleman
On Windows Phone the permission required to access NFC is ID_CAP_PROXIMITY. The ID_REQ_NFC restricts the application to running on only devices that have NFC. This would be equivalent to setting android:required to true for a feature AFAIK android:required="true" only effects Google Play l

Re: Migrating to

2013-04-17 Thread Jeffrey Heifetz
+1 On 13-04-17 4:14 PM, "Joe Bowser" wrote: >+1 for deprecate now, remove 3.0 > >On Wed, Apr 17, 2013 at 12:15 PM, Shazron wrote: >> +1 for deprecate now, remove 3.0 >> >> >> On Wed, Apr 17, 2013 at 10:00 AM, Filip Maj wrote: >> >>> My vote is to set up deprecation of plugin now, and remove it

Re: Migrating to

2013-04-17 Thread Joe Bowser
+1 for deprecate now, remove 3.0 On Wed, Apr 17, 2013 at 12:15 PM, Shazron wrote: > +1 for deprecate now, remove 3.0 > > > On Wed, Apr 17, 2013 at 10:00 AM, Filip Maj wrote: > >> My vote is to set up deprecation of plugin now, and remove it completely >> for 3.0. Our tooling should be able to ha

Re: plugman + plugin spec final q's

2013-04-17 Thread Jesse
I could, or it could just be an ignored tag for other platforms. It will sit inside the platform tag anyway. could also just add an optional attrib to the permission tag : The names already do contain enough info to easily parse, ID_CAP_* ID_REQ_* not to mention ID_RESOLUTION_* I am down with wh

Re: plugman + plugin spec final q's

2013-04-17 Thread Filip Maj
Hmm, this could be an implementation detail for windows phone. Requirement vs permission isn't syntactically different. Could we encapsulate Windows Phone requirements as elements in plugin.xml, and have tooling be smart enough to parse wp7 + wp8 elements and drop them into the Windows Phone ma

Re: plugman + plugin spec final q's

2013-04-17 Thread Jesse
While we are there, we may want to add an optional requirements tag. Requirements let the app specify what device features it must have, for example NFC. [1] Logically this would just fall right under platform, and be optional : Does it make sense for us to group these? ie.

Re: Migrating to

2013-04-17 Thread Shazron
+1 for deprecate now, remove 3.0 On Wed, Apr 17, 2013 at 10:00 AM, Filip Maj wrote: > My vote is to set up deprecation of plugin now, and remove it completely > for 3.0. Our tooling should be able to handle this stuff by then.. > > On 4/16/13 8:23 PM, "Joe Bowser" wrote: > > >Only when we deci

Re: plugman + plugin spec final q's

2013-04-17 Thread Filip Maj
Good call, sound rule of thumb On 4/17/13 12:03 PM, "Jesse" wrote: >RE: the permission element >Looks good for wp7 + wp8 >I assume if some platform requires extra data in the permission tag it can >have it, the same way that the blackberry version has the system >attribute. > >@purplecabbage >ri

Re: plugman + plugin spec final q's

2013-04-17 Thread Jesse
RE: the permission element Looks good for wp7 + wp8 I assume if some platform requires extra data in the permission tag it can have it, the same way that the blackberry version has the system attribute. @purplecabbage risingj.com On Wed, Apr 17, 2013 at 11:48 AM, Jeffrey Heifetz wrote: > Makes

Re: Making WebView's WebSQL work on Android 3.0+

2013-04-17 Thread Joe Bowser
So, there isn't a CORS issue with Android? On Wed, Apr 17, 2013 at 11:41 AM, Ian Clelland wrote: > Specifically with iOS, setting the start page to a chrome-extension:// url > causes the underlying UIWebView to apply CORS policies to all XHR requests. > > UIWebView seems to use the same restricti

Re: Making WebView's WebSQL work on Android 3.0+

2013-04-17 Thread Ian Clelland
Specifically with iOS, setting the start page to a chrome-extension:// url causes the underlying UIWebView to apply CORS policies to all XHR requests. UIWebView seems to use the same restrictions as desktop Safari: - Requests coming from file:/// urls do not use the Origin header - Requests

Re: plugman + plugin spec final q's

2013-04-17 Thread Jeffrey Heifetz
Makes sense to me. Sent from my BlackBerry 10 smartphone on the Rogers network. From: Filip Maj Sent: Wednesday, April 17, 2013 2:43 PM To: dev@cordova.apache.org Reply To: dev@cordova.apache.org Subject: Re: plugman + plugin spec final q's K one more update: element that will be a child of el

Re: plugman + plugin spec final q's

2013-04-17 Thread Filip Maj
K one more update: element that will be a child of elements. Examples: `name` attribute is mandatory, mapping to native strings representing specific features/permissions. `system` attribute is optional and false by default. Only used b

Re: Spam control in the Wiki

2013-04-17 Thread Shazron
Thanks Jukka, Added the committers from the list plus any Apache members On Wed, Apr 17, 2013 at 11:20 AM, Jukka Zitting wrote: > Hi, > > On Wed, Apr 17, 2013 at 6:54 PM, Shazron wrote: > > Done. As a general rule, I'm adding all committers in the AdminGroup, > > non-committers in the Contribut

Re: Spam control in the Wiki

2013-04-17 Thread Jukka Zitting
Hi, On Wed, Apr 17, 2013 at 6:54 PM, Shazron wrote: > Done. As a general rule, I'm adding all committers in the AdminGroup, > non-committers in the ContributorsGroup. Unfortunately I can't find a full > list of people signed up to the wiki (yet) [...] See below for a list of all accounts who've

Re: Spam control in the Wiki

2013-04-17 Thread Benn Mapes
bennmapes On Wed, Apr 17, 2013 at 10:37 AM, Michal Mocny wrote: > mmocny > > > On Wed, Apr 17, 2013 at 1:34 PM, Simon MacDonald > wrote: > > > Username = SimonMacDonald > > Simon Mac Donald > > http://hi.im/simonmacdonald > > > > > > On Wed, Apr 17, 2013 at 1:25 PM, James Jong > wrote: > > > u

Re: plugman + plugin spec final q's

2013-04-17 Thread Jeffrey Heifetz
I was thinking exactly along the same lines as Braden. Whatever universe the cordova core plugins live in will likely be default, with the wild west following it. SO long as plugman is explicit about where it is fetching from, a dev shouldn't have to find the URL and hope it never changes. On 13-0

Re: plugman + plugin spec final q's

2013-04-17 Thread Filip Maj
Kay ill update the spec On 4/17/13 11:01 AM, "Braden Shepherdson" wrote: >I think there will be a common repo, where the Cordova core plugins and >some others live. See the spec for the remotes.js file; I think it should >search for plugins with the given name in each of those universes. >Specif

Re: plugman + plugin spec final q's

2013-04-17 Thread Braden Shepherdson
I think there will be a common repo, where the Cordova core plugins and some others live. See the spec for the remotes.js file; I think it should search for plugins with the given name in each of those universes. Specifying a url in the would then only be necessary for other universes. Braden O

Re: plugman + plugin spec final q's

2013-04-17 Thread Filip Maj
But then we'd need to be able to discover the different universes.. Unless we all agree on a "default", don't think this is optional.. On 4/17/13 10:53 AM, "Jeffrey Heifetz" wrote: >Coming back to Braden's suggestion of specifying a url and id for plugin >dependency, I think this is the correct

Re: plugman + plugin spec final q's

2013-04-17 Thread Jeffrey Heifetz
Coming back to Braden's suggestion of specifying a url and id for plugin dependency, I think this is the correct route, and would go further to suggest the url is optional. I do not believe we should inherently tie plugin dependency to the exact source. Thats why we have a discovery system and mult

Re: Spam control in the Wiki

2013-04-17 Thread Michal Mocny
mmocny On Wed, Apr 17, 2013 at 1:34 PM, Simon MacDonald wrote: > Username = SimonMacDonald > Simon Mac Donald > http://hi.im/simonmacdonald > > > On Wed, Apr 17, 2013 at 1:25 PM, James Jong wrote: > > username JamesJong > > > > On Apr 17, 2013, at 11:54 AM, Shazron wrote: > > > >> Done. As a g

Re: plugman + plugin spec final q's

2013-04-17 Thread Filip Maj
Braden and I had a little chat on IRC about install/uninstall and calling prepare. We've agreed that having prepare as a separate command is useful (you tweak some plugin JS files, add more JS files, and want that reflected in your app), but also calling prepare automatically after an install and u

Re: Spam control in the Wiki

2013-04-17 Thread Simon MacDonald
Username = SimonMacDonald Simon Mac Donald http://hi.im/simonmacdonald On Wed, Apr 17, 2013 at 1:25 PM, James Jong wrote: > username JamesJong > > On Apr 17, 2013, at 11:54 AM, Shazron wrote: > >> Done. As a general rule, I'm adding all committers in the AdminGroup, >> non-committers in the Con

Re: Making WebView's WebSQL work on Android 3.0+

2013-04-17 Thread Michal Mocny
Ian has been running into some issues with CORS while working on porting an app, I'll let him comment on specifics. On Wed, Apr 17, 2013 at 12:27 PM, Michael Brooks wrote: > Very cool Andrew. Does this affect the cross-origin policy? Many users > exploit the ability to make requests across multi

Re: --arc support to create script on iOS

2013-04-17 Thread Michal Mocny
Actually, Andrew suggested a better alternative. I'll just modify the AppDelegate to #ifdef the few lines of offending code to do the right thing regardless of arc settings. On Tue, Apr 16, 2013 at 2:52 PM, Filip Maj wrote: > Maybe toss that into the release article on the wiki so we have a pa

Re: plugman + plugin spec final q's

2013-04-17 Thread Filip Maj
In my mind that is certainly an objective, Brian. On 4/17/13 10:25 AM, "Brian LeRoux" wrote: >Braden: you thinking that the config is canonical and then prepare quietly >does the right thing based on that? > >(Agree less steps is exactly what we're going for here.) > > >On Wed, Apr 17, 2013 at 1

Re: Spam control in the Wiki

2013-04-17 Thread James Jong
username JamesJong On Apr 17, 2013, at 11:54 AM, Shazron wrote: > Done. As a general rule, I'm adding all committers in the AdminGroup, > non-committers in the ContributorsGroup. Unfortunately I can't find a full > list of people signed up to the wiki (yet) so I can bulk add, so you'll > have to

Re: plugman + plugin spec final q's

2013-04-17 Thread Brian LeRoux
Braden: you thinking that the config is canonical and then prepare quietly does the right thing based on that? (Agree less steps is exactly what we're going for here.) On Wed, Apr 17, 2013 at 10:16 AM, Braden Shepherdson wrote: > Re: --install calling --prepare: no. It could, though, I suppose.

Re: plugman + plugin spec final q's

2013-04-17 Thread Braden Shepherdson
Re: --install calling --prepare: no. It could, though, I suppose. Why not have --prepare handle the plugins rather than install/remove. We're trying to make less, not more, happen at install time. Someday I hope --install ceases to exist. On Wed, Apr 17, 2013 at 12:59 PM, Filip Maj wrote: > Ma

Re: Migrating to

2013-04-17 Thread Filip Maj
My vote is to set up deprecation of plugin now, and remove it completely for 3.0. Our tooling should be able to handle this stuff by then.. On 4/16/13 8:23 PM, "Joe Bowser" wrote: >Only when we decide to drop plugin. >On Apr 16, 2013 8:14 PM, "Filip Maj" wrote: > >> https://issues.apache.org/ji

Re: plugman + plugin spec final q's

2013-04-17 Thread Filip Maj
Max, yeah, at the top of the plugman readme (in both future and master I believe), the usage docs don't specify --install or --uninstall as an available command, but those commands are referenced right after the usage section. I'd be in favor of using --fetch for the RETRIEVAL of plugins, --remove

Re: Standardized gestures

2013-04-17 Thread Filip Maj
I'm not convinced you need any additional code here. Touch events are already fired by the web view containers. You could build up gesture detection in JavaScript by listening to these events. There are libraries out there that do this for you already: - http://eightmedia.github.io/hammer.js/

RE: Standardized gestures

2013-04-17 Thread Erik Johnson
This is an interesting idea. I know we get many requests for gesture recognition on BlackBerry 10. Adding the link below as references as well for the BB platform :) https://developer.blackberry.com/native/reference/bb10/com.qnx.doc.gestures.lib_ref/topic/overview.html -Erik ___

Standardized gestures

2013-04-17 Thread jbo...@openmv.com
I'm experimenting with Cordova on Android, iOS and Windows 8. Has there been a discussion around trying to implement to set of 'standard' gesture recognizers: http://msdn.microsoft.com/library/windows/apps/BR241937 http://developer.apple.com/library/ios/#documentation/EventHandling/Conceptual/Ev

Re: plugman + plugin spec final q's

2013-04-17 Thread Max Woghiren
(1) On line 25 of the cordova-plugman readme, is the command missing (ie. --add or --install or whatever)? (2) Though two versions of a plugin are not allowed, I just want to make sure: there will be some kind of detection that it's okay if the *same*version of a plugin has already been installed

Re: Making WebView's WebSQL work on Android 3.0+

2013-04-17 Thread Michael Brooks
Very cool Andrew. Does this affect the cross-origin policy? Many users exploit the ability to make requests across multiple domains. Michael On Wed, Apr 17, 2013 at 8:35 AM, Andrew Grieve wrote: > Just tried it with: > > chrome-extension://asdf/chromeapp.html?foo:1?#asdf?ds#af:s > > Had to mak

Re: plugman + plugin spec final q's

2013-04-17 Thread Braden Shepherdson
Responses inline. On Wed, Apr 17, 2013 at 3:08 AM, Filip Maj wrote: > Hey all, > > I've done a review of the spec and updated it. Check it out at the README > in the plugman repo's future branch [1]. I've added the last bit to it: > and elements. Here is an example: > > > url="h

Re: Spam control in the Wiki

2013-04-17 Thread Shazron
Done. As a general rule, I'm adding all committers in the AdminGroup, non-committers in the ContributorsGroup. Unfortunately I can't find a full list of people signed up to the wiki (yet) so I can bulk add, so you'll have to still post here with your wiki username for access... (which kinda authent

Re: Making WebView's WebSQL work on Android 3.0+

2013-04-17 Thread Andrew Grieve
Just tried it with: chrome-extension://asdf/chromeapp.html?foo:1?#asdf?ds#af:s Had to make a slight tweak to IceCreamCordovaWebViewClient, but it worked fine. On Wed, Apr 17, 2013 at 12:39 AM, Joe Bowser wrote: > How does this affect URI handling? We've had far bigger issues with > file:///a

Re: Spam control in the Wiki

2013-04-17 Thread Braden Shepherdson
Account name is "Braden Shepherdson" On Tue, Apr 16, 2013 at 6:17 PM, Michael Brooks wrote: > Yep I can edit, thanks Shaz! > > > On Tue, Apr 16, 2013 at 3:14 PM, Brian LeRoux wrote: > > > ya no kidding > > > > > > On Tue, Apr 16, 2013 at 2:46 PM, Anis KADRI > wrote: > > > > > That's cool! I wa

Re: [Android] The Deprecation of Froyo

2013-04-17 Thread Simon MacDonald
Late to the party but... +1 for dropping support for 2.2 Simon Mac Donald http://hi.im/simonmacdonald On Wed, Apr 17, 2013 at 9:53 AM, James Jong wrote: > Deprecation in 2.7? > > -James Jong > > On Apr 15, 2013, at 1:27 PM, Filip Maj wrote: > >> Looks like we have consensus >> >> Joe is going

Re: [Android] The Deprecation of Froyo

2013-04-17 Thread James Jong
Deprecation in 2.7? -James Jong On Apr 15, 2013, at 1:27 PM, Filip Maj wrote: > 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

Re: Plugman future branch work + update

2013-04-17 Thread Lucas Holmquist
I like this idea, the user might be confused if nothing happens if a plugin isn't compatible. + 1 for a Warning On Apr 16, 2013, at 5:29 PM, Anis KADRI wrote: > I like fil's proposal. Either way, I don't think it should be an error, it > should just be a warning. If if it's an error then when

plugman + plugin spec final q's

2013-04-17 Thread Filip Maj
Hey all, I've done a review of the spec and updated it. Check it out at the README in the plugman repo's future branch [1]. I've added the last bit to it: and elements. Here is an example: http://plugins.cordova.io/com.facebook.plugin/plugin.xml"; /> http://plugins.phonegap