add opt-in
This commit is contained in:
@@ -26,6 +26,10 @@ kotlin {
|
|||||||
implementation(libs.bytearray)
|
implementation(libs.bytearray)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
compilerOptions {
|
||||||
|
freeCompilerArgs.add("-opt-in=kotlin.time.ExperimentalTime")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
publishing {
|
publishing {
|
||||||
|
|||||||
@@ -4,10 +4,8 @@ import com.infendro.hash.HashFunction
|
|||||||
import com.infendro.hash.SHA1
|
import com.infendro.hash.SHA1
|
||||||
import kotlin.time.Duration
|
import kotlin.time.Duration
|
||||||
import kotlin.time.Duration.Companion.seconds
|
import kotlin.time.Duration.Companion.seconds
|
||||||
import kotlin.time.ExperimentalTime
|
|
||||||
import kotlin.time.Instant
|
import kotlin.time.Instant
|
||||||
|
|
||||||
@ExperimentalTime
|
|
||||||
class TOTP(
|
class TOTP(
|
||||||
function: HashFunction = SHA1,
|
function: HashFunction = SHA1,
|
||||||
length: Int = 6,
|
length: Int = 6,
|
||||||
|
|||||||
Reference in New Issue
Block a user