Prepare for publish

This commit is contained in:
Minecon724 2025-10-28 08:32:58 +01:00
commit 6e1d5dcb0d
Signed by untrusted user who does not match committer: m724
GPG key ID: A02E6E67AB961189
3 changed files with 7 additions and 2 deletions

View file

@ -2,8 +2,13 @@ plugins {
kotlin("multiplatform") version "2.2.21"
id("io.kotest") version "6.0.4"
id("com.google.devtools.ksp") version "2.3.0"
id("maven-publish")
}
group = "eu.m724.dn42"
version = "0.0.1-SNAPSHOT"
repositories {
mavenCentral()
}

View file

@ -1,4 +1,4 @@
plugins {
id("org.gradle.toolchains.foojay-resolver-convention") version "0.8.0"
}
rootProject.name = "dn42-auth"
rootProject.name = "auth"

View file

@ -20,7 +20,7 @@ sealed interface AuthenticationMethod {
companion object {
fun fromString(value: String): AuthenticationMethod {
val (keyType, fingerprint) = value.split(" ")
val (keyType, fingerprint) = value.trim().split(" ")
val authenticationMethod = if (keyType == "pgp-fingerprint") {
val bytes = fingerprint.hexToByteArray()