add opt-in

This commit is contained in:
Infendro committed 2025-07-24 21:07:38 +02:00
1 parent ba1c983094
commit 633263c541
2 files changed
+4 -2

No files matched your search

+4
View File
@@ -26,6 +26,10 @@ kotlin {
implementation(libs.bytearray)
}
}
compilerOptions {
freeCompilerArgs.add("-opt-in=kotlin.time.ExperimentalTime")
}
}
publishing {
@@ -4,10 +4,8 @@ import com.infendro.hash.HashFunction
import com.infendro.hash.SHA1
import kotlin.time.Duration
import kotlin.time.Duration.Companion.seconds
import kotlin.time.ExperimentalTime
import kotlin.time.Instant
@ExperimentalTime
class TOTP(
function: HashFunction = SHA1,
length: Int = 6,