From 3bef5f29ece2ffb3a32a61b72895a04540f535f4 Mon Sep 17 00:00:00 2001 From: Fredia Huya-Kouadio Date: Wed, 24 May 2023 14:40:37 -0700 Subject: [PATCH] Update the format for the app version code and name --- platform/android/java/app/config.gradle | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/platform/android/java/app/config.gradle b/platform/android/java/app/config.gradle index 657760a5367..2f1e44b03b4 100644 --- a/platform/android/java/app/config.gradle +++ b/platform/android/java/app/config.gradle @@ -132,14 +132,16 @@ ext.generateGodotLibraryVersion = { List requiredKeys -> String statusValue = map["status"] if (statusValue == null) { statusCode = 0 - } else if (statusValue.startsWith("alpha") || statusValue.startsWith("dev")) { + } else if (statusValue.startsWith("dev")) { statusCode = 1 - } else if (statusValue.startsWith("beta")) { + } else if (statusValue.startsWith("alpha")) { statusCode = 2 - } else if (statusValue.startsWith("rc")) { + } else if (statusValue.startsWith("beta")) { statusCode = 3 - } else if (statusValue.startsWith("stable")) { + } else if (statusValue.startsWith("rc")) { statusCode = 4 + } else if (statusValue.startsWith("stable")) { + statusCode = 5 } else { statusCode = 0 }