[
https://issues.apache.org/jira/browse/CB-5085?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13797987#comment-13797987
]
Carlos Santana commented on CB-5085:
------------------------------------
Andrew
maybe you already know this but we have two variable
device.cordova
http://cordova.apache.org/docs/en/edge/cordova_device_device.md.html#device.cordova
device.version
http://cordova.apache.org/docs/en/edge/cordova_device_device.md.html#device.version
This bug is for device.cordova
I will not want to change the API for device.cordova (it should print 2.9.0,
3.0.0, 3.1.0, 3.2.0)
Also I will want user to start using cordova.version this way they don't need a
plugin to get this info. and maybe start marking device.cordova deprecated
Also the plugin device should be only required when user wants info specific to
the device
User should be able to get the version of the platform, and cordova without the
need of a device plugin. That was the whole point of making it an optional
device plugin I think.
I will suggest you open a different jira issue to address the value of
device.version or
maybe suggest a new variable
like cordova.platform-version=require('cordova/platform').version
> device.cordova on Android 3.1.x returns "dev"
> ---------------------------------------------
>
> Key: CB-5085
> URL: https://issues.apache.org/jira/browse/CB-5085
> Project: Apache Cordova
> Issue Type: Bug
> Components: Plugin Device
> Reporter: Marcel Kinard
> Assignee: Carlos Santana
> Priority: Minor
>
> The "dev" value is hardcoded in the plugin's native code.
--
This message was sent by Atlassian JIRA
(v6.1#6144)