Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/qazcetelic/semver-kmp
A Kotlin library for Semantic Versioning with ranges and other features.
https://github.com/qazcetelic/semver-kmp
kmp kotlin kotlin-library kotlin-multiplatform semver semver-parser
Last synced: about 14 hours ago
JSON representation
A Kotlin library for Semantic Versioning with ranges and other features.
- Host: GitHub
- URL: https://github.com/qazcetelic/semver-kmp
- Owner: QazCetelic
- License: lgpl-2.1
- Created: 2021-03-05T08:27:16.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2023-09-23T12:27:03.000Z (over 1 year ago)
- Last Synced: 2024-11-03T01:33:27.063Z (3 months ago)
- Topics: kmp, kotlin, kotlin-library, kotlin-multiplatform, semver, semver-parser
- Language: Kotlin
- Homepage:
- Size: 50.8 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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.```kotlin
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](https://github.com/swiftzer/semver) for inspiring the creation of this project.