Skip to content

Commit

Permalink
Update dependency org.jetbrains.kotlin.multiplatform to v1.7.21 (#222)
Browse files Browse the repository at this point in the history
  • Loading branch information
juul-mobile-bot authored Jan 13, 2023
1 parent e156a9d commit 8ea33f2
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
android-compile = "31"
coroutines = "1.6.4"
jacoco = "0.8.7"
kotlin = "1.7.20"
kotlin = "1.8.0"
ktor = "2.2.2"

[libraries]
Expand All @@ -18,7 +18,7 @@ ktor-mock = { module = "io.ktor:ktor-client-mock", version.ref = "ktor" }
[plugins]
android-library = { id = "com.android.library", version = "7.4.0" }
android-publish = { id = "com.vanniktech.maven.publish", version = "0.23.1" }
atomicfu = { id = "kotlinx-atomicfu", version = "0.18.5" }
atomicfu = { id = "kotlinx-atomicfu", version = "0.19.0" }
binary-compatibility-validator = { id = "binary-compatibility-validator", version = "0.8.0" }
dokka = { id = "org.jetbrains.dokka", version = "1.7.20" }
kotlin-multiplatform = { id = "org.jetbrains.kotlin.multiplatform", version.ref = "kotlin" }
Expand Down
6 changes: 3 additions & 3 deletions temporal/src/commonTest/kotlin/TickerTests.kt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import kotlin.test.Ignore
import kotlin.test.Test
import kotlin.test.assertEquals
import kotlin.test.assertTrue
import kotlin.time.Duration
import kotlin.time.Duration.Companion.seconds
import kotlin.time.ExperimentalTime
import kotlin.time.TimeSource

Expand All @@ -21,13 +21,13 @@ private const val ERROR_TOO_FAST = "Flow collected too quickly."
private const val ERROR_TOO_SLOW = "Flow collected too slowly."

@ExperimentalTime
private val TIME_TICK = Duration.seconds(0.5)
private val TIME_TICK = 0.5.seconds

@ExperimentalTime
private val TIME_EXPECTED = TIME_TICK * (NUM_TICKS - 1)

@ExperimentalTime
private val TIME_EPSILON = Duration.seconds(0.125)
private val TIME_EPSILON = 0.125.seconds

@ExperimentalTime
class TickerTests {
Expand Down
6 changes: 3 additions & 3 deletions temporal/src/jsMain/kotlin/TickerTemporalFlow.kt
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
package com.juul.tuulbox.temporal

import kotlinx.coroutines.flow.Flow
import kotlin.time.Duration
import kotlin.time.Duration.Companion.minutes
import kotlin.time.ExperimentalTime

@ExperimentalTime
internal actual inline fun <T> inlineTemporalFlow(
crossinline factory: () -> T,
): Flow<T> = ticker(Duration.minutes(1), factory)
): Flow<T> = ticker(1.minutes, factory)

@ExperimentalTime
public actual fun <T> temporalFlow(
factory: () -> T,
): Flow<T> = ticker(Duration.minutes(1), factory)
): Flow<T> = ticker(1.minutes, factory)
6 changes: 3 additions & 3 deletions temporal/src/jvmMain/kotlin/TickerTemporalFlow.kt
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package com.juul.tuulbox.temporal

import kotlinx.coroutines.flow.Flow
import kotlin.time.Duration
import kotlin.time.Duration.Companion.minutes

internal actual inline fun <T> inlineTemporalFlow(
crossinline factory: () -> T,
): Flow<T> = ticker(Duration.minutes(1), factory)
): Flow<T> = ticker(1.minutes, factory)

public actual fun <T> temporalFlow(
factory: () -> T,
): Flow<T> = ticker(Duration.minutes(1), factory)
): Flow<T> = ticker(1.minutes, factory)

0 comments on commit 8ea33f2

Please sign in to comment.