Skip to content

Commit 5b49e10

Browse files
authored
Bump versions (#337)
* Increase ktlint version * Update other dependencies * Fix imports lint
1 parent d6c93b0 commit 5b49e10

File tree

5 files changed

+15
-15
lines changed

5 files changed

+15
-15
lines changed

gradle/libs.versions.toml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@ compileSdk = "36"
77
# Dependencies
88
kotlin = "2.2.10"
99
android-gradle-plugin = "8.11.2"
10-
ktlint-gradle = "12.2.0"
11-
compose = "1.7.8"
10+
ktlint-gradle = "13.1.0"
11+
compose = "1.9.1"
1212
android-desugaring = "2.1.5"
13-
androidx-core = "1.15.0"
14-
androidx-test-junit = "1.2.1"
15-
androidx-activity-compose = "1.10.1"
16-
androidx-lifecycle = "2.8.7"
17-
coroutines = "1.10.1"
18-
kotlinx-datetime = "0.6.2"
13+
androidx-core = "1.17.0"
14+
androidx-test-junit = "1.3.0"
15+
androidx-activity-compose = "1.11.0"
16+
androidx-lifecycle = "2.9.4"
17+
coroutines = "1.10.2"
18+
kotlinx-datetime = "0.7.1"
1919
ktor = "3.3.0"
2020
robolectric = "4.16"
2121
kermit = "2.0.8"

shared/src/commonMain/kotlin/co/touchlab/kampkit/Koin.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import co.touchlab.kampkit.models.BreedRepository
66
import co.touchlab.kermit.Logger
77
import co.touchlab.kermit.StaticConfig
88
import co.touchlab.kermit.platformLogWriter
9+
import kotlin.time.Clock
910
import kotlinx.coroutines.Dispatchers
10-
import kotlinx.datetime.Clock
1111
import org.koin.core.KoinApplication
1212
import org.koin.core.component.KoinComponent
1313
import org.koin.core.component.inject

shared/src/commonTest/kotlin/co/touchlab/kampkit/BreedRepositoryTest.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ import kotlin.test.AfterTest
1212
import kotlin.test.Test
1313
import kotlin.test.assertEquals
1414
import kotlin.test.assertFails
15+
import kotlin.time.Clock.System
1516
import kotlin.time.Duration.Companion.hours
1617
import kotlinx.coroutines.Dispatchers
1718
import kotlinx.coroutines.test.runTest
18-
import kotlinx.datetime.Clock
1919

2020
class BreedRepositoryTest {
2121

@@ -30,7 +30,7 @@ class BreedRepositoryTest {
3030
private val ktorApi = DogApiMock()
3131

3232
// Need to start at non-zero time because the default value for db timestamp is 0
33-
private val clock = ClockMock(Clock.System.now())
33+
private val clock = ClockMock(System.now())
3434

3535
private val repository: BreedRepository =
3636
BreedRepository(dbHelper, settings, ktorApi, kermit, clock)

shared/src/commonTest/kotlin/co/touchlab/kampkit/BreedViewModelTest.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import kotlin.test.AfterTest
1616
import kotlin.test.BeforeTest
1717
import kotlin.test.Test
1818
import kotlin.test.assertEquals
19+
import kotlin.time.Clock.System
1920
import kotlin.time.Duration.Companion.hours
2021
import kotlinx.coroutines.DelicateCoroutinesApi
2122
import kotlinx.coroutines.Dispatchers
@@ -24,7 +25,6 @@ import kotlinx.coroutines.launch
2425
import kotlinx.coroutines.test.resetMain
2526
import kotlinx.coroutines.test.runTest
2627
import kotlinx.coroutines.test.setMain
27-
import kotlinx.datetime.Clock
2828

2929
class BreedViewModelTest {
3030
private var kermit = Logger(StaticConfig())
@@ -38,7 +38,7 @@ class BreedViewModelTest {
3838
private val ktorApi = DogApiMock()
3939

4040
// Need to start at non-zero time because the default value for db timestamp is 0
41-
private val clock = ClockMock(Clock.System.now())
41+
private val clock = ClockMock(System.now())
4242

4343
private val repository: BreedRepository =
4444
BreedRepository(dbHelper, settings, ktorApi, kermit, clock)

shared/src/commonTest/kotlin/co/touchlab/kampkit/mock/ClockMock.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package co.touchlab.kampkit.mock
22

3-
import kotlinx.datetime.Clock
4-
import kotlinx.datetime.Instant
3+
import kotlin.time.Clock
4+
import kotlin.time.Instant
55

66
class ClockMock(var currentInstant: Instant) : Clock {
77
override fun now(): Instant = currentInstant

0 commit comments

Comments
 (0)