Before this patch, publisher was always using the channel corresponding to the first number in the plugin version for release builds. This is because by default, Kotlin's substringAfter will return the whole input string if it's unable to find the needle.
So, for example, "1.2.3".substringAfter('-').substringBefore('.') would yield "1".
Before this patch, publisher was always using the channel corresponding to the first number in the plugin version for release builds. This is because by default, Kotlin's
substringAfter
will return the whole input string if it's unable to find the needle.So, for example,
"1.2.3".substringAfter('-').substringBefore('.')
would yield"1"
.