Re: Cordova version in a created project

2014-06-26 Thread Josh Soref
https://issues.apache.org/jira/browse/CB-7037 with a pull request Victor: please try this and see if it is more helpful than the current platform check behavior. I'm open to suggestions about the wording. I'm not particularly interested in spitting out the underlying error message from things

Re: Cordova version in a created project

2014-06-25 Thread Josh Soref
Victor wrote: > I have an app with Android installed and I know it was created with Cordova > 3.3.1-0.1.2. > After running this command with a 3.4.1-1.0. CLI I get the following > $ cordova platform check > All platforms are up-to-date. > But after running cordova platform ls I get the following

Re: Cordova version in a created project

2014-06-25 Thread Martin Gonzalez
rdova platform check ? > > > From: Victor Sosa mailto:sosah.vic...@gmail.com>> > Date: Wed Jun 25 2014 15:41:43 GMT-0400 (EDT) > To: dev@cordova.apache.org dev@cordova.apache.org>> > Subject: Re: C

Re: Cordova version in a created project

2014-06-25 Thread Josh Soref
Subject: Re: Cordova version in a created project Hi Carlos. Thanks, this is exactly what I was looking for: the platform version (I guess I wasn't very clear with my question) Marc: I want to know this to advice my developers whether platform update is required or not giving the Cordova

Re: Cordova version in a created project

2014-06-25 Thread Carlos Santana
Martin this brings an interesting question. should we expose the native cordova version in javascript like cordova.native.version Also print a warning when cordova.version !== cordova.native.version when cordovajs boots. On Wed, Jun 25, 2014 at 4:09 PM, Martin Gonzalez < martin.c.glez.g...@gmai

Re: Cordova version in a created project

2014-06-25 Thread Martin Gonzalez
Hi Victor, as a matter of fact, there are cases where the native side is packaged with a particular Cordova version and the web side with another, this scenario causes serious conflicts. Therefore for the next Cordova release the native side is going to print out its Cordova version, regarding the

Re: Cordova version in a created project

2014-06-25 Thread Marc Weiner
Victor: Very cool idea. On Wed, Jun 25, 2014 at 3:40 PM, Victor Sosa wrote: > Hi Carlos. > Thanks, this is exactly what I was looking for: the platform version (I > guess I wasn't very clear with my question) > > Marc: I want to know this to advice my developers whether platform update > is req

Re: Cordova version in a created project

2014-06-25 Thread Marc Weiner
Thanks Carlos! Good to know! On Wed, Jun 25, 2014 at 3:29 PM, Carlos Santana wrote: > There are versions for cordova platforms and plugins > In development: [1] > cordova platform ls > cordova plugins ls > > In runtime you can get platform version using js object "cordova.version" > > console.l

Re: Cordova version in a created project

2014-06-25 Thread Victor Sosa
Hi Carlos. Thanks, this is exactly what I was looking for: the platform version (I guess I wasn't very clear with my question) Marc: I want to know this to advice my developers whether platform update is required or not giving the Cordova version currently installed. If the project has Android and

Re: Cordova version in a created project

2014-06-25 Thread Carlos Santana
Oh this questions reminds me of something. Some developers install the Device plugin (org.apache.cordova.device) to get the version of cordova thru "device.cordova" You don't need the device plugin to get the cordova version using "cordova.version" On Wed, Jun 25, 2014 at 3:29 PM, Carlos Santana

Re: Cordova version in a created project

2014-06-25 Thread Carlos Santana
There are versions for cordova platforms and plugins In development: [1] cordova platform ls cordova plugins ls In runtime you can get platform version using js object "cordova.version" > console.log(cordova.version) [Log] 3.5.0 For plugin version in runtime use cordova.require('cordova/plugin_li

Re: Cordova version in a created project

2014-06-25 Thread Marc Weiner
Ah ok. Interesting question. Just curious, what use is it to know the Cordova version from within the app? Again, it will be platform dependent. Marc On Wed, Jun 25, 2014 at 3:19 PM, Victor Sosa wrote: > Marc: I know the -v argument in the cordova command will print the version > of the Cordov

Re: Cordova version in a created project

2014-06-25 Thread Victor Sosa
Marc: I know the -v argument in the cordova command will print the version of the Cordova runtime. Ian: I mean from within the app. I want to know which Cordova version was used to create a project, not the current version of the cordova installed in the machine 2014-06-25 14:12 GMT-05:00 Ian Cle

Re: Cordova version in a created project

2014-06-25 Thread Ian Clelland
Hi Victor -- do you mean at runtime, from within the app? Or on your development machine? On Wednesday, June 25, 2014, Victor Sosa wrote: > Hi Marc. > > Thanks for the reply. Even though knowing the version on iOS is a good > thing, I'd like to know if that's possible in a more generic way, like

Re: Cordova version in a created project

2014-06-25 Thread Marc Weiner
As you probably know, "cordova -v" only shows the version number for the binary currently running on your system. "cordova build" won't do anything until you add a platform, and the version number could potentially be different for each platform. After some digging, I can't figure out how to find t

Re: Cordova version in a created project

2014-06-25 Thread Victor Sosa
Hi Marc. Thanks for the reply. Even though knowing the version on iOS is a good thing, I'd like to know if that's possible in a more generic way, like a command, or cordova-specific file 2014-06-25 13:14 GMT-05:00 Marc Weiner : > Open the project in XCode, and click on CordovaLib.xcodeproj. The

Re: Cordova version in a created project

2014-06-25 Thread Marc Weiner
Open the project in XCode, and click on CordovaLib.xcodeproj. There should be a file called VERSION with the version number. It only has the major and minor numbers, though. Marc On Wed, Jun 25, 2014 at 1:56 PM, Victor Sosa wrote: > I wonder if there is a way to know in which Cordova version a

Cordova version in a created project

2014-06-25 Thread Victor Sosa
I wonder if there is a way to know in which Cordova version a project was created. Do any of you know this? Thanks! -- Victor Adrian Sosa Herrera Guadalajara, Jalisco