File tree Expand file tree Collapse file tree 4 files changed +13
-12
lines changed
src/commonMain/kotlin/fr/acinq/lightning/utils Expand file tree Collapse file tree 4 files changed +13
-12
lines changed Original file line number Diff line number Diff line change 1- [ ![ Kotlin] ( https://img.shields.io/badge/Kotlin-2.1.21 -blue.svg?style=flat&logo=kotlin )] ( http://kotlinlang.org )
1+ [ ![ Kotlin] ( https://img.shields.io/badge/Kotlin-2.2.20 -blue.svg?style=flat&logo=kotlin )] ( http://kotlinlang.org )
22[ ![ Maven Central] ( https://img.shields.io/maven-central/v/fr.acinq.lightning/lightning-kmp-core )] ( https://search.maven.org/search?q=g:fr.acinq.lightning%20a:lightning-kmp* )
33![ Github Actions] ( https://github.com/ACINQ/lightning-kmp/actions/workflows/test.yml/badge.svg )
44[ ![ License] ( https://img.shields.io/badge/license-Apache%202.0-blue.svg )] ( LICENSE )
Original file line number Diff line number Diff line change 11[versions ]
2- kotlin = " 2.1.21 "
2+ kotlin = " 2.2.20 "
33kotlinx-coroutines = " 1.10.2"
4- kotlinx-datetime = " 0.6.2 "
5- kotlinx-serialization = " 1.8.1 "
6- ktor = " 3.1.2 "
4+ kotlinx-datetime = " 0.7.1 "
5+ kotlinx-serialization = " 1.9.0 "
6+ ktor = " 3.3.0 "
77bitcoinkmp = " 0.26.0" # when upgrading bitcoin-kmp, keep secpjnijvm in sync!
88secpjnijvm = " 0.19.0"
9- kermit = " 2.0.5 "
10- slf4j = " 2.0.16 "
9+ kermit = " 2.0.8 "
10+ slf4j = " 2.0.17 "
1111
1212# test dependencies
13- test-kotlinx-io-core = " 0.6 .0"
13+ test-kotlinx-io-core = " 0.8 .0"
1414test-bouncycastle = " 1.64"
15- test-logback = " 1.5.16 "
16- test-sqlitejdbc = " 3.32 .3.3 "
15+ test-logback = " 1.5.19 "
16+ test-sqlitejdbc = " 3.50 .3.0 "
1717
1818[plugins ]
1919multiplatform = { id = " org.jetbrains.kotlin.multiplatform" , version.ref = " kotlin" }
Original file line number Diff line number Diff line change @@ -65,7 +65,6 @@ kotlin {
6565 api(" fr.acinq.bitcoin:bitcoin-kmp:${libs.versions.bitcoinkmp.get()} " )
6666 api(" org.jetbrains.kotlinx:kotlinx-coroutines-core:${libs.versions.kotlinx.coroutines.get()} " )
6767 api(" org.jetbrains.kotlinx:kotlinx-serialization-core:${libs.versions.kotlinx.serialization.get()} " )
68- api(" org.jetbrains.kotlinx:kotlinx-serialization-cbor:${libs.versions.kotlinx.serialization.get()} " )
6968 api(" org.jetbrains.kotlinx:kotlinx-serialization-json:${libs.versions.kotlinx.serialization.get()} " )
7069 api(" org.jetbrains.kotlinx:kotlinx-datetime:${libs.versions.kotlinx.datetime.get()} " )
7170 api(" co.touchlab:kermit:${libs.versions.kermit.get()} " )
Original file line number Diff line number Diff line change 11package fr.acinq.lightning.utils
22
3- import kotlinx.datetime.Clock
3+ import kotlin.time.Clock
4+ import kotlin.time.ExperimentalTime
45
6+ @OptIn(ExperimentalTime ::class )
57fun currentTimestampMillis (): Long = Clock .System .now().toEpochMilliseconds()
68
79fun currentTimestampSeconds (): Long = currentTimestampMillis() / 1000
You can’t perform that action at this time.
0 commit comments