fix `expect'/'actual' classes (including interfaces, objects, annotations, enums, and 'actual' typealiases) are in Beta. Consider using the '-Xexpect-actual-classes' flag to suppress this warning. Also see: https://youtrack.jetbrains.com/issue/KT-61573
This commit is contained in:
-1
@@ -4,7 +4,6 @@ package at.mocode.frontend.core.localdb
|
|||||||
|
|
||||||
import app.cash.sqldelight.db.SqlDriver
|
import app.cash.sqldelight.db.SqlDriver
|
||||||
import app.cash.sqldelight.driver.worker.WebWorkerDriver
|
import app.cash.sqldelight.driver.worker.WebWorkerDriver
|
||||||
import kotlinx.coroutines.await
|
|
||||||
import org.w3c.dom.Worker
|
import org.w3c.dom.Worker
|
||||||
|
|
||||||
actual class DatabaseDriverFactory {
|
actual class DatabaseDriverFactory {
|
||||||
|
|||||||
+1
-1
@@ -31,7 +31,7 @@ private fun base64UrlFromArrayBuffer(buf: ArrayBuffer): String {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private fun randomUrlSafe(length: Int): String {
|
private fun randomUrlSafe(length: Int): String {
|
||||||
val bytes = Random.Default.nextBytes(length)
|
val bytes = Random.nextBytes(length)
|
||||||
// Use base64url for entropy; ensure URL-safe by replacing padding removed already
|
// Use base64url for entropy; ensure URL-safe by replacing padding removed already
|
||||||
return base64UrlFromBytes(bytes)
|
return base64UrlFromBytes(bytes)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user