Browse Source

Merge pull request #77454 from m4gr3d/update_alpha_status_code_3x

[3.x] Update the format for the app version code and name
Rémi Verschelde 2 years ago
parent
commit
fc58d93176
1 changed files with 6 additions and 4 deletions
  1. 6 4
      platform/android/java/app/config.gradle

+ 6 - 4
platform/android/java/app/config.gradle

@@ -132,14 +132,16 @@ ext.generateGodotLibraryVersion = { List<String> 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
                     }