Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
cordova-plugin-app-version
Advanced tools
Cordova plugin to return the version number of the current app
Reads the version of your app from the target build settings.
We're looking for maintainers!
If you are using cordova-cli, install with:
cordova plugin add cordova-plugin-app-version
With a plain plugman, you should be able to install with something like:
plugman --platform <ios|android> --project <directory> --plugin https://github.com/sampart/cordova-plugin-app-version.git
TODO: Write these instructions
TODO: Write these instructions
If you are using jQuery, AngularJS, WinJS or any Promise/A library (Bluebird), 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:
Returns the name of the app. E.g. "My Awesome App"
Returns the package name of the app - the reversed domain name app identifier like com.example.myawesomeapp
Returns the build identifier of the app
Returns the version number of the app
Written by Robert (Jamie) Munro at White October
Various others have contributed fixes and new features. See the CHANGELOG.md for details.
Original code based on the following Stack Overflow posts:
FAQs
Cordova plugin to return the version number of the current app
The npm package cordova-plugin-app-version receives a total of 10,650 weekly downloads. As such, cordova-plugin-app-version popularity was classified as popular.
We found that cordova-plugin-app-version demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.