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 <[email protected]>
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.log(cordova.version)
> [Log] 3.5.0
>
> For plugin version in runtime use
> cordova.require('cordova/plugin_list').metadata
> >
> console.log(cordova.require('cordova/plugin_list').metadata['org.apache.cordova.camera'])
> [Log] 0.3.0
>
> [1]:
>
> $ cordova platform ls
>
> Installed platforms: android 3.5.0, ios 3.5.0
>
> Available platforms: amazon-fireos, blackberry10, firefoxos
>
> $ cordova plugin ls
>
> org.apache.cordova.camera 0.3.0 "Camera"
>
>
> On Wed, Jun 25, 2014 at 3:12 PM, Ian Clelland <[email protected]>
> wrote:
>
>> Hi Victor -- do you mean at runtime, from within the app? Or on your
>> development machine?
>>
>> On Wednesday, June 25, 2014, Victor Sosa <[email protected]> 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 a
>> > command, or cordova-specific file
>> >
>> >
>> > 2014-06-25 13:14 GMT-05:00 Marc Weiner <[email protected]
>> > <javascript:;>>:
>> >
>> > > 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 <[email protected]
>> > <javascript:;>>
>> > > wrote:
>> > >
>> > > > 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
>> > > >
>> > >
>> >
>> >
>> >
>> > --
>> > Victor Adrian Sosa Herrera
>> > IBM Software Engineer
>> > Guadalajara, Jalisco
>> >
>>
>
>
>
> --
> Carlos Santana
> <[email protected]>
>



-- 
Carlos Santana
<[email protected]>

Reply via email to