Skip to content

Commit

Permalink
Support for "STABLEPREVIEW" webUI version
Browse files Browse the repository at this point in the history
Makes it possible to release new stable webUI versions without having to update the mapping file.
  • Loading branch information
schroda committed Jun 15, 2024
1 parent fda4cd6 commit 1eba205
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -597,16 +597,19 @@ object WebInterfaceManager {
?: throw Exception("Invalid mappingFile")
val minServerVersionNumber = extractVersion(minServerVersionString)

// is a STABLE webUI release, without a specified webUI version, which requires same handling as the PREVIEW release
val isUnknownStableVersion = webUIVersion == "STABLEPREVIEW"

if (!WebUIChannel.doesConfigChannelEqual(WebUIChannel.from(webUIVersion))) {
// allow only STABLE versions for STABLE channel
if (WebUIChannel.doesConfigChannelEqual(WebUIChannel.STABLE)) {
if (WebUIChannel.doesConfigChannelEqual(WebUIChannel.STABLE) || !isUnknownStableVersion) {
continue
}

// allow all versions for PREVIEW channel
}

if (webUIVersion == WebUIChannel.PREVIEW.name) {
if (webUIVersion == WebUIChannel.PREVIEW.name || isUnknownStableVersion) {
webUIVersion = fetchPreviewVersion(flavor)
}

Expand Down

0 comments on commit 1eba205

Please sign in to comment.