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:
MohitMaliFtechiz 2024-01-29 19:05:41 +05:30 committed by Kelson
parent ecc0c4e130
commit fa031a4fde

View File

@ -55,7 +55,7 @@ data class CustomApp(
parsedJson.getAndCast("support_url") ?: ""
)
val versionCode: Int = formatCurrentDate("YYDDD0").toInt()
val versionCode: Int = formatCurrentDate("yyDDD0").toInt()
companion object {
private fun readVersionOrInfer(parsedJson: JSONObject) =