diff --git a/build.gradle.kts b/build.gradle.kts index 4df0599..a9ebd1c 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -26,6 +26,10 @@ kotlin { implementation(libs.bytearray) } } + + compilerOptions { + freeCompilerArgs.add("-opt-in=kotlin.time.ExperimentalTime") + } } publishing { diff --git a/src/commonMain/kotlin/com/infendro/otp/TOTP.kt b/src/commonMain/kotlin/com/infendro/otp/TOTP.kt index 5a90aa1..c6c2bca 100644 --- a/src/commonMain/kotlin/com/infendro/otp/TOTP.kt +++ b/src/commonMain/kotlin/com/infendro/otp/TOTP.kt @@ -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,