Add version and copyright info to Settings, bump version to 1.1.0

This commit is contained in:
Skylar Ittner 2017-07-10 13:38:03 -06:00
parent 6e5f45ef0a
commit d3d7f6b51e
4 changed files with 31 additions and 5 deletions

View File

@ -1,5 +1,5 @@
<?xml version='1.0' encoding='utf-8'?> <?xml version='1.0' encoding='utf-8'?>
<widget id="com.netsyms.BusinessMobile" version="1.0.0" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0"> <widget id="com.netsyms.BusinessMobile" version="1.1.0" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<name>Business</name> <name>Business</name>
<description> <description>
Mobile client for the Netsyms Business Apps. Mobile client for the Netsyms Business Apps.
@ -59,6 +59,7 @@
<preference name="SplashScreenDelay" value="3000" /> <preference name="SplashScreenDelay" value="3000" />
<preference name="AutoHideSplashScreen" value="false" /> <preference name="AutoHideSplashScreen" value="false" />
<engine name="android" spec="^6.2.3" /> <engine name="android" spec="^6.2.3" />
<plugin name="cordova-plugin-app-version" spec="^0.1.9" />
<plugin name="cordova-plugin-console" spec="git+https://github.com/apache/cordova-plugin-console.git" /> <plugin name="cordova-plugin-console" spec="git+https://github.com/apache/cordova-plugin-console.git" />
<plugin name="cordova-plugin-device" spec="git+https://github.com/apache/cordova-plugin-device.git" /> <plugin name="cordova-plugin-device" spec="git+https://github.com/apache/cordova-plugin-device.git" />
<plugin name="cordova-plugin-dialogs" spec="git+https://github.com/apache/cordova-plugin-dialogs.git" /> <plugin name="cordova-plugin-dialogs" spec="git+https://github.com/apache/cordova-plugin-dialogs.git" />

View File

@ -7,3 +7,4 @@ phonegap-plugin-barcodescanner=https://github.com/phonegap/phonegap-plugin-barco
cordova-plugin-statusbar=https://github.com/apache/cordova-plugin-statusbar.git cordova-plugin-statusbar=https://github.com/apache/cordova-plugin-statusbar.git
cordova-plugin-headercolor=https://github.com/tomloprod/cordova-plugin-headercolor.git cordova-plugin-headercolor=https://github.com/tomloprod/cordova-plugin-headercolor.git
cordova-plugin-inappbrowser=https://github.com/apache/cordova-plugin-inappbrowser.git cordova-plugin-inappbrowser=https://github.com/apache/cordova-plugin-inappbrowser.git
cordova-plugin-app-version=https://github.com/whiteoctober/cordova-plugin-app-version.git

View File

@ -8,6 +8,7 @@
"license": "netsyms-business-license", "license": "netsyms-business-license",
"dependencies": { "dependencies": {
"cordova-android": "^6.2.3", "cordova-android": "^6.2.3",
"cordova-plugin-app-version": "^0.1.9",
"cordova-plugin-compat": "^1.1.0", "cordova-plugin-compat": "^1.1.0",
"cordova-plugin-console": "git+https://github.com/apache/cordova-plugin-console.git", "cordova-plugin-console": "git+https://github.com/apache/cordova-plugin-console.git",
"cordova-plugin-device": "git+https://github.com/apache/cordova-plugin-device.git", "cordova-plugin-device": "git+https://github.com/apache/cordova-plugin-device.git",
@ -30,7 +31,8 @@
"cordova-plugin-splashscreen": {}, "cordova-plugin-splashscreen": {},
"cordova-plugin-statusbar": {}, "cordova-plugin-statusbar": {},
"cordova-plugin-headercolor": {}, "cordova-plugin-headercolor": {},
"cordova-plugin-inappbrowser": {} "cordova-plugin-inappbrowser": {},
"cordova-plugin-app-version": {}
}, },
"platforms": [ "platforms": [
"android" "android"

View File

@ -28,6 +28,18 @@
</div> </div>
</div> </div>
<div class="list-group">
<div class="list-group-item">
<span id="app_name">Netsyms Business Apps for Mobile</span> v<span id="app_version">1.x</span>
<br />
Copyright &copy; 2017 Netsyms Technologies (https://netsyms.com)
<br />
<span id="app_package">com.netsyms.BusinessMobile</span>
<br />
build #<span id="app_version_code">1xxxx</span>
</div>
</div>
<script> <script>
setnavbar("settings"); setnavbar("settings");
@ -105,4 +117,14 @@
if (localStorage.getItem("animations") === "false") { if (localStorage.getItem("animations") === "false") {
$('#animations_offon_label').text("on"); $('#animations_offon_label').text("on");
} }
cordova.getAppVersion.getVersionNumber(function (version) {
$('#app_version').text(version);
});
cordova.getAppVersion.getPackageName(function (package) {
$('#app_package').text(package);
});
cordova.getAppVersion.getVersionCode(function (version) {
$('#app_version_code').text(version);
});
</script> </script>