Module version
This module helps with retrieving version information.
Functions
Version:getCurrentRevision () | Returns current KOReader git-rev. |
Version:getNormalizedVersion (rev) | Returns normalized version of KOReader git-rev input string. |
Version:getNormalizedCurrentVersion () | Returns current version of KOReader. |
Functions
- Version:getCurrentRevision ()
-
Returns current KOReader git-rev.
Returns:
-
string
full KOReader git-rev such
v2015.11-982-g704d4238
- Version:getNormalizedVersion (rev)
-
Returns normalized version of KOReader git-rev input string.
Parameters:
- rev
string
full KOReader git-rev such
v2015.11-982-g704d4238
Returns:
-
int
version in the form of a number such as
201511982
-
string
short git commit version hash such as
704d4238
- rev
string
full KOReader git-rev such
- Version:getNormalizedCurrentVersion ()
-
Returns current version of KOReader.
Returns:
-
int
version in the form of a number such as
201511982
-
string
short git commit version hash such as
704d4238
See also:
-
int
version in the form of a number such as