Incoming patch, Tizen project templates

2013-03-06 Thread Michael Schloh von Bennewitz
Hello list, The eclipse-based IDE software in the Tizen SDK accommodates user-defined project templates for which Cordova is a perfect fit. Cordova provides these, but they're nonstandard and thus rejected in the current Tizen SDK distribution (and probably previous ones too?) There's no reporte

Re: Incoming patch, Tizen project templates

2013-03-06 Thread Plaquette, Paul
Hi Michael, As I already answered privately, Current implementation of Cordova on Tizen was based on Cordova 2.0 on Tizen SDK 1.0. Template project must have change with Tizen SDK2.0 Magnolia release (it is also using a different version of Eclipse) Paul On Wed, Mar 6, 2013 at 12:44 PM, Michael

Re: Issues with CLI

2013-03-06 Thread Braden Shepherdson
Like I said in Fil's bug about #5 (cordova-x.y.z.js vs. cordova.js), I disagree fairly strongly with changing this. Using version numbers for the file in the CLI is a pain. It introduces pain when updating the CLI and Cordova and adds complexity to the CLI, but gains us nothing. When users of Cord

Re: Issues with CLI

2013-03-06 Thread Patrick Mueller
On Tue, Mar 5, 2013 at 2:39 PM, Becky Gibson wrote: > I played around a bit with cordova-cli and have a few comments and > questions. Been a long time since I've looked at this, so I just did, and have a few comments. Nice work so far! First, to get going quickly, I did this: cd ~/tmp

Re: Issues with CLI

2013-03-06 Thread Patrick Mueller
On Wed, Mar 6, 2013 at 11:17 AM, Braden Shepherdson wrote: > Like I said in Fil's bug about #5 (cordova-x.y.z.js vs. cordova.js), I > disagree fairly strongly with changing this. > Using version numbers for the file in the CLI is a pain. ... +1 -- Patrick Mueller http://muellerware.org

Re: Issues with CLI

2013-03-06 Thread Don Coleman
I'd like to see cordova-cli get the phonegap version from config.xml like phonegap build. I'd also rather have cordova.js without the version appended. On Wed, Mar 6, 2013 at 12:31 PM, Patrick Mueller wrote: > On Wed, Mar 6, 2013 at 11:17 AM, Braden Shepherdson >wrote: > > > Like I sa

Re: Issues with CLI

2013-03-06 Thread Patrick Mueller
On Wed, Mar 6, 2013 at 12:37 PM, Don Coleman wrote: > I'd like to see cordova-cli get the phonegap version from config.xml like > phonegap build. > > > > It would be nice to semver this, so I could do something like making it easy (presumably) to upgrade to point releases (somehow).

Re: Issues with CLI

2013-03-06 Thread Brian LeRoux
I love the theory of a global cli that is so well designed that we never have to change it and everything 'just works' across versions. I suspect we may want this to bake as the 'official way' for some time before we attmpt it. On Wed, Mar 6, 2013 at 9:46 AM, Patrick Mueller wrote: > On Wed, Mar

Re: Chrome packaged apps as a platform

2013-03-06 Thread Brian LeRoux
No mega discussion at this point I think we're really focused on getting mobile right before venturing too deep into desktop packaged apps land. But would love to see a community member show us the way... On Tue, Mar 5, 2013 at 2:38 PM, Nathan Breit wrote: > Hi, > I was wondering if there has b

Re: Prototype for automatic JS installation in cordova-cli

2013-03-06 Thread Patrick Mueller
On Mon, Feb 25, 2013 at 1:52 PM, Braden Shepherdson wrote: > We decided that if loading two dozen script tags is too slow (probably not) > then we can make the decision whether to sacrifice error message clarity > for speed. > Do you have any #'s? Seems like something we can time. Avoiding conc

Re: Prototype for automatic JS installation in cordova-cli

2013-03-06 Thread Braden Shepherdson
I haven't measured this. I certainly didn't see a visible delay in load times, but I was also launching a freshly pushed app and waiting for the debugger to connect, so it was hardly a good test for using the app like a user. On Wed, Mar 6, 2013 at 2:45 PM, Patrick Mueller wrote: > On Mon, Feb

Re: Issues with CLI

2013-03-06 Thread Becky Gibson
Fil, perhaps I over explained! Regarding my question about the directory: >1) Although I could easily figure it out from the note about changing ownership of the cordova directory, it would help to state up front the directory where cordova will be installed. All I really want is to state that c

Re: Issues with CLI

2013-03-06 Thread Filip Maj
Thanks for the feedback everyone! On 3/6/13 12:16 PM, "Becky Gibson" wrote: >Fil, perhaps I over explained! > >Regarding my question about the directory: > >>1) Although I could easily figure it out from the note about changing >ownership of the cordova directory, it would help to state up front

Re: Issues with CLI

2013-03-06 Thread Filip Maj
Thanks Pat, I'll take a look at what's packaged and see if we can trim some of this fat. The plist module, if it is 15MB, is ridiculousÅ  I'll add some stuff to the .npmignore file so the obvious stuff like temp, fixtures, etc don't get packed up when doing an npm publish. The spec/fixtures directo

Re: Documentation issues

2013-03-06 Thread Filip Maj
On 3/5/13 4:35 PM, "Marc Fielding" wrote: >Hi all, > >I'm getting up to speed with Cordova but have encountered some confusing >doc issues: > >1) When upgrading a project from 2.4.0 to 2.5.0, the upgrade instructions >say to make several changes to "your config.xml file", when in reality >all c

[Android] Using shouldInterceptRequest for whitelisting

2013-03-06 Thread Joe Bowser
Hey Currently there's a major bug in Cordova with respect to the fact that we can't blacklist any individual web resource. I saw that shouldInterceptResource was added to CordovaWebViewClient, and I'm wondering if we can use that to block resources that aren't whitelisted. Anyone used this? And

Re: [Android] Using shouldInterceptRequest for whitelisting

2013-03-06 Thread Andrew Grieve
Sounds like a perfect API for the job! Another thing I am wondering about this API, is if we serve the app from cordova-app://index.html and the use that API to route the requests, will that fix the problem of WebSQL being disabled? Haven't experimented with this yet, but I think Braden was also p

Re: Issues with CLI

2013-03-06 Thread Filip Maj
Quick update. 1. Closed the issue re: adding version number into js script ref 2. Pushed 2.5.3 to npm. I've added the temp/ and spec/fixtures dirs to the .npmignore file. This reduces the tar size of the module from 60MB to 18MB. I was testing using the `npm pack` command, which just generates the

Re: [Android] Using shouldInterceptRequest for whitelisting

2013-03-06 Thread Braden Shepherdson
I was the one who made this change. We're using it to support chrome-extension:// URLs in chrome-cordova. I think it would work fine for the whitelisting. I'm not sure what it would do to our responsiveness, though, to run this for every resource. The crippling weakness may be that it was introduc

Re: Prototype for automatic JS installation in cordova-cli

2013-03-06 Thread Michal Mocny
I think Patrick is asking: what is an measurable unit of time we are willing to accept as a hit, compared to loading a concatenated file. I can't imagine how this could possibly add more than a few millisecond, and personally if the overhead is measured in 100's its not acceptable. So, <100ms? (h

Re: [Android] Using shouldInterceptRequest for whitelisting

2013-03-06 Thread Joe Bowser
I saw that change, which is why I added the whitelisting. I agree that there is a depressingly large quantity of 2.3 devices out in the world, and the fact that you can still buy them means that they're not going away any time soon. On Wed, Mar 6, 2013 at 3:11 PM, Braden Shepherdson wrote: > I w

Re: Prototype for automatic JS installation in cordova-cli

2013-03-06 Thread Anis KADRI
I read [1] and looked at your pull request and I believe I agree with most of it. I will have to take your code for a spin to see how this new js-module tag works with its merges/clobbers/runs features. However, I strongly disagree with this feature only being available in cordova-cli (specificall

Writing binary data to disk

2013-03-06 Thread Lorin Beer
Hey folks, I was going through the unassigned jira issues, and came across CB-2406 ((https://issues.apache.org/jira/browse/CB-2406), which requests a method to write binary data to disk. Before commenting to the user on the issue, I thought I'd get s

Re: [Android] Using shouldInterceptRequest for whitelisting

2013-03-06 Thread Joe Bowser
Hey How does this work with the fixes for the # that are present in Android 4.0 and 4.1? I looked at old IceCreamCordovaWebViewClient, and I'm thinking that this might not actually work if we add a # behind it. On Wed, Mar 6, 2013 at 3:33 PM, Joe Bowser wrote: > I saw that change, which is why

[Android] Seriously, WTF does baseUrl actually do?

2013-03-06 Thread Joe Bowser
After removing the old DIY history that we had from Cordova, I noticed that the baseUrl was a part of this code as well, and that this code actually doesn't do anything. I'm thinking of deleting this so that I can resolve CB-2534. Does anyone remember what this does? Side note: We have too many w

Re: cordova.exec bridge for OS X

2013-03-06 Thread Shazron
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, Shazr

Re: [Android] Seriously, WTF does baseUrl actually do?

2013-03-06 Thread Marcel Kinard
I'd suggest putting the internal documentation inline with the code, such as javadoc or block comments. Keep the docs right next to the code so they are less likely to diverge over time. -- Marcel Kinard On Mar 6, 2013, at 7:31 PM, Joe Bowser wrote: > Side note: We have too many weird obscure

Re: [Android] Seriously, WTF does baseUrl actually do?

2013-03-06 Thread Andrew Grieve
Yeah, I had a look at baseUrl last week and couldn't figure out what it was for. I figured it was something that you (joe) had added, but guess not! :P. Definitely agree that the best docs are inline with the code, except for maybe architectural type things. On Wed, Mar 6, 2013 at 8:42 PM, Marce

Re: Writing binary data to disk

2013-03-06 Thread Andrew Grieve
How doesn't it fit with the spec? FileWriter.write(blob); On Wed, Mar 6, 2013 at 7:02 PM, Lorin Beer wrote: > Hey folks, > > I was going through the unassigned jira issues, and came across > CB-2406 > ((https://issues.apache.org/jira/browse/CB-24

Re: Writing binary data to disk

2013-03-06 Thread Michal Mocny
We've added a way to send binary data across the android and ios bridge (ArrayBuffers are a supported argument/message type). If you wanted to write a simple plugin to support writing binary data to disk, it should be quite easy. Note: There are various limitations to the current way we send Arra

Re: [Android] Seriously, WTF does baseUrl actually do?

2013-03-06 Thread Joe Bowser
OK, I deleted it and all the tests pass. I'll check that in tomorrow. On Mar 6, 2013 5:46 PM, "Andrew Grieve" wrote: > Yeah, I had a look at baseUrl last week and couldn't figure out what it was > for. I figured it was something that you (joe) had added, but guess not! > :P. > > Definitely agree

Re: [Android] Seriously, WTF does baseUrl actually do?

2013-03-06 Thread Joe Bowser
And when I say the tests pass, it didn't appear to break anything. :P On Mar 6, 2013 5:54 PM, "Joe Bowser" wrote: > OK, I deleted it and all the tests pass. I'll check that in tomorrow. > On Mar 6, 2013 5:46 PM, "Andrew Grieve" wrote: > >> Yeah, I had a look at baseUrl last week and couldn't fig

Re: Writing binary data to disk

2013-03-06 Thread Lorin Beer
Andrew: the Cordova docs on FileWriter state that the data sent is written as a UTF-8 string http://docs.phonegap.com/en/2.5.0/cordova_file_file.md.html#FileWriter The user doesn't want to specify a hex or binary encoded string, and have that written as binary data on the native side. As it sits n

Re: Writing binary data to disk

2013-03-06 Thread Lorin Beer
opps, amend the last message "the user *DOES* want to specify a hex or binary encoded string, and have that written as binary data on the native side" On Wed, Mar 6, 2013 at 6:40 PM, Lorin Beer wrote: > Andrew: > > the Cordova docs on FileWriter state that the data sent is written as a > UTF-8