diff options
| author | Arjun Roychowdhury <pliablepixels@gmail.com> | 2015-10-31 08:21:38 -0400 |
|---|---|---|
| committer | Arjun Roychowdhury <pliablepixels@gmail.com> | 2015-10-31 08:21:38 -0400 |
| commit | 02811010cf62f1b21a06780d1e470d04bb24c50f (patch) | |
| tree | 0d933789068aac11c810ed4bb169d14ab16c43c6 /plugins/uk.co.whiteoctober.cordova.appversion/README.md | |
| parent | bca561c1b3989d62a1fba829e0380c6fbf36caf5 (diff) | |
removed unecessary files from git
Diffstat (limited to 'plugins/uk.co.whiteoctober.cordova.appversion/README.md')
| -rw-r--r-- | plugins/uk.co.whiteoctober.cordova.appversion/README.md | 71 |
1 files changed, 0 insertions, 71 deletions
diff --git a/plugins/uk.co.whiteoctober.cordova.appversion/README.md b/plugins/uk.co.whiteoctober.cordova.appversion/README.md deleted file mode 100644 index 2afff928..00000000 --- a/plugins/uk.co.whiteoctober.cordova.appversion/README.md +++ /dev/null @@ -1,71 +0,0 @@ -# Cordova AppVersion plugin - -Reads the version of your app from the target build settings. - -## Installation - -### With cordova-cli - -If you are using [cordova-cli](https://github.com/apache/cordova-cli), install -with: - - cordova plugin add https://github.com/whiteoctober/cordova-plugin-app-version.git - -### With plugman - -With a plain [plugman](https://github.com/apache/cordova-plugman), you should be -able to install with something like: - - plugman --platform <ios|android> --project <directory> --plugin https://github.com/whiteoctober/cordova-plugin-app-version.git - -### Manually in iOS - -TODO: Write these instructions - -### Manually in Android - -TODO: Write these instructions - -## Use from Javascript - -If you are using jQuery or AngularJS, promise style is supported. Use something like: - - cordova.getAppVersion.getVersionNumber().then(function (version) { - $('.version').text(version); - }); - -If not, pass a callback function: - - cordova.getAppVersion.getVersionNumber(function (version) { - alert(version); - }); - -In addition to the version number you can also retrieve other details about your application: - -### getAppName - -Returns the name of the app. E.g. "My Awesome App" - -### getPackageName - -Returns the package name of the app - the reversed domain name app identifier like com.example.myawesomeapp - -### getVersionCode - -Returns the build identifier of the app - -### getVersionNumber - -Returns the version number of the app - -## Credits - -Written by [Robert (Jamie) Munro](http://twitter.com/rjmunro) at -[White October](http://whiteoctober.co.uk/) - -Various others have contributed fixes and new features. See the CHANGELOG.md for details. - -Original code based on the following Stack Overflow posts: - -* [iOS](http://stackoverflow.com/a/14713364/3408) -* [Android](http://stackoverflow.com/a/3637686/3408) |
