From fa031a4fde4154e52b14f7d2e25d07002959f13a Mon Sep 17 00:00:00 2001 From: MohitMaliFtechiz Date: Mon, 29 Jan 2024 19:05:41 +0530 Subject: [PATCH] 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. --- buildSrc/src/main/kotlin/custom/CustomApp.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildSrc/src/main/kotlin/custom/CustomApp.kt b/buildSrc/src/main/kotlin/custom/CustomApp.kt index 4c2041fcd..a9ad195b5 100644 --- a/buildSrc/src/main/kotlin/custom/CustomApp.kt +++ b/buildSrc/src/main/kotlin/custom/CustomApp.kt @@ -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) =