cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marc Weiner <mhweiner...@gmail.com>
Subject Re: Cordova version in a created project
Date Wed, 25 Jun 2014 20:08:02 GMT
Victor: Very cool idea.


On Wed, Jun 25, 2014 at 3:40 PM, Victor Sosa <sosah.victor@gmail.com> 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 required or not giving the Cordova version currently installed. If the
> project has Android and/or iOS 3.3.0 and the Cordova version installed is
> 3.5.0, then I'd advice developers to update the platform using command
> cordova platform update <platform>
>
> Thanks all!
>
>
> 2014-06-25 14:29 GMT-05:00 Carlos Santana <csantana23@gmail.com>:
>
> > 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 <iclelland@google.com>
> > wrote:
> >
> > > Hi Victor -- do you mean at runtime, from within the app? Or on your
> > > development machine?
> > >
> > > On Wednesday, June 25, 2014, Victor Sosa <sosah.victor@gmail.com>
> 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 <mhweiner234@gmail.com
> > > > <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 <
> sosah.victor@gmail.com
> > > > <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
> > <csantana23@gmail.com>
> >
>
>
>
> --
> Victor Adrian Sosa Herrera
> IBM Software Engineer
> Guadalajara, Jalisco
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message