Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
DoliSCAN
client-cordova
Commits
99928e3f
Commit
99928e3f
authored
Feb 27, 2020
by
Eric Seigne
Browse files
version 1.0.15: ajout du lien direct pour mise à jour lors du lancement
parent
fb5735d8
Changes
2
Hide whitespace changes
Inline
Side-by-side
config.xml
View file @
99928e3f
<?xml version='1.0' encoding='utf-8'?>
<widget
id=
"fr.caprel.doliscan"
version=
"1.0.1
4
"
xmlns=
"http://www.w3.org/ns/widgets"
xmlns:cdv=
"http://cordova.apache.org/ns/1.0"
>
<widget
id=
"fr.caprel.doliscan"
version=
"1.0.1
5
"
xmlns=
"http://www.w3.org/ns/widgets"
xmlns:cdv=
"http://cordova.apache.org/ns/1.0"
>
<name>
doliscan
</name>
<description>
A simple app for french people looking for a free and self hosting "notes de frais/expenses report" solution.
...
...
@@ -51,7 +51,7 @@
<edit-config
file=
"*-Info.plist"
mode=
"merge"
target=
"NSPhotoLibraryAddUsageDescription"
>
<string>
Please pick a pictures of your invoice / receipt
</string>
</edit-config>
<preference
name=
"OverrideUserAgent"
value=
"Mozilla/5.0 OpenNDF/1.0.1
4 iOS
"
/>
<preference
name=
"OverrideUserAgent"
value=
"Mozilla/5.0 OpenNDF/1.0.1
5 Android
"
/>
<plugin
name=
"cordova-plugin-inappbrowser"
spec=
"^3.0.0"
/>
<plugin
name=
"cordova-plugin-whitelist"
spec=
"^1.3.4"
/>
</widget>
www/index.html
View file @
99928e3f
...
...
@@ -190,8 +190,16 @@
if
(
typeof
result
.
data
!==
'
undefined
'
)
{
// myDebug("loginWithAPIToken : result.data ok, on compare " + globalCompatibleWithAPIVersion + " et " + result.data.api_version);
if
(
result
.
data
.
api_version
==
globalCompatibleWithAPIVersion
)
{
// myDebug("API Token tout est ok on bascule sur app.html");
updateLocalUserFromServer
(
result
,
updateLocalUserFromServerSuccess
);
if
(
result
.
data
.
app_version
==
globalAppVersion
)
{
// myDebug("API Token tout est ok on bascule sur app.html");
updateLocalUserFromServer
(
result
,
updateLocalUserFromServerSuccess
);
}
else
{
//Une nouvelle version existe on informe l'utilisateur sans le bloquer
$
(
"
#messagePopupMessage
"
).
replaceWith
(
result
.
data
.
app_version_message
);
$
(
"
#messagePopup
"
).
show
();
// updateLocalUserFromServer(result, updateLocalUserFromServerSuccess);
}
}
else
{
//Si on a un message specifique du serveur (genre api trop vieille) on l'affiche
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment