Skip to content

Commit

Permalink
Bump version 1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
hannibal002 committed Jan 6, 2025
1 parent 2fe67fc commit 3d0d365
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions root.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ allprojects {

/**
* The version of the project.
* Major version
* Minor version
* Stable version
* Beta version
* Bugfix version
*/
version = "1.0.0"
version = "1.1.0"

repositories {
mavenCentral()
Expand Down
10 changes: 5 additions & 5 deletions src/main/java/at/hannibal2/skyhanni/utils/system/ModVersion.kt
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
package at.hannibal2.skyhanni.utils.system

data class ModVersion(val major: Int, val minor: Int, val beta: Int) : Comparable<ModVersion> {
data class ModVersion(val stable: Int, val beta: Int, val bugfix: Int) : Comparable<ModVersion> {

val isBeta get() = beta != 0

inline val asString get() = toString()

override fun toString(): String = "$major.$minor.$beta"
override fun toString(): String = "$stable.$beta.$bugfix"

override fun compareTo(other: ModVersion): Int {
return when {
major != other.major -> major.compareTo(other.major)
minor != other.minor -> minor.compareTo(other.minor)
else -> beta.compareTo(other.beta)
stable != other.stable -> stable.compareTo(other.stable)
beta != other.beta -> beta.compareTo(other.beta)
else -> bugfix.compareTo(other.bugfix)
}
}

Expand Down

0 comments on commit 3d0d365

Please sign in to comment.