QazCetelic / SemVer-KMP

A Kotlin library for Semantic Versioning with ranges and other features.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Semantic Versioning Library for Kotlin Multi-Platform

A Kotlin library for Semantic Versioning with ranges and other features such as specifying if a patch is required. It was made because the existing libraries weren't Kotlin Multiplatform Projects, didn't have ranges and several other features.

val semver = SemVer("1.0.0")
val semverRange = Semver("0.5.0")..Semver("2.0.0")

"1.18".toSemVerOrNull(patchRequired = false)

assertTrue { semver in semverRange }
assertTrue { SemVer("0.5.0-alpha").isPreRelease }

Credits to Swiftzer's SemVer library for inspiring the creation of this project.

About

A Kotlin library for Semantic Versioning with ranges and other features.

License:GNU Lesser General Public License v2.1


Languages

Language:Kotlin 100.0%