Version Compare Versions Save

Lightweight library for Android, Java and Kotlin to compare version strings.

1.5.0

2 years ago
  • changed version number handling from Integer to Long
    • getSubversionNumbers() now returns a list of Long
    • getMajor(), getMinor(), getPatch() now return long
  • optimized and cleanup compare logic to use the Comparable methods
  • changed nullability annotations to org.jetbrains.annotations
  • fixed a bug where the pre-release version number was not detected due to case sensitivity
  • add Kotlin samples to the README

1.4.1

3 years ago

MOVED TO MAVEN-CENTRAL (see 1.4.0 changes)

  • update test dependencies
  • refactor code smells

1.4.0

3 years ago

MOVED TO MAVEN-CENTRAL

  • future releases will only be available on Maven Central
  • package name had to be changed due to restrictions of the verification process
  • logic is untouched
  • updated build scripts, add GitHub Actions CI and SonarCloud integration

Migration Guide:

Change your Gradle or maven dependency

com.g00fy2:versioncompare:1.3.7 -> io.github.g00fy2:versioncompare:1.4.0

Change you imports

import com.g00fy2.versioncompare.Version -> import io.github.g00fy2.versioncompare.Version

1.3.7

3 years ago
  • explicitly set java compile target to 1.8 (like before 1.3.6) and recompile library (fixes #10)

1.3.6

3 years ago
  • fixed critical bug added with previous version 1.3.5 (fixes #9)

1.3.5

3 years ago

PLEASE UPDATE to 1.3.6, since this version has a critical bug

  • add hashCode implementation (fixes #8)

1.3.4

4 years ago
  • add Comparable interface for Version ( #7 thanks to @janakaaleph)

1.3.3

4 years ago
  • add support for versions tagged with snapshot (lowest possible pre-release type)

1.3.2

5 years ago
  • library logic untouched
  • switched from android-library to java-library and embed R8 rules (9bf15a5)
    • no longer two separate artifacts (aar/jar)
    • updated Gradle and deployment plugins

1.3.1

5 years ago
  • simplify the preReleaseVersion logic
  • improve release qualifier detection