Skip to content

Commit f584375

Browse files
author
James Nguyen
committed
Migrate to kotlinx-datetime dependency to 0.7.1
1 parent df5b2c1 commit f584375

File tree

91 files changed

+97
-96
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

91 files changed

+97
-96
lines changed

buildSrc/src/main/kotlin/base-convention.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ kotlin {
3131

3232
sourceSets.configureEach {
3333
languageSettings {
34+
optIn("kotlin.time.ExperimentalTime")
3435
if (!name.startsWith("common") &&
3536
!name.startsWith("jvm") &&
3637
!name.startsWith("android")

couchbase-lite-ee/src/androidMain/ee/kotbase/TLSIdentity.android.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import kotbase.internal.DelegatedClass
2020
import kotbase.ext.toByteArray
2121
import kotbase.ext.toDate
2222
import kotbase.ext.toKotlinInstant
23-
import kotlinx.datetime.Instant
23+
import kotlin.time.Instant
2424
import com.couchbase.lite.TLSIdentity as CBLTLSIdentity
2525

2626
public actual class TLSIdentity

couchbase-lite-ee/src/appleMain/ee/kotbase/TLSIdentity.apple.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import kotbase.ext.toByteArray
2121
import kotbase.ext.toKotlinInstantMillis
2222
import kotbase.ext.toNSData
2323
import kotbase.ext.wrapCBLError
24-
import kotlinx.datetime.Instant
24+
import kotlin.time.Instant
2525
import kotlinx.datetime.toNSDate
2626
import platform.Security.SecCertificateRef
2727
import platform.Security.SecIdentityRef

couchbase-lite-ee/src/commonMain/ee/kotbase/TLSIdentity.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
*/
1616
package kotbase
1717

18-
import kotlinx.datetime.Instant
18+
import kotlin.time.Instant
1919

2020
/**
2121
* **ENTERPRISE EDITION API**

couchbase-lite-ee/src/commonTest/ee/kotbase/PredictiveQueryTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import kotbase.ext.nowMillis
1919
import kotbase.ext.toStringMillis
2020
import kotbase.test.IgnoreLinuxMingw
2121
import kotbase.test.assertIntContentEquals
22-
import kotlinx.datetime.Clock
22+
import kotlin.time.Clock
2323
import kotlin.test.*
2424

2525
// predictive queries not supported in CBL C SDK

couchbase-lite-ee/src/commonTest/ee/kotbase/ReplicatorEETest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import kotlinx.atomicfu.locks.reentrantLock
2121
import kotlinx.coroutines.delay
2222
import kotlinx.coroutines.runBlocking
2323
import kotlinx.coroutines.sync.Mutex
24-
import kotlinx.datetime.Clock
24+
import kotlin.time.Clock
2525
import kotlin.test.*
2626
import kotlin.time.Duration.Companion.seconds
2727

couchbase-lite-ee/src/jvmMain/ee/kotbase/TLSIdentity.jvm.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import kotbase.internal.DelegatedClass
2020
import kotbase.ext.toByteArray
2121
import kotbase.ext.toDate
2222
import kotbase.ext.toKotlinInstant
23-
import kotlinx.datetime.Instant
23+
import kotlin.time.Instant
2424
import java.security.KeyStore
2525
import com.couchbase.lite.TLSIdentity as CBLTLSIdentity
2626

couchbase-lite-ee/src/linuxMingwMain/ee/kotbase/TLSIdentity.linuxMingw.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
*/
1616
package kotbase
1717

18-
import kotlinx.datetime.Instant
18+
import kotlin.time.Instant
1919

2020
public actual class TLSIdentity {
2121

couchbase-lite-ktx/src/commonMain/kotlin/kotbase/ktx/DocumentExtensions.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ package kotbase.ktx
2727

2828
import kotbase.*
2929
import kotbase.Array
30-
import kotlinx.datetime.Instant
30+
import kotlin.time.Instant
3131

3232
/**
3333
* Creates a new [MutableDocument] with the key-value entries specified by the

couchbase-lite-ktx/src/commonMain/kotlin/kotbase/ktx/ExpressionExt.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ package kotbase.ktx
1919

2020
import kotbase.ArrayFunction
2121
import kotbase.Expression
22-
import kotlinx.datetime.Instant
22+
import kotlin.time.Instant
2323

2424
/**
2525
* Create a between expression that evaluates whether or not the current

0 commit comments

Comments
 (0)