Skip to content

Commit

Permalink
Bump serialization from 1.5.0 to 1.5.1 (#208)
Browse files Browse the repository at this point in the history
  • Loading branch information
dependabot[bot] authored May 11, 2023
1 parent f8bb316 commit 639b79d
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 9 deletions.
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[versions]
kotlin = "1.8.21"
serialization = "1.5.0"
serialization = "1.5.1"
exposed = "0.41.1"

[libraries]
Expand Down
19 changes: 13 additions & 6 deletions kotlinx-uuid-core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,14 @@ plugins {
}

kotlin {
targetHierarchy.default()
targetHierarchy.default {
common {
group("linuxDerivat") {
withAndroidNative()
withLinux()
}
}
}

jvm()
js(IR) {
Expand All @@ -37,12 +44,12 @@ kotlin {
iosArm64()

// tier 3
// no kotlinx.serialization support androidNativeArm32()
// no kotlinx.serialization support androidNativeArm64()
// no kotlinx.serialization support androidNativeX86()
// no kotlinx.serialization support androidNativeX64()
androidNativeArm32()
androidNativeArm64()
androidNativeX86()
androidNativeX64()
mingwX64()
// no kotlinx.serialization support watchosDeviceArm64()
watchosDeviceArm64()

sourceSets {
commonMain {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ import kotlin.random.*
* - On JS, it uses `window.crypto` or `nodejs.crypto`.
* - On darwin, it uses `SecRandomCopyBytes`.
* - On mingw, it uses `BCryptRandom`.
* - On Linux, it uses `DevUrandom`.
* - On Linux and Android native, it uses `DevUrandom`.
*/
public expect val SecureRandom: Random
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ private class DevUrandom : Random() {
val urandom = open("/dev/urandom", O_RDONLY)
require(urandom >= 0)
val status = bytes.usePinned {
read(urandom, it.addressOf(0), numberOfBytes.toULong())
read(urandom, it.addressOf(0), numberOfBytes.convert())
}
close(urandom)
require(status >= 0)
Expand Down

0 comments on commit 639b79d

Please sign in to comment.