mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-08 06:42:21 -04:00
Fixed: Release versions are lower in the custom apps.
* Changed the date format from `YYDDD0` to `yyDDD0` to accurately calculate the version code for the last day of the year as well.
This commit is contained in:
parent
ecc0c4e130
commit
fa031a4fde
@ -55,7 +55,7 @@ data class CustomApp(
|
|||||||
parsedJson.getAndCast("support_url") ?: ""
|
parsedJson.getAndCast("support_url") ?: ""
|
||||||
)
|
)
|
||||||
|
|
||||||
val versionCode: Int = formatCurrentDate("YYDDD0").toInt()
|
val versionCode: Int = formatCurrentDate("yyDDD0").toInt()
|
||||||
|
|
||||||
companion object {
|
companion object {
|
||||||
private fun readVersionOrInfer(parsedJson: JSONObject) =
|
private fun readVersionOrInfer(parsedJson: JSONObject) =
|
||||||
|
Loading…
x
Reference in New Issue
Block a user