diff options
author | Linnea Gräf <nea@nea.moe> | 2024-08-11 13:22:24 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-11 13:22:24 +0200 |
commit | 8903d9fa783455558d20eb32a2038c87ab5913be (patch) | |
tree | 2c925d0ecf625f8e8a5505960d0d51d2201e88e2 /sharedVariables/src/Util.kt | |
parent | a8d4861b051298cc8a1db3c5210a32abab866b1e (diff) | |
download | skyhanni-8903d9fa783455558d20eb32a2038c87ab5913be.tar.gz skyhanni-8903d9fa783455558d20eb32a2038c87ab5913be.tar.bz2 skyhanni-8903d9fa783455558d20eb32a2038c87ab5913be.zip |
Add multi version preprocessor (#2283)
Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
Diffstat (limited to 'sharedVariables/src/Util.kt')
-rw-r--r-- | sharedVariables/src/Util.kt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sharedVariables/src/Util.kt b/sharedVariables/src/Util.kt new file mode 100644 index 000000000..750a73cbe --- /dev/null +++ b/sharedVariables/src/Util.kt @@ -0,0 +1,7 @@ +package at.skyhanni.sharedvariables + +import org.gradle.jvm.toolchain.JavaLanguageVersion + +fun JavaLanguageVersion.versionString() = + if (asInt() < 9) "1." + asInt() + else asInt().toString() |