compareMain

external fun compareMain(other: String): Int(source)
external fun compareMain(other: SemVer): Int(source)

Compares the release portion of two versions.

Return

  • 0 if this == other

  • 1 if this is greater

  • -1 if other is greater.