forked from sampart/cordova-plugin-app-version
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
71 lines (71 loc) · 4.01 KB
/
package.json
File metadata and controls
71 lines (71 loc) · 4.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
{
"_args": [
[
{
"raw": "E:\\work\\git\\cordova-plugin-app-version",
"scope": null,
"escapedName": null,
"name": null,
"rawSpec": "E:\\work\\git\\cordova-plugin-app-version",
"spec": "E:\\work\\git\\cordova-plugin-app-version",
"type": "directory"
},
"E:\\work\\git\\SportPriority.App.Ionic\\node_modules"
]
],
"_from": "..\\cordova-plugin-app-version",
"_id": "cordova-plugin-app-version@0.1.9",
"_inCache": true,
"_location": "/cordova-plugin-app-version",
"_phantomChildren": {},
"_requested": {
"raw": "E:\\work\\git\\cordova-plugin-app-version",
"scope": null,
"escapedName": null,
"name": null,
"rawSpec": "E:\\work\\git\\cordova-plugin-app-version",
"spec": "E:\\work\\git\\cordova-plugin-app-version",
"type": "directory"
},
"_requiredBy": [
"#USER",
"/"
],
"_resolved": "file:..\\cordova-plugin-app-version",
"_shasum": "d4469aa29af41c874af5e321636490de6c4851ef",
"_shrinkwrap": null,
"_spec": "E:\\work\\git\\cordova-plugin-app-version",
"_where": "E:\\work\\git\\SportPriority.App.Ionic\\node_modules",
"author": {
"name": "whiteoctober"
},
"bugs": {
"url": "https://github.com/whiteoctober/cordova-plugin-app-version/issues"
},
"dependencies": {},
"description": "Cordova plugin to return the version number of the current app",
"devDependencies": {},
"gitHead": "e16bc62ab9556e1df34ef52a57eaa08dda16ba8d",
"homepage": "https://github.com/whiteoctober/cordova-plugin-app-version#readme",
"keywords": [
"cordova",
"ecosystem:cordova",
"app",
"version",
"appversion",
"plugin"
],
"license": "MIT",
"name": "cordova-plugin-app-version",
"optionalDependencies": {},
"readme": "# Cordova AppVersion plugin\r\n\r\nReads the version of your app from the target build settings.\r\n\r\n## Installation\r\n\r\n### With cordova-cli\r\n\r\nIf you are using [cordova-cli](https://github.com/apache/cordova-cli), install\r\nwith:\r\n\r\n cordova plugin add cordova-plugin-app-version\r\n\r\n### With plugman\r\n\r\nWith a plain [plugman](https://github.com/apache/cordova-plugman), you should be\r\nable to install with something like:\r\n\r\n plugman --platform <ios|android> --project <directory> --plugin https://github.com/whiteoctober/cordova-plugin-app-version.git\r\n\r\n### Manually in iOS\r\n\r\nTODO: Write these instructions\r\n\r\n### Manually in Android\r\n\r\nTODO: Write these instructions\r\n\r\n## Use from Javascript\r\n\r\nIf you are using jQuery, AngularJS, WinJS or any Promise/A library (Bluebird), promise style is supported. Use something like:\r\n\r\n cordova.getAppVersion.getVersionNumber().then(function (version) {\r\n $('.version').text(version);\r\n });\r\n\r\nIf not, pass a callback function:\r\n\r\n cordova.getAppVersion.getVersionNumber(function (version) {\r\n alert(version);\r\n });\r\n\r\nIn addition to the version number you can also retrieve other details about your application:\r\n\r\n### getAppName\r\n\r\nReturns the name of the app. E.g. \"My Awesome App\"\r\n\r\n### getPackageName\r\n\r\nReturns the package name of the app - the reversed domain name app identifier like com.example.myawesomeapp\r\n\r\n### getVersionCode\r\n\r\nReturns the build identifier of the app\r\n\r\n### getVersionNumber\r\n\r\nReturns the version number of the app\r\n\r\n## Credits\r\n\r\nWritten by [Robert (Jamie) Munro](http://twitter.com/rjmunro) at\r\n[White October](http://whiteoctober.co.uk/)\r\n\r\nVarious others have contributed fixes and new features. See the CHANGELOG.md for details.\r\n\r\nOriginal code based on the following Stack Overflow posts:\r\n\r\n* [iOS](http://stackoverflow.com/a/14713364/3408)\r\n* [Android](http://stackoverflow.com/a/3637686/3408)\r\n",
"readmeFilename": "README.md",
"repository": {
"type": "git",
"url": "git+https://github.com/delphist2008/cordova-plugin-app-version.git"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"version": "0.1.10"
}