Add minimum client version check code, modify critical error handling,

bump version to 1.5.2
master
Skylar Ittner 8 years ago
parent cb411cd5c6
commit ee2b224b0e

@ -1,5 +1,5 @@
<?xml version='1.0' encoding='utf-8'?> <?xml version="1.0" encoding="utf-8" standalone="no"?>
<widget android-versionCode="105010" id="com.netsyms.terranquest.TerranQuest" version="1.5.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0" xmlns:gap="http://phonegap.com/ns/1.0"> <widget xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0" xmlns:gap="http://phonegap.com/ns/1.0" android-versionCode="105020" id="com.netsyms.terranquest.TerranQuest" version="1.5.2">
<name>TerranQuest</name> <name>TerranQuest</name>
<description> <description>
Augmented Reality fantasy game Augmented Reality fantasy game
@ -7,47 +7,47 @@
<author email="admin@netsyms.com" href="https://netsyms.com"> <author email="admin@netsyms.com" href="https://netsyms.com">
Netsyms Technologies Netsyms Technologies
</author> </author>
<icon src="res/icon.png" /> <icon src="res/icon.png"/>
<preference name="SplashScreen" value="res/splash.9.png" /> <preference name="SplashScreen" value="res/splash.9.png"/>
<preference name="FadeSplashScreen" value="true" /> <preference name="FadeSplashScreen" value="true"/>
<preference name="FadeSplashScreenDuration" value="2000" /> <preference name="FadeSplashScreenDuration" value="2000"/>
<preference name="SplashScreenDelay" value="1000" /> <preference name="SplashScreenDelay" value="1000"/>
<preference name="SplashMaintainAspectRatio" value="false" /> <preference name="SplashMaintainAspectRatio" value="false"/>
<preference name="SplashShowOnlyFirstTime" value="true" /> <preference name="SplashShowOnlyFirstTime" value="true"/>
<preference name="AutoHideSplashScreen" value="false" /> <preference name="AutoHideSplashScreen" value="false"/>
<preference name="ShowSplashScreen" value="true" /> <preference name="ShowSplashScreen" value="true"/>
<platform name="browser"> <platform name="browser">
<preference name="ShowSplashScreen" value="false" /> <preference name="ShowSplashScreen" value="false"/>
</platform> </platform>
<content src="index.html" /> <content src="index.html"/>
<access origin="*" /> <access origin="*"/>
<allow-navigation href="*" /> <allow-navigation href="*"/>
<allow-intent href="http://*/*" /> <allow-intent href="http://*/*"/>
<allow-intent href="https://*/*" /> <allow-intent href="https://*/*"/>
<allow-intent href="tel:*" /> <allow-intent href="tel:*"/>
<allow-intent href="sms:*" /> <allow-intent href="sms:*"/>
<allow-intent href="mailto:*" /> <allow-intent href="mailto:*"/>
<allow-intent href="geo:*" /> <allow-intent href="geo:*"/>
<platform name="android"> <platform name="android">
<allow-intent href="market:*" /> <allow-intent href="market:*"/>
</platform> </platform>
<platform name="ios"> <platform name="ios">
<allow-intent href="itms:*" /> <allow-intent href="itms:*"/>
<allow-intent href="itms-apps:*" /> <allow-intent href="itms-apps:*"/>
</platform> </platform>
<engine name="browser" spec="~4.0.0" /> <engine name="browser" spec="~4.0.0"/>
<engine name="android" spec="latest" /> <engine name="android" spec="latest"/>
<plugin name="cordova-plugin-dialogs" spec="https://git-wip-us.apache.org/repos/asf/cordova-plugin-dialogs.git" /> <plugin name="cordova-plugin-dialogs" spec="https://git-wip-us.apache.org/repos/asf/cordova-plugin-dialogs.git"/>
<plugin name="cordova-plugin-whitelist" spec="https://github.com/apache/cordova-plugin-whitelist.git" /> <plugin name="cordova-plugin-whitelist" spec="https://github.com/apache/cordova-plugin-whitelist.git"/>
<plugin name="cordova-plugin-console" spec="https://git-wip-us.apache.org/repos/asf/cordova-plugin-console.git" /> <plugin name="cordova-plugin-console" spec="https://git-wip-us.apache.org/repos/asf/cordova-plugin-console.git"/>
<plugin name="cordova-plugin-device" spec="https://git-wip-us.apache.org/repos/asf/cordova-plugin-device.git" /> <plugin name="cordova-plugin-device" spec="https://git-wip-us.apache.org/repos/asf/cordova-plugin-device.git"/>
<plugin name="cordova-plugin-camera" spec="https://git-wip-us.apache.org/repos/asf/cordova-plugin-camera.git" /> <plugin name="cordova-plugin-camera" spec="https://git-wip-us.apache.org/repos/asf/cordova-plugin-camera.git"/>
<plugin name="cordova-plugin-splashscreen" spec="https://git-wip-us.apache.org/repos/asf/cordova-plugin-splashscreen.git" /> <plugin name="cordova-plugin-splashscreen" spec="https://git-wip-us.apache.org/repos/asf/cordova-plugin-splashscreen.git"/>
<plugin name="cordova-plugin-network-information" spec="https://git-wip-us.apache.org/repos/asf/cordova-plugin-network-information.git" /> <plugin name="cordova-plugin-network-information" spec="https://git-wip-us.apache.org/repos/asf/cordova-plugin-network-information.git"/>
<plugin name="cordova-plugin-media" spec="https://git-wip-us.apache.org/repos/asf/cordova-plugin-media.git" /> <plugin name="cordova-plugin-media" spec="https://git-wip-us.apache.org/repos/asf/cordova-plugin-media.git"/>
<plugin name="cordova-plugin-media-capture" spec="https://git-wip-us.apache.org/repos/asf/cordova-plugin-media-capture.git" /> <plugin name="cordova-plugin-media-capture" spec="https://git-wip-us.apache.org/repos/asf/cordova-plugin-media-capture.git"/>
<plugin name="cordova-plugin-geolocation" spec="https://git-wip-us.apache.org/repos/asf/cordova-plugin-geolocation.git" /> <plugin name="cordova-plugin-geolocation" spec="https://git-wip-us.apache.org/repos/asf/cordova-plugin-geolocation.git"/>
<plugin name="com.phonegap.plugins.barcodescanner" spec="https://github.com/Telerik-Verified-Plugins/BarcodeScanner" /> <plugin name="com.phonegap.plugins.barcodescanner" spec="https://github.com/Telerik-Verified-Plugins/BarcodeScanner"/>
<plugin name="cordova-plugin-inapppurchase" spec="~1.0.0" /> <plugin name="cordova-plugin-inapppurchase" spec="~1.0.0"/>
<plugin name="cordova_app_version_plugin" spec="~0.2.6" /> <plugin name="cordova_app_version_plugin" spec="~0.2.6"/>
</widget> </widget>

@ -21,4 +21,6 @@ cordova-plugin-console=https://git-wip-us.apache.org/repos/asf/cordova-plugin-co
cordova-plugin-device=https://git-wip-us.apache.org/repos/asf/cordova-plugin-device.git cordova-plugin-device=https://git-wip-us.apache.org/repos/asf/cordova-plugin-device.git
com.phonegap.plugins.barcodescanner=https://github.com/Telerik-Verified-Plugins/BarcodeScanner3 com.phonegap.plugins.barcodescanner=https://github.com/Telerik-Verified-Plugins/BarcodeScanner3
cordova-plugin-inapppurchase=https://github.com/AlexDisler/cordova-plugin-inapppurchase cordova-plugin-inapppurchase=https://github.com/AlexDisler/cordova-plugin-inapppurchase
cordova_app_version_plugin=https://github.com/Binarypark/cordova_app_version_plugin cordova_app_version_plugin=https://github.com/Binarypark/cordova_app_version_plugin
cordova-plugin-file=https://git-wip-us.apache.org/repos/asf/cordova-plugin-file.git
cordova-plugin-compat=https://git-wip-us.apache.org/repos/asf/cordova-plugin-compat.git

@ -0,0 +1,99 @@
<!--
TerranQuest - Augmented Reality fantasy game
Copyright 2016 Netsyms Technologies
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">
<meta http-equiv="Content-Security-Policy"
content="default-src *;
style-src * 'self' 'unsafe-inline' 'unsafe-eval';
script-src * 'self' 'unsafe-inline' 'unsafe-eval';">
<title>TerranQuest</title>
<!-- Bootstrap Core CSS -->
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/main.css" rel="stylesheet">
<!-- FontAwesome -->
<link href="css/font-awesome.css" rel="stylesheet">
<!-- jQuery Version 1.11.1 -->
<script src="js/jquery.js"></script>
<!-- i18n -->
<script src="js/jquery.localize.js"></script>
<script>
var i18n_options = {pathPrefix: "lang", skipLanguage: "en-US"};
</script>
<!-- Bootstrap Core JavaScript -->
<script src="js/bootstrap.js"></script>
<script src="cordova.js"></script>
</head>
<body>
<div id="modal-load-box" class="container" style='z-index: 1000;'>
</div>
<div class="container" id="content-zone" style='z-index: 1;'>
<div style="position: absolute; width: 100%; height: 100%; top: 0; left: 0; background-color: #324150; z-index: 9999;">
<img src="assets/logonobg.svg" alt="" style="display: block; position: absolute; max-width: 90%; top: 0; left: 0; right: 0; bottom: 25%; margin: auto; max-height: 20%;" />
<p style="font-family: sans-serif; color: white; position: absolute; max-width: 90%; left: 0; right: 0; bottom: 30%; margin: auto; text-align: center;">
<span id="clientproblemmsg">A game error occurred.</span>
<br /><br />
<button class="btn btn-primary" onclick="navigator.app.exitApp()">Quit game</button>
<div style="background: url(assets/mountains-simple.svg) repeat-x; background-size: auto 100%; height: 20%; position: absolute; bottom: 0; width: 100%;"></div>
</div>
</div>
<script>
/*
* http://stackoverflow.com/a/21903119/2534036
*/
var getUrlParameter = function getUrlParameter(sParam) {
var sPageURL = decodeURIComponent(window.location.search.substring(1)),
sURLVariables = sPageURL.split('&'),
sParameterName,
i;
for (i = 0; i < sURLVariables.length; i++) {
sParameterName = sURLVariables[i].split('=');
if (sParameterName[0] === sParam) {
return sParameterName[1] === undefined ? true : sParameterName[1];
}
}
};
$(document).ready(function () {
$('#clientproblemmsg').text(getUrlParameter('errmsg'));
});
</script>
</body>
</html>

@ -1,37 +0,0 @@
<!--
TerranQuest - Augmented Reality fantasy game
Copyright 2016 Netsyms Technologies
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<div style="position: absolute; width: 100%; height: 100%; top: 0; left: 0; background-color: #324150; z-index: 9999;">
<img src="assets/logonobg.svg" alt="" style="display: block; position: absolute; max-width: 90%; top: 0; left: 0; right: 0; bottom: 25%; margin: auto; max-height: 20%;" />
<p style="font-family: sans-serif; color: white; position: absolute; max-width: 90%; left: 0; right: 0; bottom: 30%; margin: auto; text-align: center;">
We are experiencing server problems. Try again later.
<br />
<i class="fa fa-exclamation-triangle fa-3x"></i>
<br />
<span id="serverproblemmsg">(sorry)</span>
<div style="background: url(assets/mountains-simple.svg) repeat-x; background-size: auto 100%; height: 20%; position: absolute; bottom: 0; width: 100%;"></div>
</div>
<script>
/*
* Stop all scheduled network activity
*/
var id = window.setTimeout(function () {}, 0);
while (id--) {
window.clearTimeout(id);
}
</script>

@ -0,0 +1,101 @@
<!--
TerranQuest - Augmented Reality fantasy game
Copyright 2016 Netsyms Technologies
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">
<meta http-equiv="Content-Security-Policy"
content="default-src *;
style-src * 'self' 'unsafe-inline' 'unsafe-eval';
script-src * 'self' 'unsafe-inline' 'unsafe-eval';">
<title>TerranQuest</title>
<!-- Bootstrap Core CSS -->
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/main.css" rel="stylesheet">
<!-- FontAwesome -->
<link href="css/font-awesome.css" rel="stylesheet">
<!-- jQuery Version 1.11.1 -->
<script src="js/jquery.js"></script>
<!-- i18n -->
<script src="js/jquery.localize.js"></script>
<script>
var i18n_options = {pathPrefix: "lang", skipLanguage: "en-US"};
</script>
<!-- Bootstrap Core JavaScript -->
<script src="js/bootstrap.js"></script>
<script src="cordova.js"></script>
</head>
<body>
<div id="modal-load-box" class="container" style='z-index: 1000;'>
</div>
<div class="container" id="content-zone" style='z-index: 1;'>
<div style="position: absolute; width: 100%; height: 100%; top: 0; left: 0; background-color: #324150; z-index: 9999;">
<img src="assets/logonobg.svg" alt="" style="display: block; position: absolute; max-width: 90%; top: 0; left: 0; right: 0; bottom: 25%; margin: auto; max-height: 20%;" />
<p id="servererrorp" style="font-family: sans-serif; color: white; position: absolute; max-width: 90%; left: 0; right: 0; bottom: 30%; margin: auto; text-align: center;">
We are experiencing server problems. Try again later.
<br />
<i class="fa fa-exclamation-triangle fa-3x"></i>
<br />
<span id="serverproblemmsg">(sorry)</span>
<div style="background: url(assets/mountains-simple.svg) repeat-x; background-size: auto 100%; height: 20%; position: absolute; bottom: 0; width: 100%;"></div>
</div>
</div>
<script>
/*
* http://stackoverflow.com/a/21903119/2534036
*/
var getUrlParameter = function getUrlParameter(sParam) {
var sPageURL = decodeURIComponent(window.location.search.substring(1)),
sURLVariables = sPageURL.split('&'),
sParameterName,
i;
for (i = 0; i < sURLVariables.length; i++) {
sParameterName = sURLVariables[i].split('=');
if (sParameterName[0] === sParam) {
return sParameterName[1] === undefined ? true : sParameterName[1];
}
}
};
$(document).ready(function () {
$('#serverproblemmsg').text(getUrlParameter('errmsg'));
});
</script>
</body>
</html>